/*
 * Scoop Technology — shared styles for content pages
 * (Products, Ventures, Delivery). The landing and register pages keep their
 * own embedded styles so the teaser experience is untouched.
 *
 * Brand: Blue #1E3A8A · Green #0eda96 / #10B981 · Purple #7C3AED
 * Australian English throughout. Scoop is a banking software provider, not a bank.
 */

:root {
    --blue: #1E3A8A;
    --blue-deep: #0f1f4d;
    --green: #0eda96;
    --green-alt: #10B981;
    --purple: #7C3AED;
    --ink: #0b1226;
    --text: #eaf0ff;
    --text-dim: rgba(234, 240, 255, 0.72);
    --text-faint: rgba(234, 240, 255, 0.55);
    --card-bg: rgba(9, 17, 40, 0.72);
    --card-border: rgba(255, 255, 255, 0.16);
    --maxw: 1080px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Fixed brand gradient wash behind all content — the same green→blue swirl
 * as the landing/register pages (animated by site.js), with a light dark
 * scrim on top so the body text stays legible. */
.site-bg {
    position: fixed;
    /* Oversized so the bright core can drift/scale via transform and still
     * cover the viewport. Animated with transform only (see site.js) — no
     * per-frame repaint, so scrolling stays smooth. Same green→blue swirl
     * as the landing/register pages, no darkening overlay. */
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
    background: radial-gradient(ellipse 45% 45% at 50% 50%, var(--green), var(--blue));
}

a {
    color: inherit;
    text-decoration: none;
}

/* ─── Header / nav ─────────────────────────────────────────── */
/* Transparent at the top of the page; site.js adds .scrolled to fade in a
 * dark translucent bar once the page is scrolled. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: transparent;
    border-bottom: 1px solid transparent;
    /* Only background/border transition — no backdrop-filter (flash-prone
     * over the animated background). */
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 18, 38, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand svg {
    width: 30px;
    height: 30px;
    flex: none;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.nav-links a.active {
    color: var(--text);
    background: rgba(14, 218, 150, 0.16);
}

/* ─── Layout ───────────────────────────────────────────────── */
main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    padding: 80px 0 48px;
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-shadow: 0 1px 14px rgba(4, 10, 24, 0.45);
}

.hero p {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--text-dim);
    text-shadow: 0 1px 10px rgba(4, 10, 24, 0.4);
}

.section {
    padding: 24px 0 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 1px 12px rgba(4, 10, 24, 0.4);
}

.section-lead {
    color: var(--text-dim);
    max-width: 680px;
    margin-bottom: 28px;
    text-shadow: 0 1px 10px rgba(4, 10, 24, 0.35);
}

/* ─── Cards ────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 218, 150, 0.6);
    background: rgba(20, 33, 66, 0.8);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card .role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.98rem;
    margin-bottom: 16px;
}

.card ul {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card li {
    position: relative;
    padding-left: 22px;
    font-size: 0.92rem;
    color: var(--text-dim);
}

.card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

/* Status pill */
.pill {
    flex: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-dim);
    white-space: nowrap;
}

.pill.live { color: var(--green); border-color: rgba(14, 218, 150, 0.5); }
.pill.build { color: #ffd27a; border-color: rgba(255, 210, 122, 0.5); }
.pill.core { color: #a9b8ff; border-color: rgba(169, 184, 255, 0.5); }
.pill.aud { color: #c9b8ff; border-color: rgba(124, 58, 237, 0.55); }

/* Card icon tile */
.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 218, 150, 0.22), rgba(30, 58, 138, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 16px;
    flex: none;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke: #9df5d8;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Feature rows (delivery method) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #04121a;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Screenshot figures (delivery page) */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: start;
    gap: 20px;
    margin-top: 28px;
}

.shot {
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px;
}

.shot img {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shot figcaption {
    padding: 12px 6px 4px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

/* Callout band */
.callout {
    margin: 12px 0 8px;
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(14, 218, 150, 0.35);
    background:
        radial-gradient(120% 140% at 90% 10%, rgba(14, 218, 150, 0.20), transparent 60%),
        rgba(9, 17, 40, 0.72);
}

.callout h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.callout p {
    color: var(--text-dim);
    max-width: 720px;
}

/* CTA */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-alt));
    color: #04121a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 218, 150, 0.3);
}

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    max-width: var(--maxw);
    margin: 48px auto 0;
    padding: 32px 24px 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-faint);
    font-size: 0.9rem;
}

.site-footer .foot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    justify-content: space-between;
}

.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--green); }

.disclaimer {
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

/* Overlay header variant — used on the full-screen teaser landing */
.site-header.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.site-header.overlay .nav-links a {
    color: rgba(255, 255, 255, 0.82);
}

.site-header.overlay .nav-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 56px 0 36px; }
    .nav { padding: 12px 18px; }
    main { padding: 0 18px; }
    .nav-links a { padding: 7px 10px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .brand span { display: none; }
    .nav-links { gap: 2px; }
    .nav-links a { padding: 6px 8px; font-size: 0.85rem; }
    .card { padding: 22px; }
}
