/* ============================================================
   Ostler v2 – "Your life, remembered."
   Dark theme. Warm amber accent. Quiet confidence.
   Inspired by: Obsidian, Linear, Arc, 1Password
   ============================================================ */

/* ---------- Self-hosted Inter Variable ---------- */
@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

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

:root {
    --bg: #0c0b0a;
    --bg-elevated: #11100e;
    --bg-card: #16140f;
    --bg-card-hover: #1d1a14;
    --surface: #1e1b15;
    --border: #2a2720;
    --border-subtle: #222018;
    --border-hover: #3d3830;

    --text-primary: #e8e6e1;
    --text-secondary: #a09a8e;
    --text-muted: #6d675c;
    --text-faint: #4a4540;

    --amber: #c8956c;
    --amber-light: #d9a87e;
    --amber-glow: rgba(200, 149, 108, 0.12);
    --amber-glow-strong: rgba(200, 149, 108, 0.25);
    --link: #93c5fd;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1080px;
    --nav-height: 60px;

    --section-gap: 140px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--surface);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--amber-light);
}

::selection { background: var(--amber); color: var(--bg); }

/* ---------- Scroll animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-gap) 0;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(12, 11, 10, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text-primary); }

.logo-dot {
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--text-muted);
    border-radius: 1px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}
.mobile-menu a { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }
.mobile-menu.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--amber);
    color: var(--bg);
    box-shadow: 0 0 24px var(--amber-glow);
}
.btn-primary:hover {
    background: var(--amber-light);
    color: var(--bg);
    box-shadow: 0 0 36px var(--amber-glow-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.btn-small { padding: 8px 18px; font-size: 0.84rem; }

/* ---------- Hero ---------- */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, var(--amber-glow) 0%, transparent 65%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Three Pillars ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 0;
}

.pillar {
    padding: 0;
    text-align: left;
}

.pillar h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: var(--amber-light);
}

.pillar p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ---------- Product Showcase ---------- */
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 120px;
}
.showcase-item:last-child { margin-bottom: 0; }
.showcase-item.reversed { direction: rtl; }
.showcase-item.reversed > * { direction: ltr; }

.showcase-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.showcase-visual {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.showcase-visual .mock-label {
    font-size: 0.82rem;
    color: var(--text-faint);
    font-style: italic;
}

/* ---------- Privacy ---------- */
.section-privacy {
    background: linear-gradient(180deg, var(--bg) 0%, #0f0e0b 50%, var(--bg) 100%);
    text-align: center;
}

.privacy-headline {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.privacy-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 16px;
    line-height: 1.8;
}

.privacy-killshot {
    font-size: 1.1rem;
    color: var(--amber-light);
    font-weight: 600;
    margin-bottom: 64px;
}

.privacy-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.privacy-point {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.privacy-point h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.privacy-point p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Social Proof ---------- */
.proof-quotes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.proof-quote {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.proof-quote blockquote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}

.proof-quote cite {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.2s;
}
.faq-item summary:hover { color: var(--amber-light); }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-faint);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 0 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ---------- Final CTA ---------- */
.section-cta {
    text-align: center;
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.cta-headline {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-sub {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-tagline {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-faint);
}

.footer-links { display: flex; gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    :root { --section-gap: 100px; }
    .pillars { grid-template-columns: 1fr; gap: 24px; }
    .showcase-item { grid-template-columns: 1fr; gap: 40px; }
    .showcase-item.reversed { direction: ltr; }
    .privacy-points { grid-template-columns: 1fr; }
    .proof-quotes { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    :root { --section-gap: 80px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 140px 0 80px; }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ---------- Product Mockups (CSS-only) ---------- */

.blur-light { filter: blur(2px); }
.blur-med { filter: blur(3.5px); }

/* Timeline mockup */
.mock-timeline {
    position: relative;
    width: 100%; height: 100%;
    padding: 24px 24px 24px 48px;
}
.tl-line {
    position: absolute;
    left: 32px; top: 8%; bottom: 8%;
    width: 1px;
    background: linear-gradient(to bottom, var(--amber), var(--border));
}
.tl-dot {
    position: absolute;
    left: 28px; top: 12%;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--amber);
    border: 2px solid var(--bg-card);
    z-index: 1;
}
.tl-now {
    background: var(--amber-light);
    box-shadow: 0 0 8px var(--amber-glow-strong);
    animation: tl-pulse 3s ease-in-out infinite;
}
@keyframes tl-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--amber-glow-strong); }
    50% { box-shadow: 0 0 16px var(--amber-glow-strong), 0 0 24px var(--amber-glow); }
}
.tl-faded { background: var(--text-faint); }
.tl-entry {
    position: absolute;
    left: 52px; right: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tl-date {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tl-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* People graph mockup */
.mock-graph {
    position: relative;
    width: 100%; height: 100%;
}
.graph-lines {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.graph-node {
    position: absolute;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.graph-you {
    width: 44px; height: 44px;
    background: var(--amber);
    color: var(--bg);
    font-size: 0.7rem;
    box-shadow: 0 0 16px var(--amber-glow-strong);
    animation: graph-glow 4s ease-in-out infinite;
}
@keyframes graph-glow {
    0%, 100% { box-shadow: 0 0 16px var(--amber-glow-strong); }
    50% { box-shadow: 0 0 24px var(--amber-glow-strong), 0 0 48px var(--amber-glow); }
}
.graph-warm {
    background: var(--bg-card);
    border: 2px solid var(--amber);
    color: var(--amber-light);
}
.graph-cool {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text-muted);
}
.graph-faint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.6rem;
}

/* Chat mockup */
.mock-chat {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: center;
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 85%;
}
.chat-user {
    background: var(--surface);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-ai {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    position: relative;
}
.chat-avatar {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--amber);
    vertical-align: middle;
    margin-right: 6px;
}

/* Import flow mockup */
.mock-import {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}
.import-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.import-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.import-arrow {
    font-size: 1.2rem;
    color: var(--amber);
    animation: pulse-down 2s ease-in-out infinite;
}
@keyframes pulse-down {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}
.import-target {
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--amber);
    background: var(--amber-glow);
    text-align: center;
}
.import-target-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--amber-light);
    margin-bottom: 4px;
}
.import-stats {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
