@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=Plus+Jakarta+Sans:wght@200;300;400;500&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
    --bg-void: #060608;
    --bg-card: #0c0c10;
    --text-primary: #dcdde1;
    --text-secondary: #a0a0b8;
    --text-muted: #5a5a6a;
    --accent: #b8b8d0;         
    --accent-warm: #c9a96e;    
    --accent-glow: rgba(200, 190, 220, 0.08);
    --border-dim: #16161e;
    --border-soft: #22222e;
    --font-heading: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-ui: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   ANIMATED BACKGROUNDS
═══════════════════════════════════════ */

/* DNA Helix — top-left anchor, drift animation */
.bg-dna {
    position: fixed;
    top: -8%;
    left: -8%;
    width: min(700px, 50vw);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: driftIn 2.5s var(--ease) 0.3s forwards, floatDNA 18s ease-in-out 3s infinite;
}

/* Bifurcation — bottom-right anchor */
.bg-bifurc {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: min(600px, 42vw);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: driftIn 2.5s var(--ease) 0.8s forwards, floatBifurc 22s ease-in-out 3s infinite;
}

/* Global Section Header Style */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
/* Secondary bifurcation — upper-right, more subtle */
.bg-bifurc-2 {
    position: fixed;
    top: -5%;
    right: 15%;
    width: min(350px, 25vw);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: driftIn 2.5s var(--ease) 1.4s forwards, floatBifurc 28s ease-in-out 3.5s infinite reverse;
    filter: contrast(0.6);
}

@keyframes driftIn {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 0.09; transform: scale(1); }
}

@keyframes floatDNA {
    0%   { transform: scale(1) translateY(0px) rotate(-1deg); }
    50%  { transform: scale(1.01) translateY(-18px) rotate(1deg); }
    100% { transform: scale(1) translateY(0px) rotate(-1deg); }
}

/* Vitruvian — center background, latent pulse */
.bg-vitruvian {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(800px, 60vw);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(1) contrast(1.1);
    animation: driftIn 3s var(--ease) 1s forwards, latentPulse 12s ease-in-out infinite;
}

@keyframes latentPulse {
    0%, 100% { opacity: 0.05; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.08; transform: translate(-50%, -50%) scale(1.02); }
}

/* Content must be above backgrounds */
.container { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 2.5rem; }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dim);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    color: var(--text-primary);
}

.logo-square {
    width: 24px;
    height: 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateSlow 20s linear infinite;
    overflow: hidden;
    padding: 2px;
}

.logo-square img {
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

nav ul { display: flex; list-style: none; gap: 4rem; }

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.4s var(--ease);
    font-family: var(--font-ui);
}

nav a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    max-width: 15ch;
    color: #fff;
}

#hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 48ch;
    margin-bottom: 5rem;
    font-weight: 300;
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   INGESTION TERMINAL (Bifurcation-based)
═══════════════════════════════════════ */
.ingestion-terminal {
    width: min(440px, 100%);
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    padding: 1.75rem;
    position: relative;
    margin-bottom: 3.5rem;
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
    overflow: hidden;
}

.ingestion-terminal:hover {
    border-color: #333340;
    box-shadow: 0 0 40px rgba(180, 170, 210, 0.04);
}

/* Status tag */
.ingestion-terminal::before {
    content: "[ STANDBY_AWAITING_SOURCE ]";
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-ui);
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* Mac-style dots */
.t-dots { display: flex; gap: 6px; margin-bottom: 1.5rem; }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-soft); }
.t-dot.live { background: var(--accent-warm); box-shadow: 0 0 6px rgba(201, 169, 110, 0.4); animation: pulse-dot 3s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px rgba(201, 169, 110, 0.3); }
    50%       { box-shadow: 0 0 14px rgba(201, 169, 110, 0.7); }
}

/* Deposit visual area */
.t-drop {
    border: 1px dashed var(--border-soft);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: rgba(255, 255, 255, 0.01);
}

.t-drop:hover { 
    border-color: var(--accent);
    background: rgba(201, 169, 110, 0.03);
}

.t-drop p {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════
   CTA BUTTON
═══════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 1.25rem 3.5rem;
    border: 1px solid #22222e;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    background: transparent;
    cursor: pointer;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(184, 184, 208, 0.05);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.btn:hover::after { transform: scaleX(1); }
.btn:hover { border-color: var(--accent); color: #fff; }

.btn-primary {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    color: var(--bg-void);
    font-weight: 600;
}

.btn-primary:hover { background: #d4ae78; border-color: #d4ae78; }
.btn-primary::after { display: none; }

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
section { padding: clamp(5rem, 12vw, 10rem) 0; }

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    letter-spacing: -0.025em;
    margin-bottom: 5rem;
    color: #f0f0f5;
}

/* ═══════════════════════════════════════
   DOSSIERS
═══════════════════════════════════════ */
.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2px; /* Tight grid — architectural feel */
}

.dossier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    padding: 3.5rem;
    position: relative;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.dossier-card:hover { background: #0f0f14; border-color: var(--border-soft); }

.dossier-card::after {
    content: "// DECLASSIFIED";
    position: absolute;
    top: 2rem; right: 2.5rem;
    font-family: var(--font-ui);
    font-size: 0.5rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.card-id { font-family: var(--font-ui); font-size: 0.65rem; color: var(--accent); margin-bottom: 2rem; display: block; letter-spacing: 0.2em; opacity: 0.7; }
.card-era { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--accent-warm); margin-bottom: 2rem; display: block; font-weight: 400; letter-spacing: 0.05em; }
.dossier-card h3 { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 300; margin-bottom: 1.5rem; color: #f0f0f5; }
.dossier-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.85; }

/* ═══════════════════════════════════════
   PROTOCOL GRID
═══════════════════════════════════════ */
#zero-retention { border-top: 1px solid var(--border-dim); }

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.protocol-step {
    padding: 3rem;
    border-left: 1px solid var(--border-dim);
    transition: background 0.3s var(--ease);
}

.protocol-step:hover { background: var(--bg-card); }

.step-num {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.55rem;
    color: var(--accent-warm);
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.protocol-step h4 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; margin-bottom: 1.5rem; color: #f0f0f5; }
.protocol-step p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.85; }

/* ═══════════════════════════════════════
   PRICING
═══════════════════════════════════════ */
#pricing {
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    text-align: center;
}

.price-card { max-width: 560px; margin: 0 auto; }
.price-card h2 { margin-bottom: 0.5rem; }
.price-amount { display: block; font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 8rem); font-weight: 300; letter-spacing: -0.02em; color: #fff; margin-bottom: 3.5rem; }

.features-list { list-style: none; margin-bottom: 4rem; display: grid; gap: 1.5rem; }
.features-list li { font-size: 1rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    padding: 7rem 0 4rem;
    border-top: 1px solid var(--border-dim);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-link {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.4s var(--ease);
}

.contact-link:hover { color: var(--text-primary); }

.disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 90ch;
    line-height: 2;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .protocol-grid { grid-template-columns: 1fr; }
    .protocol-step { border-left: none; border-top: 1px solid var(--border-dim); }
}

@media (max-width: 768px) {
    header { height: auto; padding: 2rem 0; flex-direction: column; gap: 1.5rem; text-align: center; }
    nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .dossier-grid { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; text-align: center; }
}

/* Payment & Checkout UI */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .checkout-container { grid-template-columns: 1fr; }
}

.payment-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 4px;
    color: #060608;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.payment-card h3 {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: #888899;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444455;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e5;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s var(--ease);
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    padding: 2.5rem;
    border-radius: 4px;
}

.payment-summary h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 1px solid var(--border-soft);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
}

a.active {
    color: var(--accent) !important;
}
