/* JuryPanel Marketing Site */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── Tokens ── */
:root {
    --navy: #0A1E3D;
    --navy-mid: #122B52;
    --amber: #D97706;
    --amber-hover: #B45309;
    --paper: #F7F3EC;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --content-max: 1100px;
    --content-narrow: 680px;
    --section-py: clamp(100px, 12vw, 160px);
    --section-px: clamp(24px, 5vw, 64px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.5vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; line-height: 1.3; }
p { line-height: 1.7; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-px);
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
    background: rgba(10, 30, 61, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nav-logo { height: 32px; width: auto; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}
.nav-link:hover { color: rgba(255, 255, 255, 1); }
.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.005em;
}
.nav-cta:hover { background: var(--amber-hover); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy);
    padding: 120px var(--section-px) 100px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transform: scale(1.05);
    animation: heroBgReveal 2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    pointer-events: none;
}
@keyframes heroBgReveal {
    to { opacity: 0.35; transform: scale(1); }
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center 35%, rgba(10, 30, 61, 0.85) 0%, rgba(10, 30, 61, 0.3) 55%, transparent 75%),
        linear-gradient(to bottom, rgba(10, 30, 61, 0.7) 0%, rgba(10, 30, 61, 0.15) 65%, rgba(10, 30, 61, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 2;
}
.hero-content { position: relative; max-width: 800px; z-index: 3; }
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.75;
    text-wrap: pretty;
}
.hero-byline {
    font-size: clamp(15px, 1.6vw, 17px);
    color: rgba(255, 255, 255, 0.4);
    margin: 0 auto 48px;
    font-style: italic;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 10px;
    padding: 16px 36px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.005em;
}
.hero-cta:hover {
    background: var(--amber-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.25);
}
.hero-tagline {
    margin-top: 80px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Sections shared ── */
.section {
    padding: var(--section-py) var(--section-px);
}
.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ── Feature sections ── */
.feature {
    position: relative;
    overflow: hidden;
}
.feature-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: block;
}
.feature h2 {
    color: var(--navy);
    margin-bottom: 32px;
    max-width: 600px;
}
.feature-body {
    font-size: clamp(16px, 1.6vw, 18px);
    color: var(--gray-600);
    max-width: 580px;
    line-height: 1.8;
    text-wrap: pretty;
}
.feature-body p + p { margin-top: 20px; }

/* -- Shared bleed image (positioned behind content) -- */
.feature-bg {
    position: absolute;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-bg.bg-visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Layout A: side-by-side bleed (text left, image fills right) --- */
.feature-bleed { min-height: 620px; }
.feature-bleed .feature-bg {
    right: 0;
    width: 55%;
    object-position: left center;
}
.feature-bleed .feature-copy {
    position: relative;
    z-index: 2;
    max-width: 480px;
}
.feature-bleed::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--white) 42%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.4) 65%, rgba(255,255,255,0) 80%);
    pointer-events: none;
}

/* --- Layout A reversed: text right, image fills left --- */
.feature-bleed-reverse .feature-bg {
    left: 0;
    right: auto;
    width: 55%;
    object-position: right center;
}
.feature-bleed-reverse .section-inner {
    display: flex;
    justify-content: flex-end;
}
.feature-bleed-reverse::after {
    background: linear-gradient(to left, var(--gray-50) 42%, rgba(250,250,250,0.95) 50%, rgba(250,250,250,0.4) 65%, rgba(250,250,250,0) 80%);
}

/* --- Layout B: showcase (text above, image fills bottom) --- */
.feature-showcase {
    min-height: 860px;
    display: flex;
    flex-direction: column;
}
.feature-showcase .feature-bg {
    width: 100%;
    height: 60%;
    bottom: 0;
    top: auto;
    object-position: center top;
}
.feature-showcase .section-inner {
    position: relative;
    z-index: 2;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-bottom: clamp(200px, 25vw, 360px);
}
.feature-showcase .feature-text {
    text-align: center;
    max-width: var(--content-narrow);
    margin: 0 auto;
}
.feature-showcase .feature-text h2 { max-width: none; }
.feature-showcase .feature-text .feature-body {
    max-width: none;
    margin: 0 auto;
}
.feature-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Showcase on white bg */
.feature-showcase:not(.feature-dark)::after {
    background: linear-gradient(to bottom, var(--white) 38%, rgba(255,255,255,0.9) 46%, rgba(255,255,255,0.15) 62%, rgba(255,255,255,0.85) 82%, var(--white) 100%);
}

/* --- Dark variant --- */
.feature-dark {
    background: var(--navy);
}
.feature-dark h2 { color: var(--white); }
.feature-dark .feature-number { color: var(--amber); }
.feature-dark .feature-body { color: rgba(255, 255, 255, 0.55); }
.feature-dark::after {
    background: linear-gradient(to bottom, rgba(10,30,61,1) 38%, rgba(10,30,61,0.85) 46%, rgba(10,30,61,0.15) 62%, rgba(10,30,61,0.85) 82%, rgba(10,30,61,1) 100%);
}

/* --- Even bg (gray-50) --- */
.feature-even { background: var(--gray-50); }


/* ── Demo section ── */
.demo {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.demo::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.demo-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: start;
    position: relative;
}
.demo-copy h2 { color: var(--white); margin-bottom: 20px; }
.demo-copy p {
    font-size: clamp(16px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    max-width: 420px;
}

/* ── Form ── */
.demo-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 44px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--white);
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
    width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255, 255, 255, 0.2); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(217, 119, 6, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-select option { background: var(--navy); color: var(--white); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-submit {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    background: var(--amber);
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.005em;
    width: 100%;
}
.form-submit:hover { background: var(--amber-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success {
    text-align: center;
    padding: 48px 24px;
}
.form-success h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 12px;
}
.form-success p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1.7;
}

/* ── Footer ── */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px var(--section-px);
}
.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.footer-logo { height: 22px; width: auto; opacity: 0.3; }
.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
}
.footer-links { display: flex; gap: 28px; }
.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}
.footer-link:hover { color: rgba(255, 255, 255, 0.7); }

/* ── Security page ── */
.page-header {
    background: var(--navy);
    padding: 140px var(--section-px) 80px;
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(36px, 5vw, 56px); }

.prose {
    max-width: var(--content-narrow);
    margin: 0 auto;
    padding: 80px var(--section-px) var(--section-py);
}
.prose p {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
}
.prose h3 {
    font-size: 20px;
    color: var(--navy);
    margin-top: 56px;
    margin-bottom: 16px;
}
.prose h3:first-child { margin-top: 0; }

/* ── Scroll animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .feature-bleed,
    .feature-showcase { min-height: 480px; }
    .feature-bg { width: 100%; height: 55%; top: auto; bottom: 0; object-position: center top; }
    .feature-bleed::after,
    .feature-bleed-reverse::after {
        background: linear-gradient(to bottom, var(--white) 35%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0) 80%) !important;
    }
    .feature-bleed-reverse::after {
        background: linear-gradient(to bottom, var(--gray-50) 35%, rgba(250,250,250,0.6) 55%, rgba(250,250,250,0) 80%) !important;
    }
    .feature-bleed .feature-copy,
    .feature-bleed-reverse .feature-copy { max-width: none; }
    .feature-bleed-reverse .section-inner { justify-content: flex-start; }

    .demo-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .nav { height: 64px; }
    .nav-logo { height: 26px; }
    .nav-link { display: none; }
    .nav-cta { padding: 8px 18px; font-size: 13px; }

    .hero { min-height: calc(100vh - 64px); padding: 100px var(--section-px) 80px; }
    .hero-tagline { margin-top: 56px; }

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

    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-left { flex-direction: column; gap: 12px; }
}
