/* Ollie webpage — base styles. Shared design tokens, navigation, footer,
 * typography, buttons, and scroll-reveal animations.
 *
 * Light-first marketing surface (Apple-style rhythm): off-white canvas,
 * crisp type, soft shadows, translucent nav. Accent stays in the Ollie
 * blue family for continuity with the product UI. */

:root {
    --bg:           #fbfbfd;
    --bg-alt:       #f5f5f7;
    --bg-card:      #ffffff;
    --bg-elev:      #f0f0f3;
    --border:       #d2d2d7;
    --text:         #1d1d1f;
    --text-dim:     #6e6e73;
    --text-faint:   #86868b;
    --accent:       #147ce5;
    --accent-deep:  #0956b3;
    --on-accent:    #ffffff;
    --danger:       #d70015;
    --warn:         #b58100;
    --ok:           #248a3d;
    --radius-sm:    6px;
    --radius:       12px;
    --radius-lg:    16px;
    --radius-pill:  999px;
    --container:    1180px;
    --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-glow:  0 12px 40px rgba(20, 124, 229, 0.12);
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;
    --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; height: auto; display: block; }

code, pre {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--bg-alt);
    padding: 0.15em 0.42em;
    border-radius: 4px;
    color: var(--accent-deep);
}

/* ── Ambient vignette (optional, used on hero pages) ─────────────── */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(20, 124, 229, 0.09), transparent 55%),
        radial-gradient(circle at 100% 40%, rgba(20, 124, 229, 0.05), transparent 45%);
}

/* ── Container & sections ────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 96px 0;
    position: relative;
    z-index: 1;
}

/* Alternate band (not literal dark mode) — subtle gray like apple.com */
.section.dark { background: var(--bg-alt); }

.section-header {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-dim);
    margin: 0;
    line-height: 1.55;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.nav-brand img { width: 28px; height: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: rgba(0, 0, 0, 0.05); }

.nav-cta {
    background: var(--accent);
    color: var(--on-accent) !important;
    padding: 8px 18px;
    font-weight: 600;
}
.nav-cta:hover { background: var(--accent-deep); }

.lang-switcher {
    display: inline-flex;
    margin-left: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-dim);
    transition: background 0.15s, color 0.15s;
}
.lang-btn.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.lang-btn:hover { color: var(--text); }

.hamburger {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.96);
}
.mobile-menu a {
    padding: 12px 0;
    font-size: 16px;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-menu.open { display: flex; }

@media (max-width: 800px) {
    .nav-links .nav-link,
    .nav-links .lang-switcher { display: none; }
    .hamburger { display: inline-flex; }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease),
                border-color 0.2s var(--ease), color 0.2s var(--ease),
                box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 8px 28px rgba(20, 124, 229, 0.35); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); border-color: rgba(0, 0, 0, 0.12); }

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--text); }

.btn-large {
    padding: 16px 30px;
    font-size: 16px;
}

/* ── Hero (shared shell) ─────────────────────────────────────────── */
.hero {
    padding: clamp(80px, 10vw, 140px) 0 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: rgba(20, 124, 229, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(20, 124, 229, 0.2);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
    background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 500;
    color: var(--text);
    margin: 0 auto 18px;
    max-width: 760px;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-dim);
    margin: 0 auto 32px;
    max-width: 680px;
    line-height: 1.6;
}

.hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    padding: 64px 0 36px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand img { width: 36px; height: 36px; margin-bottom: 14px; }
.footer-tag { color: var(--text-dim); font-size: 14px; max-width: 280px; line-height: 1.5; }

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 16px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--text-faint);
    font-size: 13px;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom .footer-trademarks {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--text-faint);
    opacity: 0.92;
}

@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Material Symbols (loaded via Google Fonts in template) ─────── */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
