/* ============================================================================
   Sentra Landing Page
   Native landing page styles. Editable in place.
   Primary brand button color is the platform's dark teal #0d2e36.
   ============================================================================ */

/* PowerGrotesk: brand wordmark only — apply via .brand class.
   Self-hosted; mirror of the @font-face in shared.css so the landing
   doesn't need to load shared.css just for the brand font. */
@font-face {
    font-family: 'PowerGrotesk';
    src: url('/static/fonts/PowerGrotesk-Regular.woff2') format('woff2'),
         url('/static/fonts/PowerGrotesk-Regular.woff') format('woff'),
         url('/static/fonts/PowerGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Wordmark utility — apply to any "Sentra" text to render in the brand font. */
.brand {
    font-family: 'PowerGrotesk', 'Inter', sans-serif;
    letter-spacing: 0;
}

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

:root {
    --bg: #f7f7f5;
    --bg-2: #ffffff;
    --bg-soft: #efeee8;
    --ink: #0f1620;
    --ink-2: #1f2733;
    --muted: #6b7585;
    --muted-2: #8b95a3;
    --line: #e6e4de;
    --line-2: #d4d2cb;

    /* Brand: platform's dark teal as primary, emerald as live/accent */
    --brand: #0d2e36;
    --brand-hover: #164a56;
    --emerald: #10b981;
    --emerald-soft: rgba(16,185,129,0.15);
    --warn: #b45309;
    --warn-soft: rgba(180,83,9,0.12);
    --accent: #0d2e36;

    --dark: #0a0e15;
    --dark-2: #0d131c;
    --dark-line: #1e2939;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif: 'Instrument Serif', Georgia, serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --ar: 'Tajawal', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

/* ============ SCROLL REVEAL ============
   Subtle fade-up as elements scroll into view. Driven by IntersectionObserver
   in landing.js — adds .in-view once an element crosses the threshold (one-shot).
   Hero is exempt: it's above the fold and should paint immediately. */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger: child .reveal-item nodes appear ~80 ms apart for a cascade. */
.reveal.in-view .reveal-item   { transition-delay: 0ms; }
.reveal.in-view .reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal.in-view .reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal.in-view .reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal.in-view .reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced-motion preference: no animation, just appear. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { display: block; max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost.btn-on-dark {
    color: #f3f1ec;
    border-color: rgba(255,255,255,0.2);
}
.btn-ghost.btn-on-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ============ NAV ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,247,245,0.85);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.015em;
}
.nav-brand:hover { color: var(--ink); }
.brand-mark { width: 22px; height: auto; color: var(--ink); }
.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14.5px;
    color: var(--muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-cta { display: flex; gap: 10px; }

@media (max-width: 860px) {
    .nav-links { display: none; }
}

/* ============ HERO ============ */
.hero {
    padding: 88px 0 96px;
    background:
        radial-gradient(ellipse at 80% -10%, rgba(13,46,54,0.05), transparent 60%),
        var(--bg);
}
.hero-inner { max-width: 880px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--muted-2);
    box-shadow: 0 0 0 4px rgba(139,149,163,0.18);
}
.hero-eyebrow[data-state="running"] {
    color: #047857;
    background: var(--emerald-soft);
    border-color: rgba(16,185,129,0.3);
}
.hero-eyebrow[data-state="running"] .dot {
    background: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.25);
    animation: pulse 1.6s ease-in-out infinite;
}
.hero-eyebrow[data-state="upcoming"] {
    color: var(--warn);
    background: var(--warn-soft);
    border-color: rgba(180,83,9,0.25);
}
.hero-eyebrow[data-state="upcoming"] .dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(180,83,9,0.18); }
.hero-eyebrow[data-state="none"] {
    color: var(--muted);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.25); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.10); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.028em;
    margin-bottom: 22px;
    color: var(--ink);
}
.hero-rotator {
    display: inline-block;
    min-height: 1em;
    position: relative;
}
.hero-rotator em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--brand);
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-rotator em.swap-out {
    opacity: 0;
    transform: translateY(-8px);
}
.hero-rotator em.swap-in {
    opacity: 0;
    transform: translateY(8px);
}
.hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 32px;
    line-height: 1.55;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.hero-meta-k {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
}
.hero-meta-v {
    font-size: 14.5px;
    color: var(--ink);
}
@media (max-width: 720px) {
    .hero { padding: 56px 0 64px; }
    .hero-meta { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ SECTIONS ============ */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
    background: var(--dark);
    color: #f3f1ec;
}
.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 14px;
}
.section-eyebrow.accent { color: var(--emerald); }
.section-title {
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.1;
}
.section-title.light { color: #f3f1ec; }
@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 32px; }
}

/* ============ DEMO VIDEO ============ */
.demo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.demo-tabs {
    display: inline-flex;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(15,22,32,0.04);
}
.demo-tabs button {
    padding: 8px 22px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 999px;
    font-family: var(--sans);
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.demo-tabs button:hover:not(.active) { color: var(--ink); }
.demo-tabs button.active {
    background: var(--brand);
    color: #fff;
}
.demo-tabs button[data-demo-lang="ar"] {
    font-family: var(--ar);
    font-weight: 700;
    font-size: 14px;
}
.demo-tabs[hidden] { display: none; }

.demo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.35);
    border: 1px solid var(--line);
}
.demo-video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--dark);
    /* Native HTML5 controls fade smoothly out of the box. */
}
.demo-video[hidden] { display: none; }
.demo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,0.025) 0 14px,
            transparent 14px 28px
        ),
        var(--dark);
    color: rgba(255,255,255,0.55);
}
.demo-placeholder[hidden] { display: none; }
.demo-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.demo-play {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 14px;
    width: 72px;
    height: 72px;
    box-sizing: content-box;
}

/* ============ FEATURES ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.feature {
    background: var(--bg-2);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
    transition: background 0.2s ease;
}
.feature:hover { background: #fafaf6; }
.feature-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.feature h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.2;
}
.feature p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 980px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ============ LAB SECTION ============ */
.lab-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.lab-lead {
    font-size: 17px;
    color: #c8cfd8;
    line-height: 1.55;
    margin-bottom: 28px;
}
.lab-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lab-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    color: #c8cfd8;
}
.lab-list strong { color: #f3f1ec; font-weight: 600; }
.lab-list .check {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px; height: 18px;
    border-radius: 999px;
    background: rgba(16,185,129,0.18);
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lab-window {
    background: var(--dark);
    border-radius: 12px;
    border: 1px solid var(--dark-line);
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lab-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-line);
    background: var(--dark-2);
}
.lab-titlebar .dots { display: flex; gap: 6px; }
.lab-titlebar .dots span {
    width: 11px; height: 11px; border-radius: 999px;
    background: #2b3441;
}
.lab-titlebar .title {
    font-family: var(--mono);
    font-size: 12px;
    color: #6b7585;
    margin-left: 8px;
}
.lab-tabs {
    display: flex;
    border-bottom: 1px solid var(--dark-line);
    background: var(--dark-2);
}
.lab-tab {
    padding: 10px 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: #6b7585;
    background: transparent;
    border: none;
    border-right: 1px solid var(--dark-line);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lab-tab:hover { color: #cfd5dd; }
.lab-tab.active {
    color: #f3f1ec;
    background: var(--dark);
    border-bottom: 1px solid var(--emerald);
    margin-bottom: -1px;
}
.lab-body {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    color: #cfd5dd;
    padding: 22px;
    min-height: 320px;
}
.lab-body[hidden] { display: none; }
.lab-body-desktop { padding: 0; min-height: 320px; }

/* GUI desktop mock */
.gui-desktop {
    position: relative;
    width: 100%;
    height: 320px;
    background:
        radial-gradient(circle at 60% 50%, #2a6db5 0%, #1a4a87 35%, #0c2a52 70%, #061a36 100%);
    overflow: hidden;
}
.gui-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.gui-folder {
    width: 36px;
    height: 28px;
    background: linear-gradient(180deg, #5a8fc8, #3a6da8);
    border-radius: 4px 4px 3px 3px;
    position: relative;
}
.gui-folder::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 16px;
    height: 6px;
    background: linear-gradient(180deg, #5a8fc8, #4a7eb8);
    border-radius: 3px 3px 0 0;
}
.gui-window {
    position: absolute;
    top: 56px;
    right: 24px;
    width: 230px;
    background: #f7f7f5;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    color: var(--ink);
}
.gui-window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: #e6e4de;
    border-bottom: 1px solid #d4d2cb;
}
.gui-window-bar > span:not(.gui-window-title) {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #c8c6bf;
}
.gui-window-bar .gui-window-title {
    font-family: var(--sans);
    font-size: 11px;
    color: #5a6373;
    margin-left: 6px;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
}
.gui-window-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink);
}
.gui-file {
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e6e4de;
    border-radius: 4px;
}
.gui-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(10,14,21,0.92);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.gui-task-app {
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
}
.gui-task-active { background: var(--emerald); }
.gui-task-spacer { flex: 1; }
.gui-task-clock {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
}
.lab-prompt { color: #6b7585; }
.lab-user { color: #6dd3a3; }
.lab-host { color: var(--emerald); }
.lab-cmd { color: #f3f1ec; }
.lab-out { color: #8a94a4; }
.lab-out-h { color: #e0c269; }
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #f3f1ec;
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
    margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 980px) {
    .lab-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ BOOTCAMPS LIST ============ */
.bc-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 0;
    color: var(--muted);
    font-size: 14px;
}
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-2);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bc-empty {
    background: var(--bg-2);
    border: 1px dashed var(--line-2);
    border-radius: 14px;
    padding: 48px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}
.bc-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.bc-row:hover {
    border-color: var(--ink);
    box-shadow: 0 18px 40px -16px rgba(15,22,32,0.14);
    transform: translateY(-2px);
}
.bc-img {
    position: relative;
    background: var(--bg-soft);
    overflow: hidden;
    /* Stretches with row height; object-fit: cover handles any crop.
       380px column width with typical row heights ≈ 16:9, so an uploaded
       16:9 cover image gets minimal side crop. */
    min-height: 220px;
}
.bc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-img-fallback {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(15,22,32,0.05) 0 8px, transparent 8px 16px),
        var(--bg-soft);
}
.bc-img-overlay { display: none; } /* dropped: was muddying real photos */
.bc-img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.bc-img-badge[data-status="RUNNING"] { background: rgba(16,185,129,0.95); }
.bc-img-badge[data-status="FINISHED"] { background: rgba(15,22,32,0.78); }
.bc-img-badge[hidden] { display: none; }

.bc-body {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bc-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.bc-meta .pip {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
}
.bc-title {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.022em;
    line-height: 1.15;
    color: var(--ink);
}
.bc-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.bc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 6px 0;
}
.bc-stat {
    padding: 12px 16px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 1px solid var(--line);
}
.bc-stat:last-child { border-right: none; padding-right: 0; }
.bc-stat:not(:first-child) { padding-left: 16px; }
.bc-stat .k {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.bc-stat .v {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.005em;
}
.bc-stat[hidden] { display: none; }
.bc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.bc-price {
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

@media (max-width: 860px) {
    .bc-row { grid-template-columns: 1fr; }
    .bc-img {
        /* Single-column: let the image keep its natural ratio at full width */
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .bc-body { padding: 22px; }
    .bc-stats { grid-template-columns: 1fr 1fr; }
    .bc-stat { border-right: none; }
    .bc-stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .bc-stat:nth-child(1), .bc-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ STEPS (HOW IT WORKS) ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.step {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.step:last-child { border-right: none; }
.step-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--brand);
}
.step h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.step p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}
@media (max-width: 980px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .step:nth-child(2) { border-right: none; }
    .step:nth-child(3), .step:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .steps { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--line); }
    .step:last-child { border-bottom: none; }
    .step:nth-child(3), .step:nth-child(4) { border-top: none; }
}

/* ============ CTA CARD ============ */
.cta-card {
    background: var(--ink);
    color: #f3f1ec;
    border-radius: 18px;
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.cta-card h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 18px;
    position: relative;
}
.cta-card h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.cta-card p {
    color: #a0a8b3;
    font-size: 17px;
    margin-bottom: 24px;
    max-width: 460px;
    position: relative;
}
.cta-card .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}
.cta-card .btn-primary { background: var(--emerald); color: #fff; }
.cta-card .btn-primary:hover { background: #0ea271; color: #fff; }
.cta-side {
    font-family: var(--mono);
    font-size: 12px;
    position: relative;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cta-side .row { display: flex; flex-direction: column; gap: 4px; }
.cta-side .k {
    color: #6b7585;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 10.5px;
}
.cta-side .v { color: #f3f1ec; font-size: 14px; font-family: var(--sans); }
@media (max-width: 980px) {
    .cta-card { grid-template-columns: 1fr; padding: 40px 28px; }
    .cta-side {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-left: 0;
        padding-top: 24px;
    }
}

/* ============ FAQ ============ */
.faq {
    border-top: 1px solid var(--line);
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.015em;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .num { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 32px; flex-shrink: 0; }
.faq-item .label { flex: 1; }
.faq-item .sign {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.faq-item[open] .sign { transform: rotate(45deg); color: var(--brand); }
.faq-a {
    padding: 0 0 24px 32px;
    color: var(--muted);
    max-width: 720px;
    font-size: 15.5px;
    line-height: 1.6;
}

/* ============ FOOTER ============ */
footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 64px 0 32px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.foot-brand .brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
    color: var(--ink);
}
.foot-brand p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 280px;
    line-height: 1.5;
}
.foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 500;
}
.foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.foot-col a { color: var(--ink); font-size: 15px; transition: color 0.15s ease; }
.foot-col a:hover { color: var(--brand); }
.foot-socials a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}
.foot-socials a:hover { color: var(--brand); }
.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.04em;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 720px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============ MODAL (ENROLL) ============ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,22,32,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: var(--bg-2);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    padding: 32px 32px 28px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
    transform: translateY(8px);
    transition: transform 0.2s ease;
    max-height: 92vh;
    overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.modal h3 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
}
.modal .lead {
    color: var(--muted);
    font-size: 14.5px;
}
.modal .x {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
.modal .x:hover { background: var(--bg); color: var(--ink); }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.field-row .field { margin-bottom: 14px; }
.field label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--muted-2); font-size: 10.5px; margin-left: 4px; }
.field input, .field select, .field textarea {
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14.5px;
    background: var(--bg-2);
    color: var(--ink);
    transition: border-color 0.15s ease;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
}

/* Phone input with attached country-code prefix */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--bg-2);
    transition: border-color 0.15s ease;
    overflow: hidden;
}
.phone-input:focus-within {
    border-color: var(--brand);
}
.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--muted);
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    user-select: none;
    letter-spacing: 0.02em;
}
.phone-input input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding-left: 12px;
}
.phone-input input:focus {
    border: none !important;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.form-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(180,40,40,0.06);
    border: 1px solid rgba(180,40,40,0.2);
    border-radius: 8px;
    color: #b62121;
    font-size: 13.5px;
}
.modal-success {
    text-align: center;
    padding: 24px 8px 8px;
}
.modal-success .check-big {
    width: 56px; height: 56px;
    border-radius: 999px;
    background: var(--emerald-soft);
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-success h3 { margin-bottom: 8px; }
.modal-success .btn { margin-top: 18px; }

@media (max-width: 540px) {
    .field-row { grid-template-columns: 1fr; }
}
