/* ============================================
   NEXUS AI — Premium Light Theme v3
   Fonts: Outfit + Manrope | Neural Background
   ============================================ */

:root {
    --bg: #F8F9FC;
    --bg-alt: #EEF0F6;
    --bg-dark: #06060F;
    --card: #FFFFFF;
    --border: rgba(15,23,42,0.05);
    --border-hover: rgba(99,91,255,0.18);

    --text: #0A0A1A;
    --text-2: #51566A;
    --text-3: #8E92A4;

    --indigo: #635BFF;
    --violet: #8B5CF6;
    --pink: #F472B6;
    --cyan: #22D3EE;
    --emerald: #34D399;

    --gradient: linear-gradient(135deg, #635BFF 0%, #8B5CF6 50%, #F472B6 100%);
    --glow: 0 8px 32px rgba(99,91,255,0.20);

    --font-display: 'Outfit', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --container: 1200px;
}

/* Better number rendering */
h1, h2, h3, h4, h5, h6, .metric-value, .problem-number, .step-num, .counter {
    font-variant-numeric: tabular-nums;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* locked during loader */
}

html.loaded { overflow: auto; overflow-x: hidden; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =============== NEURAL BACKGROUND =============== */
#neuralBg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Ensure all content sits above neural bg */
.nav, .hero, .marquee-section, .section, .footer, .loader {
    position: relative;
    z-index: 1;
}

/* =============== LOADER =============== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.loader.done {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

#loaderCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loader-logo {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 32px;
}

.loader-letter {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: white;
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(90deg);
    animation: letterIn 0.6s var(--ease) forwards;
}

.loader-letter.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-letter[data-delay="0"] { animation-delay: 0.2s; }
.loader-letter[data-delay="1"] { animation-delay: 0.3s; }
.loader-letter[data-delay="2"] { animation-delay: 0.4s; }
.loader-letter[data-delay="3"] { animation-delay: 0.5s; }
.loader-letter[data-delay="4"] { animation-delay: 0.6s; }
.loader-letter[data-delay="5"] { animation-delay: 0.75s; }
.loader-letter[data-delay="6"] { animation-delay: 0.85s; }

@keyframes letterIn {
    to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.loader-bar-track {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.loader-percent {
    font-family: var(--font-heading);
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.loader-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============== NAVIGATION =============== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.4s var(--ease);
    opacity: 0;
    transform: translateY(-20px);
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav.scrolled {
    background: rgba(250,251,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--indigo);
    font-size: 16px;
}

.logo-accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 28px; }

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--gradient);
    box-shadow: var(--glow);
    transition: all 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(99,91,255,0.25); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding:4px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* =============== HERO (Dark Particle Text) =============== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: #050510;
    padding: 0 24px 60px;
}

/* Floating gradient orbs on dark hero */
.hero-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.orb-1 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(99,91,255,0.5) 0%, transparent 70%);
    top: -10%; left: -8%;
    animation: orbDrift1 12s ease-in-out infinite;
}
.orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, transparent 70%);
    top: 20%; right: -5%;
    animation: orbDrift2 15s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(244,114,182,0.35) 0%, transparent 70%);
    bottom: 5%; left: 20%;
    animation: orbDrift3 18s ease-in-out infinite;
}
.orb-4 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(34,211,238,0.3) 0%, transparent 70%);
    top: 40%; left: 60%;
    animation: orbDrift4 10s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}
@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 60px) scale(1.15); }
}
@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-60px, -10px) scale(0.92); }
}
@keyframes orbDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(-40px, 30px) scale(1.2); opacity: 0.6; }
}

#particleTextCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: default;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.hero-overlay > * { pointer-events: auto; }

.hero .hero-subtitle {
    font-size: clamp(14px, 1.6vw, 18px);
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease) 0.3s;
}
.hero .hero-subtitle.revealed { opacity: 1; transform: translateY(0); }
.hero .hero-subtitle strong { color: rgba(255,255,255,0.85); }

.hero .hero-ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease) 0.5s;
}
.hero .hero-ctas.revealed { opacity: 1; transform: translateY(0); }

/* Hero-specific button variants */
.btn-primary-light {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 24px rgba(99,91,255,0.3);
}
.btn-primary-light:hover {
    box-shadow: 0 10px 36px rgba(99,91,255,0.45);
}

.btn-ghost-dark {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost-dark:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

/* Dark scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-scroll-cue span {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-3);
}

.hero-scroll-cue.dark span { color: rgba(255,255,255,0.2); }

.scroll-line {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}
.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--indigo);
    border-radius: 3px;
    position: absolute;
    left: -1px;
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -8px; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 36px; opacity: 0; }
}

/* Nav on dark hero — white text */
.nav:not(.scrolled) .nav-logo { color: white; }
.nav:not(.scrolled) .nav-link { color: rgba(255,255,255,0.5); }
.nav:not(.scrolled) .nav-link:hover,
.nav:not(.scrolled) .nav-link.active { color: white; }
.nav:not(.scrolled) .nav-burger span { background: white; }

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    position: relative;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(99,91,255,0.28); }

.btn-ghost {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-ghost:hover { border-color: var(--border-hover); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.btn-outline {
    background: white;
    color: var(--indigo);
    border: 1.5px solid rgba(99,91,255,0.2);
    width: 100%;
    justify-content: center;
}
.btn-outline:hover { background: rgba(99,91,255,0.04); border-color: var(--indigo); }

.btn-full { width: 100%; justify-content: center; font-size: 16px; padding: 16px; }

/* =============== MARQUEE =============== */
.marquee-section {
    padding: 20px 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.marquee-track { overflow: hidden; }

.marquee-content {
    display: flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
}

.marquee-dot { color: var(--indigo) !important; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =============== SECTIONS =============== */
.section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--indigo);
    text-transform: uppercase;
    padding: 6px 18px;
    border: 1px solid rgba(99,91,255,0.15);
    border-radius: 100px;
    background: rgba(99,91,255,0.04);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

/* SPLIT TEXT ANIMATION */
.section-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s var(--ease);
}
.section-title .char.revealed {
    opacity: 1;
    transform: translateY(0);
}
.section-title .whitespace { width: 0.3em; display: inline-block; }
.section-title .word-wrap { display: inline-block; white-space: nowrap; }

.section-subtitle {
    font-size: 17px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =============== PROBLEMS =============== */
.problems { background: rgba(238, 240, 246, 0.55); backdrop-filter: blur(1px); }

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.problem-card {
    position: relative;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.problem-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(99,91,255,0.08);
}

.card-glow {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,91,255,0.08) 0%, transparent 70%);
    top: -50px; right: -50px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.problem-card:hover .card-glow { opacity: 1; }

.problem-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.problem-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

/* =============== SCROLL TEXT =============== */
.scroll-text-section {
    padding: clamp(100px, 15vw, 200px) 0;
    background: var(--bg);
}

.scroll-text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.scroll-text {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -1px;
}

.scroll-text .st-word {
    display: inline-block;
    transition: color 0.4s, opacity 0.4s;
    color: rgba(11,13,23,0.12);
}

.scroll-text .st-word.active {
    color: var(--text);
}

/* =============== SERVICES =============== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 40px;
    align-items: center;
    padding: 28px 32px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.4s var(--ease);
    cursor: pointer;
    gap: 16px;
}

.service-item:hover {
    background: rgba(99,91,255,0.03);
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(99,91,255,0.06);
}

.service-num {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--indigo);
    opacity: 0.5;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.service-desc-short {
    font-size: 14px;
    color: var(--text-3);
}

.service-arrow {
    font-size: 20px;
    color: var(--text-3);
    transition: all 0.3s var(--ease);
}
.service-item:hover .service-arrow { color: var(--indigo); transform: translateX(4px); }

/* =============== HOW =============== */
.how { background: rgba(238, 240, 246, 0.55); backdrop-filter: blur(1px); }

.steps-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(99,91,255,0.06); border-color: var(--border-hover); }

.step-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 12px;
}

.step-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--indigo);
    background: rgba(99,91,255,0.06);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* =============== RESULTS =============== */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.metric-card {
    text-align: center;
    padding: 36px 20px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    transition: all 0.4s var(--ease);
}
.metric-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(99,91,255,0.06); }

.metric-value {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-2);
}

/* COMPARISON */
.result-comparison {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.comp-side { flex: 1; padding: 36px; }
.comp-before { background: rgba(220,38,38,0.02); }
.comp-after { background: rgba(99,91,255,0.02); }

.comp-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}
.comp-before .comp-label { color: #DC2626; }
.comp-after .comp-label { color: var(--indigo); }

.comp-side ul { list-style: none; }
.comp-side li { font-size: 14px; color: var(--text-2); padding: 6px 0 6px 22px; position: relative; }
.comp-before li::before { content: '✗'; position: absolute; left: 0; color: #DC2626; font-weight: 700; }
.comp-after li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

.comp-divider { display: flex; align-items: center; padding: 0 4px; }
.comp-arrow { font-size: 24px; color: var(--text-3); }




/* =============== CONTACT =============== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-desc {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-perks { display: flex; flex-direction: column; gap: 14px; }
.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
}
.perk span { font-size: 20px; }

.contact-form {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(99,91,255,0.06);
    background: #fff;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-note { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }

.form-success {
    display: none;
    text-align: center;
    padding: 60px 36px;
    background: var(--card);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 24px;
}
.form-success.show { display: block; animation: fadeUp 0.6s var(--ease); }

.success-check {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: var(--glow);
}

.form-success h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--text-2); }

/* =============== FOOTER =============== */
.footer {
    padding: 40px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-logo { font-size: 20px; }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--text-2); transition: color 0.3s; }
.footer-nav a:hover { color: var(--indigo); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-3);
}

.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--text-3); transition: color 0.3s; }
.footer-socials a:hover { color: var(--indigo); }

/* =============== SCROLL REVEAL BASE =============== */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease);
}
[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-wrapper { grid-template-columns: repeat(2, 1fr); }
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item { grid-template-columns: 50px 1fr 40px; }
    .service-desc-short { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display:none; position:absolute; top:100%; left:0; right:0; background:rgba(250,251,255,0.98); backdrop-filter:blur(20px); flex-direction:column; padding:24px; gap:16px; border-bottom:1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .problems-grid, .steps-wrapper, .pricing-grid { grid-template-columns: 1fr; }
    .metrics-row { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .result-comparison { flex-direction: column; }
    .comp-divider { justify-content: center; padding: 8px; }
    .comp-arrow { transform: rotate(90deg); }
    .service-item { grid-template-columns: 1fr 40px; }
    .service-num { display: none; }
    .word { letter-spacing: -1px; }
    .footer-top, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}
