/* ==========================================================================
   Janix homepage (v2) - editorial "operations console".
   Deep-blue field, cream editorial type, mono call-sheet labels, real product
   shown in framed screens, yellow as the stage-light accent. Mobile-first.
   Layers on the brand tokens in marketing.css.
   ========================================================================== */

:root {
    --blue: #002850;
    --blue-deep: #001a36;
    --blue-panel: #073156;
    --cream: #f2ece3;
    --cream-dim: rgba(242, 236, 227, 0.74);
    --yellow: #dac304;
    --lavender: #bab0cc;
    --magenta: #97244d;
    --edge: rgba(242, 236, 227, 0.14);
}

/* --- Shared building blocks --- */
.band { padding: 5rem 1.5rem; }
.band-blue { background: var(--blue); }
.band-cream { background: var(--cream); color: var(--blue); }
.band .container { max-width: 1140px; }

.eyebrow,
.section-label,
.kicker {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--yellow);
}
.section-label { display: inline-block; margin-bottom: 1.25rem; }
.section-label-dark { color: var(--blue); opacity: 0.55; }
.section-label-magenta { color: var(--magenta); }

.band h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-size: clamp(2.4rem, 6vw, 4rem);
}
.band em { font-style: italic; color: var(--yellow); }
.band-cream em { color: var(--magenta); }

.big-body {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
    max-width: 60ch;
    color: var(--cream-dim);
    margin-top: 1.5rem;
}
.band-cream .big-body { color: rgba(0, 40, 80, 0.78); }

.band-head { margin-bottom: 3rem; }

/* --- Buttons --- */
.btn-solid, .btn-line {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.95rem 1.6rem;
    border-radius: 2px;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-solid { background: var(--yellow); color: var(--blue); }
.btn-solid:hover { transform: translateY(-2px); background: #ecd62a; }
.btn-line { border: 1px solid var(--edge); color: var(--cream); }
.btn-line:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-line-cream { color: var(--cream); border-color: rgba(242, 236, 227, 0.4); }
.band-cream .btn-solid { background: var(--magenta); color: var(--cream); }
.band-cream .btn-solid:hover { background: #b02b5b; }
.btn-solid .arrow, .text-link .arrow { transition: transform 0.18s ease; }
.btn-solid:hover .arrow { transform: translateX(4px); }

.text-link {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yellow);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    display: inline-flex;
    gap: 0.4rem;
    margin-top: 2rem;
}
.band-cream .text-link { color: var(--magenta); }
.text-link:hover .arrow { transform: translateX(4px); }

/* --- Framed product screens --- */
.screen {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--blue-deep);
    border: 1px solid var(--edge);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
    padding-top: 36px;
}
/* browser-window chrome bar (first dot brand yellow) */
.screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 36px;
    background: #001423 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='12'%3E%3Ccircle cx='6' cy='6' r='5' fill='%23dac304'/%3E%3Ccircle cx='24' cy='6' r='5' fill='%23f2ece3' fill-opacity='0.35'/%3E%3Ccircle cx='42' cy='6' r='5' fill='%23f2ece3' fill-opacity='0.22'/%3E%3C/svg%3E") no-repeat 16px center;
    border-bottom: 1px solid var(--edge);
    z-index: 2;
}
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--cream-dim);
    padding: 0.9rem 1.1rem;
    border-top: 1px solid var(--edge);
}
.screen-light { box-shadow: 0 30px 70px -34px rgba(0, 40, 80, 0.5); border-color: rgba(0, 40, 80, 0.12); }

/* ============================ HERO ============================ */
.hero-v2 {
    position: relative;
    overflow: hidden;
    padding: 9rem 1.5rem 4rem;
    background:
        radial-gradient(130% 110% at 82% -10%, #023a6b 0%, #002850 52%, #00193a 100%);
}
.hero-v2::after { /* faint grain for atmosphere */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-v2-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cream);
    opacity: 0.85;
    margin-bottom: 1.6rem;
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 0 rgba(218, 195, 4, 0.6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(218, 195, 4, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(218, 195, 4, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 195, 4, 0); }
}
.hero-v2 h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.015em;
    color: var(--cream);
}
.hero-v2 h1 em { color: var(--yellow); font-style: italic; }
.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.65;
    color: var(--cream-dim);
    max-width: 40ch;
    margin: 1.6rem 0 2.2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-row-center { justify-content: center; }
.hero-foot {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(242, 236, 227, 0.45);
    margin-top: 1.5rem;
}
.hero-v2-shot .screen { transform: none; }

/* staggered hero entrance */
.hero-v2-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-v2-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-v2-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-v2-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-v2-copy > *:nth-child(4) { animation-delay: 0.30s; }
.hero-v2-copy > *:nth-child(5) { animation-delay: 0.38s; }
.hero-v2-shot { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.30s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-v2-copy > *, .hero-v2-shot { animation: none; }
    .live-dot { animation: none; }
    .ticker-track { animation: none; }
}

/* ============================ TICKER ============================ */
.ticker {
    background: var(--blue-deep);
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    overflow: hidden;
    padding: 0.9rem 0;
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    white-space: nowrap;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--cream);
    animation: ticker 38s linear infinite;
    will-change: transform;
}
.ticker-track .dot { color: var(--yellow); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ PROBLEM ============================ */
.problem-head {
    line-height: 1.04 !important;
    font-style: italic;
}
.mono-red {
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-size: 0.78em;
    color: var(--yellow);
    background: rgba(218, 195, 4, 0.08);
    padding: 0.05em 0.3em;
    border-radius: 3px;
}

/* ============================ SHOWCASE ============================ */
.showcase-row {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4.5rem;
}
.showcase-row:last-child { margin-bottom: 0; }
.showcase-text .kicker { color: var(--magenta); display: block; margin-bottom: 0.9rem; }
.showcase-text h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.02;
    color: var(--blue);
    margin-bottom: 1rem;
}
.showcase-text p { color: rgba(0, 40, 80, 0.72); line-height: 1.65; max-width: 46ch; }

/* ============================ STACK LIST ============================ */
.stack-list {
    list-style: none;
    display: grid;
    gap: 1px;
    background: var(--edge);
    border: 1px solid var(--edge);
    border-radius: 6px;
    overflow: hidden;
}
.stack-list li { background: var(--blue); padding: 2rem 1.75rem; }
.stack-no {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--yellow);
}
.stack-list h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--cream);
    margin: 0.6rem 0 0.6rem;
}
.stack-list p { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.6; }

/* ============================ CASE STUDY ============================ */
.case-grid { display: grid; gap: 2.5rem; align-items: center; }
.case-facts { list-style: none; margin: 1.75rem 0 0.5rem; }
.case-facts li {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(0, 40, 80, 0.12);
    color: rgba(0, 40, 80, 0.75);
    font-size: 0.95rem;
}
.case-facts span {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--magenta);
    margin-right: 0.5rem;
}

/* ============================ LEAD CTA ============================ */
.band-cta {
    background: linear-gradient(180deg, #002850 0%, #001a36 100%);
    text-align: center;
    padding: 6rem 1.5rem;
}
.cta-head {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 0.95;
    color: var(--cream);
}
.cta-body { margin: 1.5rem auto 2.5rem; }
.email-capture { margin: 3.5rem auto 0; max-width: 440px; }
.email-capture label {
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: var(--lavender);
    display: block;
    margin-bottom: 0.8rem;
}
.email-capture-row { display: flex; gap: 0.6rem; }
.email-capture input {
    flex: 1;
    background: rgba(242, 236, 227, 0.06);
    border: 1px solid var(--edge);
    border-radius: 2px;
    padding: 0.85rem 1rem;
    color: var(--cream);
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
}
.email-capture input:focus { outline: none; border-color: var(--yellow); }
.email-capture button {
    background: var(--yellow);
    color: var(--blue);
    border: none;
    border-radius: 2px;
    padding: 0 1.4rem;
    font-family: 'Source Code Pro', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.email-capture-note {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    color: rgba(242, 236, 227, 0.4);
    margin-top: 0.8rem;
}

/* ============================ RESPONSIVE ============================ */
@media (min-width: 860px) {
    .band { padding: 7rem 2rem; }
    .hero-v2 { padding: 11rem 2rem 6rem; }
    .hero-v2-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4rem; }
    .showcase-row { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; }
    .showcase-row.reverse .screen { order: 2; }
    .stack-list { grid-template-columns: repeat(3, 1fr); }
    .case-grid { grid-template-columns: 1fr 1.1fr; }
}
@media (min-width: 560px) and (max-width: 859px) {
    .stack-list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================ COMPARISON TABLE ============================ */
.cmp-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--edge);
    border-radius: 8px;
}
.cmp {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
    font-family: 'Source Code Pro', monospace;
}
.cmp thead th {
    background: var(--blue-deep);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1rem 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--edge);
}
.cmp th.cmp-feature { text-align: left; }
.cmp tbody th.cmp-feature {
    text-align: left;
    font-weight: 400;
    color: var(--cream-dim);
    padding: 0.8rem 0.9rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(242, 236, 227, 0.06);
    position: sticky;
    left: 0;
    background: var(--blue);
    min-width: 220px;
}
.cmp td {
    text-align: center;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(242, 236, 227, 0.06);
    color: var(--cream);
    font-size: 0.82rem;
}
.cmp-cat td {
    background: rgba(218, 195, 4, 0.07);
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
    text-align: left;
}
.cmp-yes { color: var(--yellow); font-weight: 700; }
.cmp-no { color: rgba(242, 236, 227, 0.28); }
.cmp-val { color: var(--cream); font-size: 0.78rem; }

/* polish: feature-grid hover + screen caption sits flush */
.stack-list li { transition: background 0.2s ease; }
.stack-list li:hover { background: #073156; }
.stack-list li:hover .stack-no { color: #f2ece3; }
.screen figcaption { background: var(--blue-deep); }
