/* Marketing page structure. Brand values come from design-tokens.css. */
body { overflow-x: hidden; }
.skip-link {
    position: absolute; left: var(--space-4); top: -3rem; z-index: 200;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    color: var(--color-on-action); background: var(--color-action);
    font-weight: var(--font-weight-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* Quiet decorative background */
.mesh-bg { position: fixed; inset: 0; height: 100vh; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: var(--radius-circle); filter: blur(120px); opacity: 0.55; animation: drift 10s ease-in-out infinite; }
.orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, var(--color-decor-sage), transparent 70%); top: -180px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, var(--color-decor-rose), transparent 70%); top: 80px; right: -80px; animation-delay: -4s; animation-direction: reverse; }
.orb-3 { width: 280px; height: 280px; background: radial-gradient(circle, var(--color-decor-leaf), transparent 70%); bottom: 15%; left: 35%; animation-delay: -7s; }
@keyframes drift { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-28px) scale(1.04); } }
.grid-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    min-height: var(--nav-height);
    padding: var(--nav-padding-block) var(--nav-padding-inline);
    display: grid; align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(var(--space-3), 1.5vw, var(--space-6));
    transition: background 0.3s, border-bottom 0.3s;
}
nav.scrolled, nav.menu-open { background: var(--color-nav-surface); backdrop-filter: blur(18px); border-bottom: 1px solid var(--color-border); }
.nav-logo { display: flex; align-items: center; z-index: 2; text-decoration: none; }
.nav-logo-img { height: var(--logo-height); width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(var(--space-2), 0.9vw, var(--space-4)); list-style: none; }
.nav-links a { color: var(--color-heading); text-decoration: none; white-space: nowrap; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); transition: color 0.2s; }
.nav-links a:hover { color: var(--color-action); }
.nav-toggle { display: none; }
.nav-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: var(--control-height); padding: var(--space-3) var(--space-5);
    background: var(--color-action); color: var(--color-on-action);
    border-radius: var(--radius-control); font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base); text-decoration: none; white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.nav-pill:hover { color: var(--color-on-action); background: var(--color-action-hover); transform: translateY(-1px); }

/* Hero */
section { position: relative; z-index: 1; }
.hero-section { background: var(--color-background); overflow: hidden; }
.dna-pattern {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: var(--color-action);
    mask: url('/assets/patterns/molecular.svg') 0 0 / 140px 140px;
}
.hero { position: relative; z-index: 1; margin: 0 auto; }
.hero-content { text-align: center; }
.hero-badge { background: var(--color-surface-accent); border: 1px solid var(--color-border-accent); border-radius: var(--radius-pill); color: var(--color-action-hover); font-weight: var(--font-weight-semibold); }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3-5) var(--space-7);
    border-radius: var(--radius-control); font-size: var(--font-size-base);
    text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { color: var(--color-on-action); background: var(--color-action); font-weight: var(--font-weight-semibold); box-shadow: var(--shadow-action); }
.btn-primary:hover { color: var(--color-on-action); background: var(--color-action-hover); transform: translateY(-2px); box-shadow: var(--shadow-action-hover); }
.btn-secondary { color: var(--color-text-secondary); background: var(--color-surface); border: 1px solid var(--color-border); font-weight: var(--font-weight-medium); cursor: pointer; box-shadow: var(--shadow-subtle); }
.btn-secondary:hover { color: var(--color-text); background: var(--color-surface-hover); border-color: var(--color-border-strong); }

/* Sections and footer */
.section-wrap { margin: 0 auto; }
.section-label { color: var(--color-action-hover); font-weight: var(--font-weight-semibold); text-transform: uppercase; margin-bottom: var(--space-3); }
.section-title { margin-bottom: var(--space-3); }
.section-sub { color: var(--color-text-secondary); }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
footer { border-top: 1px solid var(--color-border); padding: var(--space-8) var(--page-gutter); position: relative; z-index: 1; }
.footer-inner { max-width: var(--layout-content-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: var(--space-2-5); flex-wrap: wrap; }
.footer-link { display: inline-flex; align-items: center; gap: var(--space-2-5); }
.footer-separator { color: var(--color-text-muted); }
.footer-links a { color: var(--color-text-muted); text-decoration: none; font-size: var(--font-size-sm); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-action); }
.footer-copy { color: var(--color-text-muted); }

@media (max-width: 1024px) {
    nav { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); }
    .nav-toggle { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-height-small); padding: var(--space-2-5) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-heading); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); cursor: pointer; }
    .nav-toggle svg { width: var(--space-4-5); height: var(--space-4-5); }
    .nav-links, .nav-cta { display: none; }
    .nav-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); padding: var(--space-3) 0 0; border-top: 1px solid var(--color-border); }
    .nav-links a { display: block; padding: var(--space-2-5) 0; }
    .nav-cta { grid-column: 1 / -1; margin-bottom: var(--space-2); }
    nav.menu-open { max-height: 100dvh; overflow-y: auto; }
    nav.menu-open .nav-links { display: grid; }
    nav.menu-open .nav-cta { display: flex; }
}
@media (max-width: 768px) {
    /* Avoid large animated blur layers on phones. */
    .mesh-bg { display: none; }
    .orb { animation: none; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
}
