/* =========================================================================
   Simcha DB Studio product site - layout + components on top of styles.css + funnel.css
   ========================================================================= */

:root {
    --code-bg: #0a1428;
    --code-bg-soft: #0e1c3a;
    --code-border: rgba(90, 145, 245, 0.18);
    --hl-glow: 0 0 0 1px rgba(90, 145, 245, 0.35), 0 16px 60px -20px rgba(53, 117, 242, 0.45);
}

/* ---- Logo wordmark next to brandmark ---- */
.logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-wordmark {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

/* Inline highlight token */
.hl {
    color: var(--primary-light);
}
.hl-light {
    color: #c9d8ff;
}

/* ============================================================
   HERO
   ============================================================ */
.product-hero-section {
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 64px;
    align-items: center;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border: 1px solid rgba(90, 145, 245, 0.4);
    border-radius: 999px;
    background: rgba(90, 145, 245, 0.10);
    color: #c9d8ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
}
.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7b7;
    box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18);
    animation: pillPulse 2.4s ease-in-out infinite;
}
@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.10); }
    50%      { box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.22); }
}

.product-hero-headline {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 24px;
}
.product-hero-sub {
    font-size: 19px;
    line-height: 1.65;
    color: #e6edf7;
    margin: 0 0 36px;
    max-width: 580px;
}

.product-hero-ctas {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    background: linear-gradient(180deg, #4a8af5, #2563eb);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -10px rgba(37, 99, 235, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-primary-glow:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 56px -10px rgba(37, 99, 235, 0.65);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: transparent;
    color: #e6edf7;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(230, 237, 247, 0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-ghost:hover {
    border-color: rgba(230, 237, 247, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9fb2d1;
}
.meta-stat strong {
    color: #ffffff;
    font-weight: 700;
}
.meta-divider {
    color: rgba(159, 178, 209, 0.45);
}

/* ============================================================
   CODE WINDOW (used in hero + spotlight)
   ============================================================ */
.code-window {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--hl-glow);
    position: relative;
}
.code-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #11203f, #0d1a36);
    border-bottom: 1px solid var(--code-border);
}
.chrome-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.chrome-dot.dot-r { background: #ff5f57; }
.chrome-dot.dot-y { background: #febc2e; }
.chrome-dot.dot-g { background: #28c840; }
.chrome-title {
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #8aa3c8;
    letter-spacing: 0.01em;
}
.code-body {
    margin: 0;
    padding: 22px 24px 26px;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: #d6e1f5;
    background: transparent;
    overflow-x: auto;
    white-space: pre;
}

/* Syntax tokens */
.code-body .cm   { color: #5a91f5; }                /* prompt $ */
.code-body .cmd  { color: #c9d8ff; font-weight: 600; }
.code-body .arg  { color: #e6edf7; }
.code-body .cmt  { color: #7c9bcc; font-style: italic; }
.code-body .ok   { color: #6ee7b7; font-weight: 700; }
.code-body .warn { color: #fbbf24; font-weight: 700; }
.code-body .err  { color: #f87171; font-weight: 700; }
.code-body .kw   { color: #c084fc; font-weight: 600; }
.code-body .type { color: #fbbf24; }
.code-body .fn   { color: #5eead4; }
.code-body .muted { color: #6e8ab4; }

.code-window-sm .code-body {
    font-size: 12.5px;
    line-height: 1.65;
}

/* ============================================================
   MARQUEE: supported database logos
   ============================================================ */
.dbs-marquee {
    padding: 70px 0 90px;
    border-top: 1px solid rgba(230, 237, 247, 0.08);
    border-bottom: 1px solid rgba(230, 237, 247, 0.08);
    position: relative;
}
.marquee-kicker {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #6e8ab4;
    margin: 0 0 10px;
}
.marquee-heading {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 44px;
}

.marquee-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    display: flex;
}
.marquee-row {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 24px 32px;
    flex: 0 0 auto;
    animation: marqueeScroll 50s linear infinite;
}
.marquee-row img {
    height: 56px;
    width: auto;
    max-width: 200px;
    opacity: 0.92;
    transition: opacity 0.25s ease, transform 0.25s ease;
    flex: 0 0 auto;
}
.marquee-row img:hover {
    opacity: 1;
    transform: scale(1.06);
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-foot {
    text-align: center;
    margin-top: 36px;
    color: #9fb2d1;
    font-size: 15px;
}
.marquee-foot a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 145, 245, 0.4);
    transition: border-color 0.18s ease;
}
.marquee-foot a:hover {
    border-bottom-color: var(--primary-light);
}

/* ============================================================
   Section structure helpers
   ============================================================ */
.section-kicker {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--primary-light);
    margin-bottom: 14px;
}
.section-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 20px;
}
.section-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #e6edf7;
    max-width: 740px;
}

/* ============================================================
   PROBLEM BLOCK
   ============================================================ */
.problem-block {
    padding: 100px 0;
}
.problem-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}
.problem-left p {
    color: #e6edf7;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 560px;
}

.tool-stack-card {
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 24px 26px;
    margin-bottom: 18px;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(8px);
    position: relative;
}
.tool-stack-card.stack-new {
    border-color: rgba(90, 145, 245, 0.45);
    background: linear-gradient(180deg, rgba(53, 117, 242, 0.12), rgba(10, 20, 40, 0.55));
    box-shadow: 0 16px 40px -16px rgba(53, 117, 242, 0.45);
}
.stack-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9fb2d1;
    margin-bottom: 14px;
}
.tool-stack-card.stack-new .stack-label {
    color: var(--primary-light);
}
.tool-stack-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tool-stack-card li {
    padding: 8px 0;
    color: #d6e1f5;
    font-size: 15px;
    border-bottom: 1px solid rgba(230, 237, 247, 0.06);
}
.tool-stack-card li:last-child { border-bottom: none; }
.tool-stack-card.stack-new li {
    color: #ffffff;
    font-weight: 500;
}

/* ============================================================
   PILLARS BLOCK
   ============================================================ */
.pillars-block {
    padding: 100px 0;
}
.pillars-block .section-header {
    text-align: center;
    margin-bottom: 60px;
}
.pillars-block .section-h2 {
    max-width: 980px;
    margin: 0 auto 16px;
    font-size: 38px;
}
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.pillar-card {
    border: 1px solid var(--code-border);
    border-radius: 16px;
    padding: 38px 36px 36px;
    background: linear-gradient(180deg, rgba(14, 28, 58, 0.7), rgba(10, 20, 40, 0.55));
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.pillar-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 145, 245, 0.55);
    box-shadow: 0 24px 60px -20px rgba(53, 117, 242, 0.4);
}
.pillar-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}
.pillar-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 14px;
}
.pillar-card p {
    color: #e6edf7;
    line-height: 1.65;
    margin: 0 0 22px;
}
.pillar-feats {
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    border-top: 1px solid rgba(230, 237, 247, 0.08);
    display: grid;
    gap: 12px;
}
.pillar-feats li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    color: #d6e1f5;
    font-size: 15px;
}
.pillar-feats .bullet-mark {
    color: var(--primary-light);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

/* ============================================================
   SPOTLIGHT (alternating product moments)
   ============================================================ */
.spotlight-block {
    padding: 100px 0;
}
.spotlight-header {
    text-align: center;
    margin-bottom: 64px;
}
.spotlight-header .section-h2 {
    max-width: 740px;
    margin: 0 auto;
    font-size: 38px;
}
.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.spotlight-row:last-child { margin-bottom: 0; }
.spotlight-row-reverse {
    grid-template-columns: 1.2fr 1fr;
}
.spotlight-row-reverse .spotlight-copy { order: 2; }
.spotlight-row-reverse .spotlight-visual { order: 1; }

.spotlight-copy h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.spotlight-copy p {
    color: #e6edf7;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 480px;
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 4px;
    transition: gap 0.18s ease;
}
.link-arrow:hover {
    gap: 12px;
}

/* ============================================================
   FLEET BLOCK
   ============================================================ */
.fleet-block {
    padding: 100px 0;
}
.fleet-header {
    text-align: center;
    margin-bottom: 56px;
}
.fleet-header .section-h2 {
    max-width: 820px;
    margin: 0 auto 18px;
    font-size: 40px;
}
.fleet-header .section-lead {
    margin: 0 auto;
    text-align: center;
}
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.fleet-card {
    border: 1px solid var(--code-border);
    border-radius: 14px;
    padding: 30px 28px;
    background: rgba(10, 20, 40, 0.5);
    text-align: left;
    transition: transform 0.22s ease, border-color 0.22s ease;
}
.fleet-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 145, 245, 0.55);
}
.fleet-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--primary-light);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.fleet-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.fleet-card p {
    color: #d6e1f5;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   AUDIENCE BLOCK
   ============================================================ */
.audience-block {
    padding: 100px 0;
}
.audience-block .section-header {
    text-align: center;
    margin-bottom: 50px;
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.audience-card {
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 24px 24px;
    background: rgba(10, 20, 40, 0.4);
    transition: transform 0.22s ease, border-color 0.22s ease;
}
.audience-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 145, 245, 0.5);
}
.audience-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    color: #ffffff;
    margin: 0 0 10px;
}
.audience-card p {
    color: #d6e1f5;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   BETA BLOCK + FORM
   ============================================================ */
.beta-block {
    padding: 100px 0 130px;
}
.beta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.beta-pitch h2 {
    margin-top: 10px;
}
.beta-pitch p {
    color: #e6edf7;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 520px;
}
.beta-h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 32px 0 14px;
}
.beta-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.beta-ul li {
    color: #d6e1f5;
    font-size: 15px;
    line-height: 1.6;
    padding: 8px 0 8px 22px;
    position: relative;
}
.beta-ul li::before {
    content: '\25C6';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--primary-light);
    font-size: 10px;
}
.beta-ul li strong {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 14px;
}

.beta-form-card {
    background: rgba(10, 20, 40, 0.65);
    border: 1px solid var(--code-border);
    border-radius: 16px;
    padding: 36px 36px 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px -24px rgba(53, 117, 242, 0.35);
}
.beta-form-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 6px;
}
.form-meta {
    color: #9fb2d1;
    font-size: 14px;
    margin: 0 0 26px;
}
.beta-form-card .form-group {
    margin-bottom: 16px;
}
.beta-form-card label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9fb2d1;
    margin-bottom: 6px;
}
.beta-form-card input[type="text"],
.beta-form-card input[type="email"],
.beta-form-card select,
.beta-form-card textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(6, 14, 34, 0.6);
    border: 1px solid rgba(230, 237, 247, 0.14);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.beta-form-card input:focus,
.beta-form-card select:focus,
.beta-form-card textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(6, 14, 34, 0.85);
}
.beta-form-card textarea { resize: vertical; min-height: 80px; }
.beta-form-card button[type="submit"] { width: 100%; margin-top: 6px; }
.form-fineprint {
    margin: 14px 0 0;
    font-size: 12px;
    color: #6e8ab4;
    line-height: 1.5;
}
.trial-success {
    display: none;
    border: 1px solid rgba(110, 231, 183, 0.45);
    background: rgba(110, 231, 183, 0.08);
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #d6e1f5;
    font-size: 14.5px;
}
.trial-success.is-visible {
    display: block;
}
.trial-success strong { color: #6ee7b7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .product-hero-grid,
    .problem-grid,
    .pillars-grid,
    .spotlight-row,
    .spotlight-row-reverse,
    .fleet-grid,
    .audience-grid,
    .beta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .spotlight-row-reverse .spotlight-copy { order: 1; }
    .spotlight-row-reverse .spotlight-visual { order: 2; }
    .product-hero-headline { font-size: 44px; }
    .section-h2 { font-size: 32px; }
    .audience-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .product-hero-section { padding: 100px 0 60px; }
    .product-hero-headline { font-size: 36px; }
    .product-hero-ctas { flex-direction: column; align-items: stretch; }
    .product-hero-ctas .btn-primary-glow,
    .product-hero-ctas .btn-ghost { width: 100%; justify-content: center; }
    .audience-grid { grid-template-columns: 1fr; }
    .marquee-row { gap: 40px; padding: 16px; }
    .marquee-row img { height: 40px; }
    .marquee-heading { font-size: 28px; }
    .code-body { font-size: 11.5px; padding: 16px 14px 20px; }
}

.code-window { position: relative; }

.code-body .tl { opacity: 0; }
.code-body .tl.on { opacity: 1; transition: opacity 0.16s ease-out; }

.cw-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    margin-left: 3px;
    vertical-align: -2px;
    border-radius: 1px;
    background: #8ab4ff;
    animation: cw-blink 1.06s steps(1) infinite;
}

@keyframes cw-blink {
    50% { opacity: 0; }
}

.cw-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   Mobile hero fix: the hero grid children had the default min-width:auto, so
   the code window's long unwrapping lines forced the text + visual columns to
   ~425px inside a 358px grid, overflowing and clipping the hero text on the
   right. Let the children shrink (min-width:0) so the code window scrolls
   internally instead of pushing layout. Also tighten the top gap.
   ========================================================================== */
.product-hero-text,
.product-hero-visual { min-width: 0; }
.product-hero-visual .code-window { max-width: 100%; }
@media (max-width: 640px) {
    .product-hero-section { padding: 90px 0 56px; }
}

/* The 'Everything you need' / 'Built for the people' service cards were bright
   frosted-white on the dark theme; match them to the dark Change Manager cards. */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-right-color: rgba(255, 255, 255, 0.08);
}
.service-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}
.service-card h3 { color: #ffffff; }
.service-card p { color: rgba(255, 255, 255, 0.72); }

/* Make the video in The IDE section larger (desktop only; mobile/tablet still
   collapses to one column via the <=1024 rule, so scope this above it). */
@media (min-width: 1025px) {
    #ide .pillar-row {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 48px;
    }
}

/* Center the Turnstile widget within forms */
.cf-turnstile { display: flex; justify-content: center; }
