/* BaroPulse — Atmospheric Instrument Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --void: #060B18;
    --navy: #0C1222;
    --slate: #151D2E;
    --card: #111827;
    --sky: #38BDF8;
    --sky-glow: rgba(56, 189, 248, 0.12);
    --sky-bright: #7DD3FC;
    --emerald: #34D399;
    --amber: #FCD34D;
    --orange: #FB923C;
    --red: #F87171;
    --border: rgba(56, 189, 248, 0.08);
    --border-hover: rgba(56, 189, 248, 0.2);
    --muted: #64748B;
    --sub: #94A3B8;
    --text: #E2E8F0;
    --white: #F8FAFC;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--void);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Noise overlay */
body::before {
    content: '';
    position: fixed; inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999;
}

a { color: var(--sky); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sky-bright); }

::selection { background: rgba(56, 189, 248, 0.25); color: var(--white); }

/* ─── Typography ─── */

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Skip Link ─── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    left: 1rem; top: 1rem; z-index: 10000;
    background: var(--sky); color: var(--void);
    padding: 0.5rem 1rem; border-radius: 6px;
}

/* ─── Navigation ─── */

.site-nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    height: 64px;
    background: rgba(6, 11, 24, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-weight: 700; font-size: 1.125rem;
    letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo svg { width: 24px; height: 24px; }

.nav-links {
    list-style: none; display: flex; gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-size: 0.8125rem; font-weight: 500;
    color: var(--muted); letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 500;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--sky);
    color: var(--sky);
    border-radius: 6px;
    letter-spacing: 0.05em;
    transition: all 0.25s;
}
.nav-cta:hover {
    background: var(--sky); color: var(--void);
}

/* ─── Hero ─── */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 60%, rgba(52, 211, 153, 0.03) 0%, transparent 60%);
}

.hero-grid {
    position: absolute; inset: 0; overflow: hidden; opacity: 0.04;
    background-image:
        linear-gradient(var(--sky) 1px, transparent 1px),
        linear-gradient(90deg, var(--sky) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 740px;
}

.hero-mark {
    width: 160px; height: 160px;
    margin: 0 auto 3rem;
}
.hero-mark svg { width: 100%; height: 100%; }

/* Ring animation */
.ring-outer { animation: ring-pulse 4s ease-in-out infinite; }
.ring-mid   { animation: ring-pulse 4s ease-in-out 0.3s infinite; }
.ring-inner { animation: ring-pulse 4s ease-in-out 0.6s infinite; }
@keyframes ring-pulse {
    0%, 100% { opacity: 1; transform-origin: center; }
    50% { opacity: 0.6; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero h1 strong {
    font-weight: 700;
    background: linear-gradient(135deg, var(--sky), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--sub);
    max-width: 520px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-stats {
    display: flex; justify-content: center; gap: 4rem;
}
.hero-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem; font-weight: 700;
    color: var(--sky);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.6875rem; font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.375rem;
}

/* ─── Wave Separator ─── */

.wave-sep {
    width: 100%; height: 48px;
    overflow: hidden; opacity: 0.15;
}
.wave-sep svg { width: 200%; height: 100%; }
.wave-line {
    animation: wave-scroll 8s linear infinite;
}
@keyframes wave-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Sections ─── */

.sect {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
    position: relative;
}
.sect-inner { max-width: 1000px; margin: 0 auto; }

.sect-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem; font-weight: 500;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.sect-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sect-sub {
    color: var(--sub); font-weight: 300;
    font-size: 1.0625rem;
    margin-bottom: 3.5rem;
    max-width: 560px;
}

.sect-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
.sect-title.center { text-align: center; }
.sect-label.center { text-align: center; }

/* ─── Risk Gauge ─── */

.risk-strip {
    display: flex; gap: 1px;
    border-radius: 12px; overflow: hidden;
    height: 72px;
    margin-top: 2rem;
}
.risk-band {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    cursor: default;
}
.risk-band:hover { transform: scaleY(1.08); filter: brightness(1.15); }
.risk-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem; font-weight: 700;
    color: var(--void);
}
.risk-name {
    font-size: 0.625rem; font-weight: 600;
    color: rgba(6, 11, 24, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Steps ─── */

.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.step-card {
    background: var(--navy);
    padding: 2rem 1.5rem;
    position: relative;
    transition: background 0.3s;
}
.step-card:hover { background: var(--slate); }
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem; font-weight: 700;
    color: var(--sky);
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}
.step-card h3 {
    font-size: 1rem; font-weight: 600;
    margin-bottom: 0.5rem;
}
.step-card p {
    font-size: 0.8125rem; color: var(--sub);
    font-weight: 300; line-height: 1.5;
}

/* ─── Features ─── */

.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.feat {
    padding: 1.5rem;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.3s, transform 0.3s;
}
.feat:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.feat-badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5625rem; font-weight: 700;
    padding: 0.1875rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.feat-badge--free { background: var(--sky-glow); color: var(--sky); }
.feat-badge--insights { background: rgba(52, 211, 153, 0.12); color: var(--emerald); }
.feat-badge--pro { background: rgba(251, 146, 60, 0.12); color: var(--orange); }

.feat h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.feat p { font-size: 0.8125rem; color: var(--sub); font-weight: 300; }

/* ─── Pricing ─── */

.price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.price-col {
    background: var(--navy);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}
.price-col--feat {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.04) 0%, var(--navy) 100%);
}
.price-col--feat::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
}
.price-tier {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem; font-weight: 700;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}
.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem; font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.price-period {
    font-size: 0.75rem; color: var(--muted);
    margin-bottom: 2rem;
}
.price-list {
    list-style: none; text-align: left;
    font-size: 0.8125rem;
}
.price-list li {
    padding: 0.375rem 0;
    color: var(--sub);
    display: flex; align-items: center; gap: 0.5rem;
}
.price-list li::before {
    content: ''; display: block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--sky);
    flex-shrink: 0;
}
.price-list li.no-dot::before {
    display: none;
}

/* ─── CTA ─── */

.cta-block {
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
}
.cta-block::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
}
.cta-block h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300; margin-bottom: 1rem;
    position: relative;
}
.cta-block h2 strong { font-weight: 700; color: var(--sky); }
.cta-block p { color: var(--muted); margin-bottom: 2rem; position: relative; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem; font-weight: 500;
    padding: 0.875rem 2rem;
    background: var(--sky); color: var(--void);
    border: none; border-radius: 8px;
    letter-spacing: 0.03em;
    transition: all 0.25s;
    position: relative;
    cursor: pointer;
}
.cta-btn:hover {
    background: var(--sky-bright);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2);
}

/* ─── Footer ─── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: var(--muted);
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
    color: var(--muted); font-size: 0.75rem;
    letter-spacing: 0.03em;
}
.footer-links a:hover { color: var(--sub); }

/* ─── Subpages (terms, privacy, faq, contact) ─── */

.page-header {
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.page-header .updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.page-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}
.page-body h2 {
    font-size: 1.125rem; font-weight: 600;
    margin-top: 3rem; margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.page-body p { margin-bottom: 0.875rem; color: var(--sub); font-weight: 300; }
.page-body ul { padding-left: 1rem; margin-bottom: 0.875rem; }
.page-body li {
    margin-bottom: 0.375rem; color: var(--sub);
    font-weight: 300; list-style: none;
    padding-left: 0.75rem; position: relative;
}
.page-body li::before {
    content: ''; position: absolute; left: 0; top: 0.6em;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--sky);
}
.page-body strong { color: var(--text); font-weight: 500; }

.callout {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(52, 211, 153, 0.03));
    border-left: 2px solid var(--sky);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-weight: 400;
    color: var(--text);
}

/* FAQ accordion */
.faq-section { margin-top: 3rem; }
.faq-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem; font-weight: 700;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 500; font-size: 0.9375rem;
    color: var(--white);
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem; color: var(--sky);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

/* Contact form */
.contact-form { margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem; font-weight: 500;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%; padding: 0.875rem 1rem;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.25s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px var(--sky-glow);
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2338BDF8' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-submit {
    width: 100%; padding: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem; font-weight: 500;
    background: var(--sky); color: var(--void);
    border: none; border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.25s;
}
.form-submit:hover { background: var(--sky-bright); }
.form-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.form-status { margin-top: 0.75rem; font-size: 0.8125rem; }
.form-status--ok { color: var(--emerald); }
.form-status--err { color: var(--red); }

.info-card {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.info-card h3 {
    font-size: 0.875rem; margin-bottom: 0.375rem;
}
.info-card p { font-size: 0.8125rem; margin-bottom: 0; }

/* ─── Fade-in animations ─── */

.fade-up {
    opacity: 0; transform: translateY(24px);
    animation: fade-up 0.7s ease forwards;
}
@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { min-height: 70vh; padding: 4rem 1.5rem; }
    .hero-stats { gap: 2rem; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .risk-strip { flex-direction: column; height: auto; border-radius: 10px; }
    .risk-band { padding: 0.75rem; }
    .site-footer { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-mark { width: 120px; height: 120px; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
}
