/* ============================================================
   SaramPass — Neubrutalist Identity Verification
   Colors: #1a1a1a #fffdf5 #c6f135 #ff6b6b #3b82f6
   Fonts: Space Grotesk, DM Sans, Archivo Black
   ============================================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    background: #fffdf5;
    color: #1a1a1a;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================================
   STICKY VERIFICATION BAR
   ============================================================ */
#verification-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 40px;
    background: #1a1a1a;
    color: #c6f135;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 2px solid #c6f135;
    gap: 16px;
}

#verif-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#verif-step-label {
    color: #fffdf5;
}

#verif-divider {
    color: #c6f135;
    font-size: 0.8rem;
}

#verif-step-name {
    color: #c6f135;
}

#verif-progress {
    flex: 1;
    height: 6px;
    background: #333;
    border: 1px solid #555;
    max-width: 300px;
    overflow: hidden;
}

#verif-progress-fill {
    height: 100%;
    background: #c6f135;
    width: 20%;
    transition: width 0.4s ease;
}

#verif-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

#verif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c6f135;
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#verif-status-text {
    color: #c6f135;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.section-hero  { background: #fffdf5; }
.section-coral { background: #ff6b6b; }
.section-lime  { background: #c6f135; }
.section-white { background: #fffdf5; }
.section-dark  { background: #1a1a1a; color: #fffdf5; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.section-hero {
    min-height: calc(100vh - 40px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 32px;
    border-bottom: 4px solid #1a1a1a;
    overflow: hidden;
}

/* Hologram overlay — diagonal lines at 45deg, referencing ID security patterns */
.hologram-overlay {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 6px,
        rgba(26, 26, 26, 0.03) 6px,
        rgba(26, 26, 26, 0.03) 7px
    );
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1060px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Left */
.hero-eyebrow {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 16px;
    border-left: 4px solid #3b82f6;
    padding-left: 10px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a1a;
    margin-bottom: 36px;
}

.hero-tagline strong {
    font-weight: 700;
    background: #c6f135;
    padding: 0 4px;
}

.hero-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: #c6f135;
    color: #1a1a1a;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    padding: 14px 28px;
    display: inline-block;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.btn-primary:hover {
    box-shadow: 6px 6px 0px #1a1a1a;
    transform: translate(-2px, -2px);
}

.btn-secondary {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: #fffdf5;
    color: #1a1a1a;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    padding: 14px 28px;
    display: inline-block;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.btn-secondary:hover {
    box-shadow: 6px 6px 0px #1a1a1a;
    transform: translate(-2px, -2px);
}

/* Hero Right */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
}

/* Stamp Badge */
.stamp-badge {
    width: 200px;
    height: 200px;
    border: 4px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fffdf5;
    box-shadow: 5px 5px 0px #1a1a1a;
    /* Initial hidden state — JS will add .stamp-animate */
    transform: scale(1.5) rotate(-8deg);
    opacity: 0;
}

.stamp-badge.stamp-animate {
    animation: stamp 0.5s 0.2s ease-out forwards;
}

@keyframes stamp {
    0%   { transform: scale(1.5) rotate(-8deg); opacity: 0; }
    60%  { transform: scale(0.95) rotate(-4deg); opacity: 1; }
    80%  { transform: scale(1.02) rotate(-5.5deg); opacity: 1; }
    100% { transform: scale(1) rotate(-5deg); opacity: 1; }
}

.stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 2;
    position: relative;
}

.stamp-verified {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b6b;
    line-height: 1;
}

.stamp-divider {
    width: 80%;
    height: 2px;
    background: #1a1a1a;
    margin: 4px 0;
}

.stamp-human {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1;
}

.stamp-ring-outer,
.stamp-ring-inner {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(26, 26, 26, 0.2);
    pointer-events: none;
}

.stamp-ring-outer {
    width: 192px;
    height: 192px;
    top: 0;
    left: 0;
    margin: 0;
    /* offset slightly for asymmetry */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stamp-ring-inner {
    width: 170px;
    height: 170px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
}

/* ID Card */
.hero-id-card {
    width: 100%;
    max-width: 320px;
    background: #fffdf5;
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0px #1a1a1a;
    padding: 0;
    overflow: hidden;
}

.id-card-header {
    background: #1a1a1a;
    color: #c6f135;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.id-card-num {
    color: #fffdf5;
    opacity: 0.7;
}

.id-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e8e4d8;
    gap: 12px;
}

.id-card-row:last-child {
    border-bottom: none;
}

.id-field-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    flex-shrink: 0;
}

.id-field-val {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: right;
}

.id-verified {
    color: #3b82f6;
    font-weight: 700;
}

.id-token {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    color: #3b82f6;
    letter-spacing: 0.04em;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 48px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: #1a1a1a;
    opacity: 0.5;
    animation: nudge-down 2s 1.5s ease-in-out infinite;
}

@keyframes nudge-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header-block {
    margin-bottom: 52px;
}

.section-tag {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 20px;
    background: transparent;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1a1a1a;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

/* ============================================================
   CORAL SECTION — THE PROBLEM
   ============================================================ */
.section-coral {
    padding: 80px 0;
    border-top: 4px solid #1a1a1a;
    border-bottom: 4px solid #1a1a1a;
}

.section-coral .section-tag {
    background: #1a1a1a;
    color: #ff6b6b;
    border-color: #1a1a1a;
}

.broken-grid-two {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.brutal-card {
    background: #fffdf5;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    padding: 24px;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.brutal-card:hover {
    box-shadow: 6px 6px 0px #1a1a1a;
    transform: translate(-2px, -2px);
}

.brutal-card--dark {
    background: #1a1a1a;
    color: #fffdf5;
    border-color: #fffdf5;
    box-shadow: 6px 6px 0px #fffdf5;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brutal-card--dark:hover {
    box-shadow: 8px 8px 0px #fffdf5;
}

.stat-block {
    text-align: center;
}

.stat-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 4.5rem;
    color: #c6f135;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: #fffdf5;
    line-height: 1.4;
}

.broken-grid-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-text {
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ============================================================
   LIME SECTION — HOW IT WORKS
   ============================================================ */
.section-lime {
    padding: 80px 0;
    border-bottom: 4px solid #1a1a1a;
}

.steps-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    margin-bottom: 40px;
}

.steps-flow-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0;
    padding-left: calc(33.33% + 40px);
}

.step-item {
    background: #fffdf5;
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    padding: 20px;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.step-item:hover {
    box-shadow: 6px 6px 0px #1a1a1a;
    transform: translate(-2px, -2px);
}

.step-connector {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    padding-top: 20px;
    flex-shrink: 0;
}

.step-num-box {
    margin-bottom: 12px;
}

.step-num {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.2rem;
    color: #3b82f6;
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.step-desc {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.55;
}

/* ============================================================
   WHITE SECTION — FEATURES
   ============================================================ */
.section-white {
    padding: 80px 0;
    border-bottom: 4px solid #1a1a1a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    border: 3px solid #1a1a1a;
    box-shadow: 4px 4px 0px #1a1a1a;
    padding: 28px 22px;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.feature-card:hover {
    box-shadow: 6px 6px 0px #1a1a1a;
    transform: translate(-2px, -2px);
}

.feature-card--lime {
    background: #c6f135;
}

.feature-card--white {
    background: #fffdf5;
}

.feature-card--coral {
    background: #ff6b6b;
}

.feature-icon-label {
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ============================================================
   DARK SECTION — CTA
   ============================================================ */
.section-dark {
    padding: 80px 0;
    border-top: 4px solid #c6f135;
}

.cta-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-stamp-mini {
    width: 110px;
    height: 110px;
    border: 3px solid #c6f135;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    opacity: 0;
    transform: scale(1.5) rotate(-8deg);
}

.cta-stamp-mini.stamp-animate {
    animation: stamp 0.5s 0.1s ease-out forwards;
}

.cta-stamp-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c6f135;
    line-height: 1;
}

.cta-stamp-sub {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fffdf5;
    line-height: 1;
    margin-top: 4px;
}

.cta-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #fffdf5;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1.05rem;
    color: #aaa;
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-cta-primary {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: #c6f135;
    color: #1a1a1a;
    border: 3px solid #c6f135;
    box-shadow: 4px 4px 0px #c6f135;
    padding: 14px 32px;
    display: inline-block;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.btn-cta-primary:hover {
    box-shadow: 6px 6px 0px #c6f135;
    transform: translate(-2px, -2px);
}

.btn-cta-secondary {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    color: #fffdf5;
    border: 3px solid #fffdf5;
    box-shadow: 4px 4px 0px #fffdf5;
    padding: 14px 32px;
    display: inline-block;
    transition: box-shadow 100ms ease, transform 100ms ease;
}

.btn-cta-secondary:hover {
    box-shadow: 6px 6px 0px #fffdf5;
    transform: translate(-2px, -2px);
}

/* Code Block */
.cta-code-block {
    background: #0d0d0d;
    border: 2px solid #333;
    text-align: left;
    overflow: hidden;
}

.code-label {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c6f135;
    padding: 8px 16px;
    background: #111;
    border-bottom: 1px solid #333;
}

.code-pre {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #e0e0e0;
    padding: 20px;
    overflow-x: auto;
}

code {
    font-family: 'DM Mono', 'Courier New', monospace;
}

.code-blue { color: #3b82f6; }
.code-lime { color: #c6f135; }
.code-comment { color: #666; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #fffdf5;
    border-top: 4px solid #1a1a1a;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #1a1a1a;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: #1a1a1a;
}

.footer-tagline {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: #555;
    text-decoration: none;
    transition: color 100ms ease;
}

.footer-col a:hover {
    color: #3b82f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    font-size: 0.78rem;
    color: #888;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-status {
    color: #c6f135;
    font-size: 0.72rem;
}

/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .stamp-badge,
    .cta-stamp-mini {
        animation: none !important;
        opacity: 1;
        transform: scale(1) rotate(-5deg);
    }

    .stamp-badge.stamp-animate,
    .cta-stamp-mini.stamp-animate {
        animation: none !important;
        opacity: 1;
        transform: scale(1) rotate(-5deg);
    }

    .btn-primary,
    .btn-secondary,
    .brutal-card,
    .step-item,
    .feature-card,
    .btn-cta-primary,
    .btn-cta-secondary {
        transition: none;
    }

    .hero-scroll-hint {
        animation: none;
    }

    #verif-dot {
        animation: none;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-right {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .broken-grid-two {
        grid-template-columns: 1fr;
    }

    .steps-flow {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps-flow-bottom {
        grid-template-columns: 1fr;
        padding-left: 0;
        gap: 16px;
    }

    .step-connector {
        display: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #verification-bar {
        font-size: 0.62rem;
        padding: 0 12px;
        gap: 8px;
    }

    #verif-progress {
        display: none;
    }

    .section-hero {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-right {
        flex-direction: column;
        align-items: center;
    }

    .hero-id-card {
        max-width: 100%;
    }
}
