/* ============================================
   PREMIUM DESIGN SYSTEM — YT Video Cutter
   ============================================ */

/* === EXTENDED DESIGN TOKENS === */
:root {
    --teal-50:  #f0fdfc;
    --teal-100: #ccfbf1;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-900: #134e4a;
    --ink:       #060f0f;
    --ink-light: #1a2e2e;
    --card-border: rgba(20, 184, 166, 0.13);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(20,184,166,0.08);
    --card-shadow-hover: 0 20px 60px rgba(20,184,166,0.22), 0 4px 14px rgba(0,0,0,0.07);
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Pure-CSS premium hero background — replaces hero.webp (no image/svg/canvas).
   cyan -> teal -> deep-blue diagonal flow + soft rounded diagonal bars via a
   single ::before. Static gradients only (no blur, no animation) for perf. */
.hero-section {
    --hb-cyan: #2fd6ca;   /* bright, top-left      */
    --hb-teal: #0d8188;   /* mid                   */
    --hb-mid:  #0a4a63;   /* transition            */
    --hb-deep: #0a2740;   /* deep blue, bottom-rt  */
    position: relative;
    min-height: 92vh;
    background:
        /* bright cyan glow, top-left */
        radial-gradient(88% 78% at 4% -6%, rgba(96,244,224,0.55) 0%, rgba(96,244,224,0) 46%),
        /* deep-blue depth, bottom-right */
        radial-gradient(120% 100% at 104% 106%, rgba(6,20,40,0.78) 0%, rgba(6,20,40,0) 56%),
        /* soft diagonal light bar */
        linear-gradient(122deg, transparent 21%, rgba(176,252,238,0.13) 33%, rgba(176,252,238,0.13) 40%, transparent 55%),
        /* soft diagonal mid bar */
        linear-gradient(122deg, transparent 49%, rgba(13,96,102,0.32) 62%, transparent 80%),
        /* base diagonal colour flow */
        linear-gradient(128deg, var(--hb-cyan) 0%, var(--hb-teal) 37%, var(--hb-mid) 65%, var(--hb-deep) 100%);
    background-color: #061414;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}
/* Large soft rounded diagonal shapes for depth (sits under the darkening overlay). */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(62% 44% at 24% 12%, rgba(168,252,238,0.17) 0%, transparent 62%),
        radial-gradient(60% 42% at 82% 92%, rgba(8,26,48,0.34) 0%, transparent 62%),
        radial-gradient(52% 34% at 58% 54%, rgba(36,158,152,0.14) 0%, transparent 60%);
}

/* Reusable pure-CSS hero background with LARGE ROUNDED DIAGONAL BARS.
   overflow:hidden clips the rotated bar shapes so they never bleed past the
   hero or touch content flow. Inherits --hb-* colour vars from .hero-section. */
.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(92% 82% at 3% -10%, rgba(112,248,228,0.55) 0%, transparent 46%),
        linear-gradient(122deg, transparent 38%, rgba(150,240,235,0.07) 50%, transparent 64%),
        linear-gradient(128deg, var(--hb-cyan) 0%, var(--hb-teal) 44%, var(--hb-mid) 74%, var(--hb-deep) 100%);
}
/* upper light rounded bar */
.hero-background::before {
    content: '';
    position: absolute;
    left: -22%; top: -34%; width: 150%; height: 74%;
    background: linear-gradient(122deg, rgba(200,255,247,0.20) 0%, rgba(200,255,247,0.02) 72%);
    border-radius: 0 0 42% 42% / 0 0 92% 92%;
    transform: rotate(-24deg);
}
/* lower deeper rounded bar */
.hero-background::after {
    content: '';
    position: absolute;
    right: -26%; bottom: -34%; width: 156%; height: 78%;
    background: linear-gradient(122deg, rgba(9,58,72,0.36) 0%, rgba(9,58,72,0.04) 72%);
    border-radius: 42% 42% 0 0 / 92% 92% 0 0;
    transform: rotate(-24deg);
}

/* Layered gradient mesh overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(20,184,166,0.22) 0%, transparent 65%),
        linear-gradient(180deg,
            rgba(6,20,20,0.72) 0%,
            rgba(6,20,20,0.50) 45%,
            rgba(6,20,20,0.78) 100%);
    z-index: 0;
}

/* Ambient pulsing orb — the soul of the hero */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,212,191,0.13) 0%, transparent 68%);
    animation: hero-orb 9s ease-in-out infinite alternate;
    will-change: transform, opacity;
    pointer-events: none;
}

@keyframes hero-orb {
    from { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
    to   { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* When a popup is open, freeze hero animations so the GPU isn't compositing
   the moving hero behind the modal (residual popup lag). */
body.popup-open .hero-overlay::after,
body.popup-open .hero-input-group::after {
    animation-play-state: paused;
}

/* Page-load entrance */
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── NAVIGATION ─────────────────────────────── */

.hero-nav {
    position: relative;
    z-index: 10000;
    padding: 1.5rem 0;
    /* Solid-translucent instead of backdrop blur: a frosted nav has to
       re-blur the animated orb behind it every frame = hero jank. */
    background: rgba(6,20,20,0.62);
    border-bottom: 1px solid rgba(255,255,255,0.055);
}

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

.nav-logo { display: flex; align-items: center; }

/* ── LOGO BRAND — SVG icon + text ── */
.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.logo-brand:hover { opacity: 0.88; }

.logo-text {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

/* Footer logo — same brand but slightly larger text */
.footer-enhanced .logo-brand .logo-text {
    font-size: 1rem;
    letter-spacing: 0.09em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.18s ease;
}

.nav-link:hover { color: #fff; }

/* ── HERO CONTENT ───────────────────────────── */

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem 6rem;
    text-align: center;
    animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Headline — large, tight, luminous */
.hero-title {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(2.1rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 auto 2.75rem;
    max-width: 900px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}

/* ── INPUT WRAPPER + SIGNATURE GLOW ─────────── */

.hero-input-wrapper {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

/* The signature pulsing glow. Animates opacity of a composited layer (GPU)
   instead of box-shadow, which would force a full repaint every frame.
   Same look, no jank. */
@keyframes input-glow-pulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

.hero-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 1.1rem;
    border-radius: 18px;
    position: relative;
    /* static depth shadow + hairline ring (no per-frame repaint) */
    box-shadow:
        0 24px 72px rgba(0,0,0,0.38),
        0 0 0 1px rgba(255,255,255,0.11);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Pulsing teal glow lives on its own layer; only opacity animates */
.hero-input-group::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: 0 0 72px rgba(45,212,191,0.30);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    animation: input-glow-pulse 5s ease-in-out infinite;
}

/* round inner controls since the group no longer clips via overflow:hidden */
.hero-input { border-radius: 18px 0 0 18px; }
.hero-btn   { border-radius: 0 18px 18px 0; }

/* Focused: glow amplifies, input lifts */
.hero-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow:
        0 28px 80px rgba(0,0,0,0.42),
        0 0 0 2px rgba(45,212,191,0.7) !important;
}
.hero-input-group:focus-within::after {
    opacity: 1;
    animation-play-state: paused;
}

.hero-input {
    flex: 1;
    padding: 1.2rem 1.75rem;
    border: none;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    background: rgba(255,255,255,0.97);
    color: #060f0f;
    min-width: 0;
}

.hero-input::placeholder {
    color: #94a3b8;
}

.hero-btn {
    padding: 1.2rem 2.25rem;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%);
    color: white;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.22s ease, letter-spacing 0.22s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-btn:hover:not(:disabled) {
    filter: brightness(1.12);
    letter-spacing: 0.09em;
}

.hero-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hero-terms {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    margin: 0;
    letter-spacing: 0.01em;
}

.hero-link {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-link:hover { color: white; }

/* ── HERO RESPONSIVE ────────────────────────── */

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.9rem);
        letter-spacing: -0.025em;
    }

    .hero-content {
        padding: 2.5rem 1.25rem 5rem;
    }

    .hero-input-group {
        flex-direction: column;
        border-radius: 18px;
    }

    .hero-input {
        border-radius: 18px 18px 0 0;
        padding: 1.1rem 1.25rem;
    }

    .hero-btn {
        border-radius: 0 0 18px 18px;
        padding: 1.1rem;
    }

    .nav-menu {
        gap: 0.9rem;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .logo-img {
        height: 50px;
    }
}

/* ============================================
   TOOL SWITCHER — Premium Pill Tabs
   ============================================ */

.tool-switcher {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.tool-switch-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0.85rem 1.1rem;
    min-height: 50px;
    border-radius: 100px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.78);
    /* solid translucent instead of backdrop blur (re-blurred the animated orb) */
    background: rgba(255,255,255,0.12);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    user-select: none;
    box-sizing: border-box;
    text-align: center;
}

.tool-switch-btn:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.38);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.tool-switch-btn.active {
    background: rgba(255,255,255,0.94);
    border-color: transparent;
    /* teal-700, not #0d9488: 14px teal on a near-white pill only reached 3.74:1 */
    color: #0f766e;
    cursor: default;
    pointer-events: none;
    font-weight: 700;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.5),
        0 0 24px rgba(45,212,191,0.15);
}

.tool-switch-btn svg { flex-shrink: 0; }

@media (max-width: 640px) {
    /* Mobile: keep all 3 INLINE as compact tab-style buttons (icon on top, small
       wrapped label below) so they don't take over the hero. */
    .tool-switcher {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .tool-switch-btn {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
        padding: 0.5rem 0.3rem;
        font-size: 0.6rem;
        font-weight: 700;
        line-height: 1.12;
        min-height: 46px;
        border-radius: 12px;
        white-space: normal;
    }
    .tool-switch-btn svg { width: 15px; height: 15px; }
}

/* ============================================
   SECTION TITLES — Universal
   ============================================ */

.section-title {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #060f0f;
    text-align: center;
}

.dark-mode .section-title { color: #f1f5f9; }

.text-primary { color: #14b8a6 !important; }

/* Elegant section separator line */
.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #2dd4bf);
    border-radius: 100px;
    margin: 0 auto 3rem;
}

/* ============================================
   ALL-IN-ONE TOOLS SECTION
   ============================================ */

.yt-tools-section {
    padding: 6.5rem 0 7.5rem;
    background: #ffffff;
    position: relative;
}

.yt-tools-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(20,184,166,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.dark-mode .yt-tools-section { background: var(--bg-dark); }

.yt-tools-header {
    text-align: center;
    margin-bottom: 4rem;
}

.yt-tools-header h2 {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #060f0f;
    margin-bottom: 1rem;
}

.dark-mode .yt-tools-header h2 { color: #f1f5f9; }

.yt-tools-header p {
    color: #4a6e6e;
    font-size: 1.05rem;
    line-height: 1.72;
    max-width: 520px;
    margin: 0 auto;
}

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

@media (max-width: 900px) {
    .yt-tools-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}

/* ── TOOL CARDS — gradient border technique ── */
.yt-tool-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    /* gradient border via background-clip technique */
    border: 1.5px solid transparent;
    background-clip: padding-box;
    box-shadow: var(--card-shadow);
    outline: 1.5px solid rgba(20,184,166,0.12);
    outline-offset: 0px;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        outline-color 0.2s ease;
}

.yt-tool-card::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 25.5px;
    background: linear-gradient(135deg,
        rgba(45,212,191,0.5) 0%,
        rgba(20,184,166,0.1) 40%,
        rgba(20,184,166,0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.yt-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    outline-color: rgba(20,184,166,0);
    text-decoration: none;
}

.yt-tool-card:hover::before { opacity: 1; }

.yt-tool-card:focus-visible {
    outline: 3px solid #14b8a6;
    outline-offset: 3px;
}

.dark-mode .yt-tool-card {
    background: var(--bg-darker);
    border-color: var(--border-dark);
}

/* Icon wrap */
.yt-tool-icon-wrap {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg,
        rgba(45,212,191,0.18) 0%,
        rgba(20,184,166,0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(20,184,166,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #0d9488;
    flex-shrink: 0;
    transition: background 0.22s ease, transform 0.22s ease;
}

.yt-tool-card:hover .yt-tool-icon-wrap {
    background: linear-gradient(135deg,
        rgba(45,212,191,0.28) 0%,
        rgba(20,184,166,0.14) 100%);
    transform: scale(1.08) rotate(-2deg);
}

.yt-tool-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #060f0f;
    margin-bottom: 0.875rem;
    text-decoration: none;
    letter-spacing: -0.015em;
}

.dark-mode .yt-tool-card h3 { color: #f1f5f9; }

.yt-tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.yt-tool-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a6e6e;
    line-height: 1.65;
    margin-bottom: 0.25rem;
}

.dark-mode .yt-tool-features li { color: #94a3b8; }

.yt-check {
    flex-shrink: 0;
    margin-top: 3px;
    color: #14b8a6;
}

.yt-tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0d9488;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.yt-tool-card:hover .yt-tool-cta {
    gap: 0.7rem;
    color: #0f766e;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 6.5rem 0 7.5rem;
    background: var(--teal-50, #f0fdfc);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.3), transparent);
}

/* Subtle decorative blob */
.features-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,212,191,0.06) 0%, transparent 70%);
    right: -200px;
    top: -100px;
    pointer-events: none;
}

.dark-mode .features-section { background: var(--bg-dark); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* Feature cards — elevated white on light-teal bg */
.feature-card {
    padding: 2.5rem 1.75rem 2.25rem;
    border-radius: 22px;
    background: #ffffff;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03), 0 6px 20px rgba(20,184,166,0.07);
    outline: 1px solid rgba(20,184,166,0.1);
    position: relative;
    overflow: hidden;
}

/* Top accent line on cards */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.5), transparent);
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    outline-color: rgba(20,184,166,0.3);
}

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

.dark-mode .feature-card { background: var(--bg-darker); }

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(45,212,191,0.15) 0%,
        rgba(20,184,166,0.07) 100%);
    border-radius: 20px;
    border: 1px solid rgba(20,184,166,0.15);
    transition: background 0.22s ease, transform 0.22s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg,
        rgba(45,212,191,0.25) 0%,
        rgba(20,184,166,0.12) 100%);
    transform: scale(1.08) rotate(-3deg);
}

.feature-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.feature-icon svg {
    color: #0d9488;
    stroke: #0d9488;
}

.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #060f0f;
    letter-spacing: -0.01em;
}

.dark-mode .feature-title { color: #f1f5f9; }

.feature-description {
    font-size: 0.875rem;
    color: #4a6e6e;
    line-height: 1.68;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 6.5rem 0 7.5rem;
    background: #ffffff;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.2), transparent);
}

.dark-mode .faq-section { background: var(--bg-dark); }

.faq-container {
    max-width: 840px;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 0;
}

.dark-mode .faq-container {
    background: var(--bg-darker);
    border-color: var(--border-dark);
}

.faq-item {
    border-bottom: 1px solid rgba(20,184,166,0.11);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1e1e;
    text-align: left;
    transition: color 0.2s ease;
    gap: 1.25rem;
}

.dark-mode .faq-question { color: #f1f5f9; }

.faq-question:hover { color: #0f766e; }

.faq-icon {
    flex-shrink: 0;
    opacity: 0.5;
    stroke: currentColor;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: #14b8a6;
}

.faq-item.active .faq-question { color: #0f766e; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: #4a6e6e;
    font-size: 0.95rem;
    line-height: 1.78;
    margin: 0;
}

/* ============================================
   CTA SECTION — DRAMATIC
   ============================================ */

.cta-section {
    padding: 5rem 0 6rem;
    background: var(--teal-50, #f0fdfc);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.3), transparent);
}

.dark-mode .cta-section { background: var(--bg-darker); }

.cta-box {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(130deg,
        #0f766e 0%,
        #0d9488 28%,
        #14b8a6 62%,
        #2dd4bf 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    /* Static gradient — the 8s background-position drift forced a full-box
       repaint every frame for a barely-perceptible color shift. Removed. */
}

/* Decorative circles */
.cta-box::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    right: -120px;
    top: -220px;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    left: -80px;
    bottom: -130px;
    pointer-events: none;
}

.cta-title {
    position: relative;
    z-index: 1;
    padding: 5.5rem 2rem;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: white;
    margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        padding: 4rem 1.5rem;
    }
}

/* ============================================
   FOOTER — DARK CINEMATIC ANCHOR
   ============================================ */

.footer-enhanced {
    padding: 5rem 0 2.75rem;
    background: #040f0f;
    border-top: none;
    position: relative;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,212,191,0.45), transparent);
}

.dark-mode .footer-enhanced {
    background: #020a0a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.25fr 1fr 1fr 1fr;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 58px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    /* Make logo visible on dark bg */
    filter: brightness(0) invert(1) opacity(0.82);
}

@media (max-width: 560px) {
    .footer-logo { margin: 0 auto 1.25rem; }
}

.footer-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    /* was 0.35 alpha = 3.16:1 on #040f0f, below AA for 11.5px bold.
       0.52 gives ~5.7:1 and stays dimmer than .footer-link (0.62). */
    color: rgba(255,255,255,0.52);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    /* was 0.42 alpha = 4.04:1, below AA. 0.62 gives ~7:1 and stays secondary. */
    color: rgba(255,255,255,0.62);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.18s ease;
    /* 44px min touch target (design system); negative margin keeps the
       visual rhythm identical to the old 0.65rem gap. */
    display: block;
    padding: 0.62rem 0;
    margin: -0.62rem 0;
}

.footer-link:hover { color: #2dd4bf; }

.footer-text {
    /* was 0.28 alpha = 2.50:1 */
    color: rgba(255,255,255,0.62);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    /* was 0.28 alpha = 2.42:1 on #040f0f. 0.50 gives ~5.3:1. */
    color: rgba(255,255,255,0.50);
    font-size: 0.8rem;
    line-height: 1.65;
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */

.seo-content {
    padding: 5.5rem 1.5rem;
    background: #f8fafc;
    position: relative;
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.2), transparent);
}

.dark-mode .seo-content { background: var(--bg-darker); }

.seo-content .container {
    max-width: 820px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #060f0f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.seo-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #060f0f;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.seo-content p {
    font-size: 0.94rem;
    color: #4a6e6e;
    line-height: 1.82;
    margin-bottom: 0.875rem;
}

.seo-content ol,
.seo-content ul {
    margin: 0 0 0.875rem 1.5rem;
    padding: 0;
}

.seo-content li {
    font-size: 0.94rem;
    color: #4a6e6e;
    line-height: 1.82;
    margin-bottom: 0.35rem;
}

.dark-mode .seo-content h2,
.dark-mode .seo-content h3 { color: #f1f5f9; }

.dark-mode .seo-content p,
.dark-mode .seo-content li { color: #94a3b8; }
