/* ============================================================
   AETHER.AI — "Neural Noir" design system
   Dark, cinematic, motion-driven.
   ============================================================ */

:root {
    --bg: #05060e;
    --bg-2: #0a0d1c;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-glass: rgba(5, 6, 14, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --primary: #5b8cff;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --accent: #ff2e88;
    --text-main: #eef1fb;
    --text-muted: #98a1b8;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-primary: 0 0 40px rgba(91, 140, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--accent); color: #fff; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- CUSTOM CURSOR (elements injected by script.js) --- */
@media (pointer: fine) {
    body.has-cursor, body.has-cursor a, body.has-cursor button,
    body.has-cursor input, body.has-cursor .card { cursor: none; }
}

.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px; height: 8px;
    background: #fff;
    mix-blend-mode: difference;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

.cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.35s cubic-bezier(0.16,1,0.3,1),
                height 0.35s cubic-bezier(0.16,1,0.3,1),
                background 0.35s ease, border-color 0.35s ease;
}

.cursor-ring .cursor-label {
    font-size: 0;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
    font-family: var(--font-heading);
    transition: font-size 0.2s ease;
}

/* Hover: ring inflates and fills (difference blend inverts what's under it) */
.cursor-hover .cursor-ring {
    width: 64px; height: 64px;
    background: #fff;
    border-color: #fff;
}
.cursor-hover .cursor-dot { opacity: 0; }

/* Over cards: ring becomes a lens with a label */
.cursor-view .cursor-ring {
    width: 88px; height: 88px;
    background: #fff;
    border-color: #fff;
}
.cursor-view .cursor-ring .cursor-label { font-size: 11px; }
.cursor-view .cursor-dot { opacity: 0; }

/* Over text inputs: cursor becomes an I-beam bar */
.cursor-text .cursor-dot { width: 2px; height: 26px; border-radius: 1px; }
.cursor-text .cursor-ring { opacity: 0; }

.cursor-pressed .cursor-ring { transform: translate(-50%, -50%) scale(0.8); }

/* --- FIXED BACKDROP LAYERS --- */
#neural-canvas {
    position: fixed;
    inset: 0;
    z-index: -3;
    display: block;
}

.aurora {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 110%, rgba(34, 211, 238, 0.12), transparent 60%),
        var(--bg);
}

.aurora::before, .aurora::after {
    content: '';
    position: absolute;
    width: 55vw; height: 55vw;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}

.aurora::before {
    background: radial-gradient(circle, rgba(91, 140, 255, 0.25), transparent 65%);
    top: -15vw; left: -10vw;
    animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora::after {
    background: radial-gradient(circle, rgba(255, 46, 136, 0.14), transparent 65%);
    bottom: -20vw; right: -12vw;
    animation: drift-b 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(12vw, 10vh) scale(1.25); }
}
@keyframes drift-b {
    from { transform: translate(0, 0) scale(1.2); }
    to   { transform: translate(-10vw, -12vh) scale(0.95); }
}

/* Film grain */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 9s steps(10) infinite;
}

@keyframes grain-shift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -8%); }
    30% { transform: translate(4%, 6%); }
    50% { transform: translate(-7%, 3%); }
    70% { transform: translate(6%, -5%); }
    90% { transform: translate(-3%, 7%); }
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--primary), var(--violet), var(--accent));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 10000;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--cyan), var(--primary) 40%, var(--violet) 75%, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-pan 6s linear infinite;
}

@keyframes gradient-pan {
    to { background-position: 200% center; }
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Scroll-reveal (activated only when JS runs) */
html.js .reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.4rem 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    transition: padding 0.4s ease, background 0.4s ease;
}

header.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 6, 14, 0.85);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--accent));
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--violet));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-primary);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--violet));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 24px rgba(91, 140, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
    background: transparent;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 5rem;
}

.hero-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(8rem, 24vw, 24rem);
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    z-index: -1;
    user-select: none;
    white-space: nowrap;
    will-change: transform;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 2rem;
    backdrop-filter: blur(6px);
}

.hero-badge .pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.6); opacity: 0.5; }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7.5vw, 6.2rem);
    line-height: 1.02;
    margin-bottom: 1.2rem;
    letter-spacing: -0.035em;
}

.hero-scramble {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.6vw, 3rem);
    letter-spacing: -0.02em;
    font-weight: 700;
    min-height: 1.4em;
    margin-bottom: 1.8rem;
}

.hero-content > p, .hero-lede {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-hint::before {
    content: '';
    width: 3px; height: 8px;
    background: var(--cyan);
    border-radius: 3px;
    margin-top: 7px;
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 0; transform: translateY(0); }
}

/* --- MARQUEE TICKER --- */
.marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    background: rgba(255, 255, 255, 0.015);
    display: flex;
    user-select: none;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
    animation: marquee-scroll 30s linear infinite;
    white-space: nowrap;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.marquee-track span:hover { color: var(--cyan); }

.marquee-track em {
    font-style: normal;
    color: var(--accent);
    font-size: 0.7rem;
}

@keyframes marquee-scroll {
    to { transform: translateX(-100%); }
}

/* --- SECTIONS --- */
.section-padding { padding: 8rem 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
}

.section-sub {
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 4rem;
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
    perspective: 1400px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
    backdrop-filter: blur(4px);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.card > div { transform-style: preserve-3d; }

/* Mouse spotlight */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(550px circle at var(--mouse-x) var(--mouse-y),
        rgba(91, 140, 255, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::after { opacity: 1; }

/* Gradient beam along top edge */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover::before { opacity: 1; }

.card-large { grid-column: span 2; }
.card-tall { grid-row: span 2; }

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 14px rgba(91, 140, 255, 0.5));
    transform: translateZ(40px);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    transform: translateZ(30px);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    transform: translateZ(20px);
}

/* --- STATS --- */
.stats-container {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 0;
    margin: 4rem 0;
}

.stat-item { text-align: left; }

.stat-item h2 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.35));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

/* --- PROCESS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-step {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -5px; left: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px var(--cyan);
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.testimonial-card .stars {
    color: #ffc94d;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

.testimonial-card blockquote {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-main);
    flex: 1;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testimonial-card .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card figcaption strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-card figcaption div span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.08), rgba(139, 92, 246, 0.05));
    border-color: rgba(91, 140, 255, 0.4);
    box-shadow: 0 0 60px rgba(91, 140, 255, 0.12);
}

.price-card.featured:hover {
    box-shadow: 0 24px 80px rgba(91, 140, 255, 0.25);
}

.price-card .badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--violet));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.price-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0.4rem 0 1.6rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.8rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-contact {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.price-card ul {
    list-style: none;
    margin-bottom: 2.2rem;
    flex: 1;
}

.price-card li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.price-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
}

.price-card .btn { text-align: center; }

/* --- FAQ ACCORDION --- */
.faq-list {
    max-width: 760px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-align: left;
    padding: 1.6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-q:hover { color: var(--cyan); }

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cyan);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a > div { overflow: hidden; }

.faq-a p {
    color: var(--text-muted);
    padding-bottom: 1.6rem;
    max-width: 640px;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.contact-form .btn {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border: none;
    font-family: var(--font-body);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.form-note.sent { color: var(--cyan); }

/* --- CTA --- */
.cta-section {
    position: relative;
    text-align: center;
    padding: 12rem 0;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw; height: 70vw;
    max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(255, 46, 136, 0.06) 40%, transparent 70%);
    z-index: -1;
    animation: pulse 8s infinite ease-in-out;
}

.cta-section .section-title { font-size: clamp(2.4rem, 5vw, 4rem); }

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    display: block;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.blog-card:hover::before { opacity: 1; }

.blog-date {
    display: block;
    color: var(--cyan);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* --- BLOG POST --- */
.blog-post-container {
    padding-top: 150px;
    padding-bottom: 8rem;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover { color: var(--cyan); }

.post-date {
    display: block;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.post-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p { margin-bottom: 2rem; color: #c3c9da; }

.post-content h2, .post-content h3 {
    font-family: var(--font-heading);
    margin: 3rem 0 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: #c3c9da;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content strong { color: var(--cyan); }

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 2rem;
    margin: 2rem 0;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-main);
}

/* --- CHAT WIDGET --- */
#chat-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    font-family: var(--font-body);
}

#chat-widget-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-widget-trigger:hover {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.55);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: rgba(10, 13, 28, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    transform-origin: bottom right;
}

#chat-window.chat-closed {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.chat-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    margin: 0;
}

#chat-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

#chat-close:hover { color: var(--accent); }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: messageFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.6rem;
    border-top: 1px solid var(--border);
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

#chat-input::placeholder { color: var(--text-muted); }

#chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chat-send-btn:hover { transform: scale(1.1); }

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    #chat-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        bottom: 75px;
        height: 480px;
    }
    #chat-widget-container {
        bottom: 1rem;
        right: 1rem;
    }
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
}

/* --- MOBILE NAV --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

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

.mobile-only-link { display: none; }

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .card-large, .card-tall { grid-column: auto; grid-row: auto; min-height: 250px; }
    .stats-container { flex-direction: column; gap: 2.5rem; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-grid, .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { order: -1; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(5, 6, 14, 0.97);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active { transform: translateY(0); }

    nav > .btn { display: none; }
    .mobile-only-link {
        display: block;
        color: var(--cyan) !important;
        font-weight: 700;
        font-size: 1.2rem !important;
    }
    .nav-links a { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.5rem; }
    .section-title { font-size: 2rem; }
    .logo { font-size: 1.2rem; }
    .bento-grid { gap: 1rem; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .process-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .faq-q { font-size: 1rem; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; }
}
