/* Base — light, editorial layout */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --bg-subtle: #f6f7f9;
    --text: #0d0d0d;
    --text-muted: #5c5f66;
    --border: rgba(13, 13, 13, 0.08);
    --border-strong: rgba(13, 13, 13, 0.14);
    --accent: #0a9b7c;
    --accent-hover: #078b6f;
    --accent-soft: rgba(10, 155, 124, 0.12);
    --shadow: 0 1px 2px rgba(13, 13, 13, 0.04), 0 8px 24px rgba(13, 13, 13, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 72px;
    --max-prose: 42rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: var(--max-prose);
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(13, 13, 13, 0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    width: auto;
    height: clamp(36px, 5vw, 44px);
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
    background:
        radial-gradient(120% 80% at 12% -10%, rgba(10, 155, 124, 0.08), transparent 50%),
        radial-gradient(90% 60% at 100% 0%, rgba(13, 13, 13, 0.04), transparent 45%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 42rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 2.875rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.hero-lede {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.hero-lede strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-tint {
    background: var(--bg-subtle);
}

.section-heading {
    font-size: clamp(1.75rem, 3vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.section-kicker {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 1.5rem;
}

.section-intro {
    max-width: 36rem;
    margin-bottom: 2.75rem;
}

.section-lede {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.prose p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose-founder {
    margin-top: 1.5rem !important;
    font-size: 0.9375rem !important;
}

.pill-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-list li {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--text);
    background: rgba(13, 13, 13, 0.03);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

/* Product grid */
.product-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 24px rgba(13, 13, 13, 0.08);
}

.product-visual {
    aspect-ratio: 4 / 3;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-visual-ec {
    background: linear-gradient(160deg, #eef8f5 0%, #f6f7f9 100%);
}

.product-visual-nx {
    background: linear-gradient(160deg, #e8eef8 0%, #f6f7f9 100%);
}

.product-visual-lp {
    background: linear-gradient(160deg, #f0f4f2 0%, #f6f7f9 100%);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-mark {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--accent);
    opacity: 0.85;
}

.product-copy {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.product-desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.product-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.25rem;
}

.product-link:hover {
    text-decoration: underline;
}

/* Contact */
.contact-wrap {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr 1.1fr;
        align-items: start;
        gap: 4rem;
    }
}

.contact-intro .section-heading {
    margin-bottom: 0.75rem;
}

.contact-email {
    margin: 1.25rem 0 0;
    font-size: 1.0625rem;
}

.contact-email a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-subtle);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-submit {
    align-self: flex-start;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-message {
    margin: 0;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: none;
}

.form-message.success {
    display: block;
    background: var(--accent-soft);
    border: 1px solid rgba(10, 155, 124, 0.25);
    color: var(--accent-hover);
}

.form-message.error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 2.5rem;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.footer-copy,
.footer-inner p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie bar */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border-strong);
    padding: 1.25rem 1.5rem;
    z-index: 10000;
    box-shadow: 0 -8px 30px rgba(13, 13, 13, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-logo-img {
    width: 48px;
    height: auto;
}

.cookie-text {
    flex: 1;
    min-width: 220px;
}

.cookie-text h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-cookie {
    padding: 0.625rem 1.1rem;
    font-size: 0.8125rem;
}

/* Cookie modal */
.cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.45);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.cookie-modal-logo-img {
    width: 40px;
    height: auto;
}

.cookie-modal-header h2 {
    flex: 1;
    font-size: 1.25rem;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.cookie-modal-close:hover {
    color: var(--text);
}

.cookie-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cookie-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.cookie-category p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.55;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(13, 13, 13, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-toggle-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cookie-modal-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Mobile nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        right: 0;
        width: min(300px, 88vw);
        height: calc(100vh - var(--nav-h));
        background: var(--bg);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
        box-shadow: -8px 0 32px rgba(13, 13, 13, 0.08);
        transform: translateX(100%);
        transition: transform 0.28s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .section-intro {
        margin-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .cookie-consent {
        transition: none;
    }
}
