/* ============================================================
   CSS CUSTOM PROPERTIES — DARK & LIGHT THEMES
   ============================================================ */
:root,
[data-theme="dark"] {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #a78bfa;

    --bg-body: #0a0f1e;
    --bg-nav: rgba(10, 15, 30, 0.92);
    --bg-card: rgba(17, 24, 45, 0.75);
    --bg-card-solid: #11182d;
    --bg-footer: #070d1c;
    --bg-section-alt: #0d1326;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(255, 255, 255, 0.12);
    --mobile-menu-bg: #0a0f1e;

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-glow: rgba(99, 102, 241, 0.35);
    --secondary-glow: rgba(6, 182, 212, 0.3);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

[data-theme="light"] {
    --primary: #5b5bd6;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary: #0891b2;
    --secondary-dark: #0e7490;
    --accent: #7c3aed;

    --bg-body: #f8faff;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-solid: #ffffff;
    --bg-footer: #0f172a;
    --bg-section-alt: #eef2ff;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-bright: rgba(0, 0, 0, 0.1);
    --mobile-menu-bg: #ffffff;

    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.07);
    --primary-glow: rgba(91, 91, 214, 0.2);
    --secondary-glow: rgba(8, 145, 178, 0.2);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture for dark mode */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.75rem 5%;
    border-bottom-color: var(--border-bright);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-brand span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-brand::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: navDot 2.5s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes navDot {
    from { opacity: 1; box-shadow: 0 0 8px var(--primary-glow); }
    to   { opacity: 0.5; box-shadow: 0 0 18px var(--secondary-glow); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-nav) {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s;
    padding-bottom: 2px;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--gradient-hero);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.btn-nav):hover,
.nav-links a:not(.btn-nav).active {
    color: var(--text-main);
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after {
    width: 100%;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    line-height: 1;
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    background-size: 200% 200%;
    background-position: 200% 0;
    transition: background-position 0.5s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--primary-glow);
    background: var(--primary-dark);
}

.btn-nav:hover::before {
    background-position: -200% 0;
}

/* ============================================================
   RIGHT SIDE NAV CONTROLS
   ============================================================ */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.3s;
    width: 16px;
    text-align: center;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="light"] .toggle-track {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toggle-switch input:checked ~ .toggle-thumb {
    transform: translateX(20px);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    border: none;
    background: transparent;
    transition: background 0.2s;
}

.hamburger:hover { background: var(--border-color); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--mobile-menu-bg);
    z-index: 998;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.mobile-menu a i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.mobile-menu .btn-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.mobile-menu .btn-nav-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.mobile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-theme-row:hover { background: rgba(99, 102, 241, 0.08); }

.mobile-theme-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.mobile-theme-label i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* ============================================================
   SECTION GLOBAL
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    margin-bottom: 1.25rem;
}

[data-theme="light"] .section-chip {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.section-chip i { font-size: 0.7rem; }

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 1.1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-main);
}

.section-header h2 .grad {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Page header (for inner pages) */
.page-header {
    padding: 10rem 5% 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10,15,30,1) 0%, rgba(13,19,38,0.5) 100%);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .page-header {
    background: linear-gradient(to bottom, rgba(238,242,255,1) 0%, rgba(248,250,255,0.8) 100%);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .page-header h1 {
    background: linear-gradient(135deg, #0f172a, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   BUTTONS GLOBAL
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--primary-glow);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-footer);
    padding: 5rem 5% 2.5rem;
    color: #f1f5f9;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--secondary); }

.footer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
}

.footer-social a.ig:hover  { color: #e1306c; border-color: rgba(225,48,108,0.3); background: rgba(225,48,108,0.1); }
.footer-social a.fb:hover  { color: #1877f2; border-color: rgba(24,119,242,0.3); background: rgba(24,119,242,0.1); }
.footer-social a.yt:hover  { color: #ff0000; border-color: rgba(255,0,0,0.3); background: rgba(255,0,0,0.1); }
.footer-social a.wa:hover  { color: #25d366; border-color: rgba(37,211,102,0.3); background: rgba(37,211,102,0.1); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.85rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    padding: 8rem 5%;
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(99,102,241,0.1);
}

[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px -10px rgba(99,102,241,0.25);
}

.testimonial-card .quote-icon {
    font-size: 3.5rem;
    line-height: 1;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
    display: block;
}

.testimonial-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    display: flex;
    gap: 2px;
}

.testimonial-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] .testimonial-badge {
    color: var(--primary);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid-section {
    padding: 8rem 5%;
    background: var(--bg-body);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--fc-color, #6366f1), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(99,102,241,0.08);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px -10px var(--fc-glow, rgba(99,102,241,0.25));
}

.feature-card:hover::before {
    opacity: 0.04;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   PRICING TEASER
   ============================================================ */
.pricing-teaser {
    padding: 6rem 5%;
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.pricing-teaser::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.pt-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-bright);
}

.pt-card.featured {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.03));
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), inset 0 0 0 1px rgba(99,102,241,0.1);
}

[data-theme="dark"] .pt-card.featured {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2), inset 0 0 0 1px rgba(99,102,241,0.12);
}

.pt-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.pt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pt-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pt-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.pt-price sup {
    font-size: 1rem;
    font-weight: 700;
    vertical-align: super;
    letter-spacing: 0;
}

.pt-price-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pt-features {
    list-style: none;
    margin-bottom: 1.75rem;
    flex: 1;
}

.pt-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.pt-features li i {
    color: var(--primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.pt-features li.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.pt-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}

.pt-cta.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.pt-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.pt-cta.outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-bright);
}

.pt-cta.outline:hover {
    color: var(--primary-light);
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.06);
}

/* ============================================================
   INTEGRATION CARDS
   ============================================================ */
.integration-card {
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
}

.integration-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.integration-card:hover {
    transform: translateY(-10px) scale(1.04);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 20px -8px var(--primary-glow);
}

.integration-card i { font-size: 2.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-teaser-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .mobile-menu-overlay { display: block; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .pricing-teaser-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-header h2 { font-size: 1.9rem; }
}