@font-face {
    font-family: Urbanist;
    src: url('fonts/urbanist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Urbanist;
    src: url('fonts/urbanist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0b0e0c;
    --paper: #f3f2ec;
    --moss: #05a578;
    --moss-strong: #04b385;
    --amber: #f4a340;
    --slate: #8b9490;
    --line: rgb(243 242 236 / 14%);
    --panel: #141917;
    --panel-2: #0e1210;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

em {
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, .display {
    font-family: Urbanist, 'Space Grotesk', Inter, sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    padding: 22px 32px;
    background: linear-gradient(to bottom, rgb(11 14 12 / 90%), transparent);
    backdrop-filter: blur(2px);
}

.nav-links {
    grid-column: 2;
    display: flex;
    gap: 36px;
    font-size: 14px;
    color: var(--slate);
}

.nav-links a {
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--paper);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color .2s;
}

.nav-dropdown-toggle:hover {
    color: var(--paper);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    display: flex;
    flex-direction: column;
    min-width: 160px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgb(0 0 0 / 35%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s, transform .15s, visibility .15s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--panel-2);
}

/* HERO */
.hero {
    position: relative;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 920px;
    margin-bottom: 28px;
}

.hero h1 em {
    color: var(--moss);
}

.hero p {
    font-size: 19px;
    color: var(--slate);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero p em {
    color: var(--moss);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    display: inline-block;
    transition: transform .2s, opacity .2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--moss);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--moss-strong);
}

/* HOME HERO — large display type over a topographic backdrop */
.page-home .hero {
    display: flex;
    align-items: flex-start;
    padding: 140px 0 160px;
    overflow: hidden;
}

.page-home .hero h1 {
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
}

.contour-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.contour-field svg {
    width: 100%;
    height: 100%;
}

.contour-path {
    fill: none;
    stroke: var(--slate);
    stroke-width: 1;
    opacity: 0.35;
}

.contour-path.accent {
    stroke: var(--moss);
    opacity: 0.55;
}

/* MONOCLE HERO — eyebrow + headline + worked example, folded into "how it works" */
.page-monocle .hero {
    padding: 168px 0 60px;
}

.page-monocle .hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.08;
}

.monocle-hero {
    padding: 80px 0 60px;
}

.monocle-hero h3 {
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.monocle-hero p {
    max-width: 900px;
}

.monocle-hero p + p {
    margin-top: 14px;
}

.page-monocle .hero p {
    max-width: 760px;
}

.eyebrow-mono {
    display: block;
    font-size: 13px;
    color: var(--moss);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-example {
    max-width: 600px;
}

.hero-example code {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 16px;
    color: var(--paper);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 2px 6px;
}

/* SECTION SHARED */
section {
    padding: 120px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-label {
    font-size: 13px;
    color: var(--moss);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    display: block;
}

.section-head h2, .section-head h3 {
    font-size: clamp(22px, 3vw, 32px);
    max-width: 600px;
}

.company-details {
    text-align: center;
    color: var(--slate);
    font-size: 14px;
    line-height: 1.6;
}

.company-details p {
    margin: 0;
}

/* PRODUCTS */
.products {
    background: var(--panel-2);
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .25s;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    border-color: var(--moss-strong);
    transform: translateY(-4px);
}

.card .tag {
    font-size: 12px;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
}

.card p {
    color: var(--slate);
    font-size: 14px;
}

.card .glyph {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--slate);
}

/* ABOUT */
.about {
    background: linear-gradient(180deg, #0b0e0c 0%, #10201a 100%);
    position: relative;
}

.about p {
    color: var(--slate);
    font-size: 16px;
    max-width: 760px;
    margin-bottom: 20px;
}

.about p:last-of-type {
    margin-bottom: 0;
}

/* DETAILS — Search / Notes / Settings */
.details-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 24px;
}

.detail-card {
    background: var(--panel);
    border-radius: 20px;
    padding: 32px;
}

.detail-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.detail-card p {
    color: var(--slate);
    font-size: 14.5px;
    margin-bottom: 14px;
}

.detail-card p:last-of-type {
    margin-bottom: 0;
}

.detail-card ul {
    list-style: none;
    margin-top: -4px;
}

.detail-card li {
    color: var(--slate);
    font-size: 14px;
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
}

.detail-card li:last-child {
    margin-bottom: 0;
}

.detail-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--moss);
}

.details code {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 13px;
    color: var(--paper);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 6px;
}

.details-note {
    margin-top: 40px;
    font-size: 13.5px;
    color: var(--slate);
    max-width: 820px;
}

/* CTA BAND */
.cta-band {
    padding: 100px 0;
}

.cta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.cta-content {
    text-align: center;
}

.cta-divider {
    width: 1px;
    align-self: stretch;
    background: var(--line);
}

.cta-band p {
    color: var(--slate);
    max-width: 480px;
    margin: 0 auto 36px;
    font-size: 16px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--line);
    padding: 60px 0 32px;
    background: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--slate);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--slate);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--moss);
}

/* LEGAL PAGES */
.legal {
    padding: 168px 0 100px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.legal p,
.legal li {
    color: var(--slate);
    max-width: 760px;
    font-size: 16px;
    line-height: 1.6;
}

.legal p {
    margin-bottom: 20px;
}

.legal .legal-updated {
    color: var(--moss);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 40px;
}

.legal h4 {
    color: var(--paper);
    font-size: 22px;
    font-weight: 400;
    margin: 48px 0 16px;
    max-width: 760px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legal .section-head h2 {
    font-weight: 400;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legal ul {
    max-width: 760px;
    margin: 0 0 20px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 10px;
}

.legal a {
    color: var(--moss);
}

.legal .legal-address {
    font-style: normal;
}

.legal-table-wrap {
    max-width: 760px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    color: var(--slate);
}

.legal-table th {
    color: var(--paper);
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--panel);
}

.legal-table td:last-child,
.legal-table th:last-child {
    text-align: center;
    white-space: nowrap;
}

nav.legal-toc {
    position: static;
    display: block;
    inset: auto;
    z-index: auto;
    grid-template-columns: none;
    background: var(--panel);
    backdrop-filter: none;
}

.legal-toc {
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}

.legal-toc-title {
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.legal-toc ol {
    list-style: disc;
    margin: 0;
    padding-left: 22px;
    text-align: left;
    display: inline-block;
}

.legal-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}

.legal-toc a {
    color: var(--slate);
    text-decoration: none;
}

.legal-toc a:hover {
    color: var(--moss);
    text-decoration: underline;
}

@media (width <= 900px) {
    .grid {
        grid-template-columns:1fr;
    }

    .details-grid {
        grid-template-columns:1fr;
    }

    .cta-divider {
        width: 100%;
        height: 1px;
    }

    nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 16px;
        font-size: 12.5px;
    }

    .nav-dropdown-menu {
        left: auto;
        right: 0;
        transform: translateY(-6px);
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: translateY(0);
    }

    .wrap {
        padding: 0 20px;
    }

    section {
        padding: 72px 0;
    }

    .page-home .hero {
        padding: 120px 0 80px;
    }

    .monocle-hero {
        padding: 56px 0 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
