/* ==========================================================================
   Deep Crown — landing page
   Identity derived from the app (frontend/css/style.css): blue-black field,
   violet→cyan accents, glass hairlines · Fraunces (display) + Inter
   ========================================================================== */

:root {
    --ink: #0a0a0f;          /* app --bg-primary */
    --ink-2: #12121a;        /* app --bg-secondary */
    --ink-3: #1a1a25;        /* app --bg-tertiary */
    --paper: #ffffff;        /* app --text-primary */
    --paper-dim: #a0a0b0;    /* app --text-secondary */
    --hairline: rgba(255, 255, 255, 0.08);   /* app --border-color */
    --accent: #8b5cf6;       /* app --accent-primary */
    --accent-2: #06b6d4;     /* app --accent-secondary */
    --accent-grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --accent-soft: rgba(139, 92, 246, 0.2);
    --success: #10b981;
    --error: #ef4444;
    --serif: 'Unbounded', 'Fraunces', Georgia, sans-serif;  /* impact display face */
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    background-image: radial-gradient(1200px 700px at 50% -10%, rgba(139, 92, 246, 0.05), transparent 60%);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { color: inherit; }

/* Grain — an ink field with paper texture, drawn in code, no images */
.grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    /* brand + section nav grouped on the left; actions pushed right */
    justify-content: flex-start;
    gap: clamp(22px, 3.2vw, 42px);
    padding: 18px 28px;
    transition: background 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

/* minimal.html has no .head-actions — its lone login link keeps the right edge */
.site-head > .login-link { margin-left: auto; }

.site-head.scrolled {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--hairline);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.02em;
    /* one line always: at ~330px layout width (phone browser zoom 125%+)
       the name used to wrap "Deep / Crown" down over the hero title */
    white-space: nowrap;
}

.brand svg {
    color: #FFD700;
    animation: brandPulse 4s ease-in-out infinite;   /* the app's own logo pulse */
}

@keyframes brandPulse {
    0%, 100% { opacity: 1; transform: scale(1); color: #FFD700; }
    50%      { opacity: 0.7; transform: scale(1.1); color: #FF6B6B; }
}

@media (prefers-reduced-motion: reduce) {
    .brand svg { animation: none; }
}

.login-link {
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--paper-dim);
    transition: color 0.25s ease;
}

.login-link:hover { color: var(--accent); }

/* ---- Section nav: three doors into the film ---- */

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

.head-nav a {
    position: relative;
    padding: 4px 2px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--paper-dim);
    transition: color 0.25s ease;
}

.head-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-grad);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.head-nav a:hover { color: var(--paper); }

.head-nav a.on { color: var(--paper); }
.head-nav a.on::after { opacity: 1; transform: scaleX(1); }

.head-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* .btn qualifier: this rule sits before the .btn base (defined below) —
   without it the base padding/size would win the cascade and blow the
   header bar up to ~92px */
.btn.btn-head {
    padding: 9px 18px;
    font-size: 13.5px;
    border-radius: 7px;
    box-shadow: 0 6px 22px var(--accent-soft);
    white-space: nowrap;   /* never "Începe / gratuit" on two lines */
}

/* invisible landing points for the nav, placed inside the scroll tracks */
.nav-anchor {
    position: absolute;
    left: 0;
    width: 1px;
    height: 1px;
}

#faq { scroll-margin-top: 76px; }

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

@media (max-width: 560px) {
    .head-actions .login-link { display: none; }
}

/* --------------------------------------------------------------------------
   Beats — the shared stage
   -------------------------------------------------------------------------- */

.beat {
    position: relative;
    z-index: 3;
    padding: clamp(110px, 17vh, 190px) 24px;
    text-align: center;
}

.beat h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.65rem, 4.2vw, 2.9rem);
    line-height: 1.14;
    letter-spacing: -0.008em;
    max-width: 22ch;
    margin: 0 auto;
    text-wrap: balance;
}

.beat h2 em { font-style: normal; }

.whisper {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--paper-dim);
    max-width: 34em;
    margin: 26px auto 0;
    text-wrap: pretty;
}

.accent-text { color: var(--accent); }

/* the name is always gold — the app's crown color */
.dc-gold { color: #FFD700; }

/* key phrases wear the app's accent gradient */
.grad-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}

.stamp {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin-bottom: 26px;
    font-variant-numeric: tabular-nums;
}

.stamp::after {
    content: "";
    display: block;
    width: 1px;
    height: 26px;
    margin: 14px auto 0;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 5.4vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: 0.01em;
    color: var(--paper-dim);
    /* the 4th row of the hero stanza: tight under «în timp real,»,
       auto side margins — the box must center, not just its text */
    margin: 14px auto 0;
    max-width: 40ch;
    text-wrap: balance;
}


.cta-block { margin-top: 52px; }

.cta-micro {
    font-size: 12.5px;
    color: var(--paper-dim);
    margin-top: 14px;
    letter-spacing: 0.01em;
}

.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-cue span {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    opacity: 0.55;
    animation: cue 2.6s var(--ease) infinite;
}

@keyframes cue {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-accent {
    background: var(--accent-grad);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 34px var(--accent-soft);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 16px 44px rgba(139, 92, 246, 0.26);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Stakes (14:02)
   -------------------------------------------------------------------------- */

.stake-line {
    font-family: var(--serif);
    /* 500, like every other scene headline — this was the page's only
       light-weight lead (Andrei: "the only one with no bold") */
    font-weight: 500;
    font-size: clamp(1.2rem, 2.7vw, 1.9rem);
    line-height: 1.3;
    max-width: 30ch;
    margin: 0 auto;
    text-wrap: balance;
}

.stake-line em {
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
}

.stake-promise {
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    font-weight: 500;
    color: var(--paper);
    max-width: 32em;
    margin: 34px auto 0;
    text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Alert beat — WhatsApp mock
   -------------------------------------------------------------------------- */

.wa-card {
    max-width: 420px;
    margin: 58px auto 0;
    padding: 20px 20px 22px;
    text-align: left;
    background: var(--ink-2);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.wa-caption {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-dim);
    margin-bottom: 14px;
}

.wa-bubble {
    position: relative;
    background: #1a1a25;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px 14px 14px 14px;
    padding: 12px 15px 14px;
    font-size: 14.5px;
    line-height: 1.5;
}

.wa-bubble + .wa-bubble { margin-top: 10px; }

.wa-link {
    color: #06b6d4;
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.4);
    margin-top: 4px;
    font-size: 14px;
}

.wa-reason {
    color: var(--paper-dim);
    margin-top: 4px;
    font-size: 13.5px;
}

.wa-time {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 10.5px;
    color: var(--paper-dim);
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Third way
   -------------------------------------------------------------------------- */

.third-way h2 { max-width: 26ch; }

.third-line {
    font-family: var(--serif);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 500;
    margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Engine — stats
   -------------------------------------------------------------------------- */

.engine h2 { max-width: 24ch; }

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(36px, 6vw, 76px);
    margin-top: 54px;
}

.stat { min-width: 150px; }

.num {
    display: block;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    color: var(--accent);
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lbl {
    display: block;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.engine .whisper { margin-top: 50px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { padding-top: clamp(60px, 9vh, 110px); padding-bottom: clamp(60px, 9vh, 110px); }

/* quieter than the statement beats — a label, not a claim */
.faq h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: clamp(42px, 6vh, 66px);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 72px;
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
}

.faq-item dt {
    font-size: 17px;
    font-weight: 500;
    color: var(--paper);
}

.faq-item dd {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--paper-dim);
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Closing — two doors
   -------------------------------------------------------------------------- */

.closing h2 {
    font-size: clamp(1.8rem, 4.6vw, 3.3rem);
    max-width: 19ch;
}

.doors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(28px, 5vw, 56px);
    margin-top: 58px;
}

.door-note {
    font-size: 13px;
    color: var(--paper-dim);
    margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Agency form
   -------------------------------------------------------------------------- */

.agency {
    padding-top: clamp(70px, 10vh, 120px);
    border-top: 1px solid var(--hairline);
}

.agency h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
}

.agency .whisper { margin-top: 14px; }

#agencyForm {
    display: grid;
    gap: 26px;
    max-width: 520px;
    margin: 46px auto 0;
    text-align: left;
}

#agencyForm input,
#agencyForm textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 2px;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.25s ease;
}

#agencyForm input::placeholder,
#agencyForm textarea::placeholder { color: var(--paper-dim); opacity: 0.75; }

#agencyForm input:focus,
#agencyForm textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

#agencyForm button { justify-self: start; margin-top: 6px; }

.form-error {
    font-size: 13px;
    color: var(--error);
}

.form-ok {
    font-size: 15.5px;
    color: var(--success);
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* the source band above the footer — the 17 monitored publications in a
   slow marquee, framed by its own hairline and the footer's. The page's
   ONLY ticker (the film's gap-ticker was cut 2026-07-08). */
.foot-ticker {
    position: relative;
    z-index: 3;
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid var(--hairline);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-inner {
    display: inline-flex;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--paper-dim);
    opacity: 0.7;
    /* 160s, not 80: the strip now holds FOUR copies (see landing.html), so
       -50% travels twice as far per cycle — double the time keeps the same
       visual pace as the original two-copy version */
    animation: tickerScroll 160s linear infinite;
    will-change: transform;
}

@keyframes tickerScroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    /* both marquees (foot ticker + the monitor scene's) hold still */
    .ticker-inner { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-inner { animation: none; }
}

.site-foot {
    position: relative;
    z-index: 3;
    padding: 54px 24px 46px;
    text-align: center;
    border-top: 1px solid var(--hairline);
}

.site-foot p {
    font-size: 12.5px;
    color: var(--paper-dim);
}

.site-foot p + p { margin-top: 8px; }

.site-foot a {
    color: var(--paper-dim);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-foot a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Reveal motion (JS adds .in-view per beat; delays set inline by JS)
   -------------------------------------------------------------------------- */

html.js .r,
html.js .w {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js .w { display: inline-block; transform: translateY(0.45em); }

html.js .in-view .r,
html.js .in-view .w {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .r,
    html.js .w {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-cue span { animation: none; }
    .btn { transition: none; }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .beat { padding-left: 20px; padding-right: 20px; }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .site-head { padding: 14px 18px; }
    .doors { flex-direction: column; align-items: center; }
    .wa-card { max-width: 100%; }
}

/* Very narrow layout viewports — small phones and, more commonly, phone
   browsers zoomed to 125-150% (page zoom shrinks the CSS viewport to
   ~280-340px). The bar must still be ONE line: brand left, CTA right.
   AFTER the 640px block: same specificity, so source order decides —
   earlier in the file its .site-head padding lost to the 640 rule. */
@media (max-width: 400px) {
    .site-head { padding: 12px 14px; gap: 12px; }
    .brand { font-size: 14px; gap: 8px; }
    .btn.btn-head { padding: 8px 12px; font-size: 12.5px; }
}
