/* Ajenu — cloud infrastructure platform.
   Design language: extremely minimal and corporate.
   White surfaces, near-black type, hairline borders, generous whitespace.
   One brand accent (green) used only as a small mark — the logo and a dot.
   Mono type reserved for labels, numbers and small print. */

:root {
    --bg: #ffffff;
    --bg-2: #f7f8f8;
    --surface: #ffffff;
    --surface-2: #fafafa;
    --text: #111111;
    --muted: #6b7280;
    --faint: #9ca3af;
    --border: #e7e7e7;
    --border-strong: #d4d4d4;
    --accent: #2e6b3e;
    --accent-hover: #24532f;
    --accent-soft: rgba(46, 107, 62, 0.1);
    --amber: #a16207;
    --radius: 12px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-blur: 12px;
}

html {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Type system: Inter = UI/body, IBM Plex Mono = labels, numbers, small print */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

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

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

/* ── Navbar ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 19px;
}

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

.nav-link {
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.nav-cta svg {
    transition: transform 0.15s ease;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-cta:hover svg {
    transform: translateX(3px);
}

/* Language selector — native <select>, minimal, light */
.lang-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-select-native {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 28px 7px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.lang-select-native:hover {
    border-color: var(--border-strong);
}

.lang-select-native:focus {
    outline: none;
    border-color: var(--text);
}

.lang-chevron {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

/* Hamburger toggle — shown only on mobile (see responsive block) */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.menu-toggle:hover {
    background: var(--surface-2);
}

.menu-toggle svg {
    display: block;
}

/* ── Hero ───────────────────────────────────── */
.hero {
    min-height: 88vh;
    min-height: 88svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 96px;
}

.hero-inner {
    max-width: 960px;
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 28px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(1.85rem, 4.6vw, 3.2rem);
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
}

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

.hero-sub {
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 15.5px;
    max-width: 560px;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-val {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.stat-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.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);
}

/* Compose the first paint — a single quiet fade (kept subtle for corporate) */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-inner > * {
    animation: rise 0.6s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-inner > * {
        animation: none;
    }
}

/* ── Section scaffolding ────────────────────── */
.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-sub {
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
    max-width: 560px;
    line-height: 1.6;
}

/* ── Products grid ──────────────────────────── */
.products {
    padding: 96px 24px 32px;
}

.section-head {
    max-width: 1120px;
    margin: 0 auto 48px;
}

.section-head h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 5vw, 3rem);
    max-width: 720px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.products-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-card {
    background: var(--bg);
    padding: 30px 28px;
    transition: background 0.15s ease;
}

.product-card:hover {
    background: var(--surface-2);
}

.product-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.product-card h3 {
    margin-top: 24px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.product-card p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ── Trust / why Ajenu ──────────────────────── */
.trust {
    padding: 64px 24px 96px;
}

.trust-head {
    max-width: 1120px;
    margin: 0 auto 40px;
}

.trust-head h2 {
    margin-top: 18px;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.trust-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.trust-card {
    background: var(--bg);
    padding: 28px;
}

.trust-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--faint);
}

.trust-card h3 {
    margin-top: 18px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.trust-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ── Contact CTA ────────────────────────────── */
.contact {
    padding: 128px 24px 150px;
}

.contact-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    letter-spacing: -0.03em;
    margin-top: 18px;
}

.contact-sub {
    margin: 18px auto 0;
    color: var(--muted);
    max-width: 520px;
    font-size: 16px;
    line-height: 1.65;
}

.contact-btn {
    margin-top: 34px;
}

.contact-mail {
    display: inline-block;
    margin-top: 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    letter-spacing: -0.01em;
    color: var(--muted);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 4px;
    transition: color 0.15s ease;
}

.contact-mail:hover {
    color: var(--text);
}

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

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.15s ease;
}

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

.footer-bar {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text);
}

.footer-email:hover {
    color: var(--accent);
}

.footer-bar span {
    color: var(--muted);
    font-size: 12.5px;
    font-family: 'IBM Plex Mono', monospace;
}

/* ── Legal pages ────────────────────────────── */
.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 150px 24px 96px;
}

.legal h1 {
    font-size: clamp(2rem, 4vw, 2.4rem);
}

.legal-updated {
    margin-top: 10px;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--muted);
    font-size: 14px;
}

.legal-section {
    margin-top: 48px;
}

.legal-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-cross {
    margin-top: 48px;
    color: var(--muted);
    font-size: 14px;
}

/* ── 404 page ──────────────────────────────── */
.nf {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 24px 96px;
}

.nf-code {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: clamp(4.5rem, 16vw, 9rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--muted);
}

.nf h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    margin-top: 12px;
}

.nf-sub {
    margin-top: 14px;
    color: var(--muted);
    max-width: 420px;
    font-size: 15px;
    line-height: 1.65;
}

.nf .btn {
    margin-top: 34px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    /* Collapse the nav into a hamburger dropdown */
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 4px 24px 22px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--border);
    }

    .lang-wrap {
        margin-top: 16px;
    }

    .lang-select-native {
        width: 100%;
        font-size: 12px;
        padding: 10px 28px 10px 12px;
    }

    .nav-cta {
        justify-content: center;
        margin-top: 16px;
        padding: 12px 18px;
    }
}

@media (max-width: 720px) {
    .hero {
        padding-top: 116px;
        padding-bottom: 72px;
    }

    .products {
        padding-top: 72px;
    }

    .trust {
        padding-bottom: 72px;
    }

    .contact {
        padding: 96px 20px 108px;
    }

    .contact, .trust, .products {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .hero-stats {
        gap: 28px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-head h2,
    .trust-head h2,
    .contact h2 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }
}

/* ── Contact form (guided flow) ────────────── */
.form-page {
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 150px 24px 120px;
}

.form-inner {
    width: 100%;
    max-width: 640px;
}

.form-head h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    letter-spacing: -0.03em;
}

.form-head p {
    margin-top: 14px;
    color: var(--muted);
    max-width: 480px;
    font-size: 15px;
    line-height: 1.65;
}

.form-progress {
    margin-top: 40px;
}

.form-progress-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.form-step-total {
    color: var(--faint);
}

.form-progress-track {
    margin-top: 10px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.form-progress-fill {
    height: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-step-title {
    margin-top: 40px;
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
}

.form-body {
    margin-top: 28px;
}

.step-in {
    animation: rise 0.45s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .step-in {
        animation: none;
    }
}

.field {
    display: block;
    margin-top: 22px;
}

.field:first-child {
    margin-top: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.field-label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.field-label-gap {
    margin-top: 26px;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}

.field-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 0;
    padding: 10px 2px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.field-input::placeholder {
    color: var(--faint);
}

.field-input:focus {
    outline: none;
    border-bottom-color: var(--text);
}

.field-area {
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
}

.field-error {
    margin-top: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--amber);
}

.choice-list {
    border-top: 1px solid var(--border);
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}

.choice-row:hover {
    background: var(--surface-2);
}

.choice-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid var(--border-strong);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-row.selected .choice-dot {
    border-color: var(--text);
    background: var(--text);
}

.choice-row.selected .choice-dot::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.choice-name {
    font-weight: 500;
    font-size: 16px;
}

.channel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.channel-btn svg {
    color: var(--muted);
    transition: color 0.15s ease;
}

.channel-btn:hover {
    border-color: var(--border-strong);
}

.channel-btn.selected {
    border-color: var(--text);
    background: var(--surface-2);
    color: var(--text);
}

.channel-btn.selected svg {
    color: var(--text);
}

.confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 26px;
    cursor: pointer;
}

.confirm-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--text);
    cursor: pointer;
}

.confirm-row span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.form-nav {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 10px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.form-back:hover {
    color: var(--text);
}

.form-back svg {
    transition: transform 0.15s ease;
}

.form-back:hover svg {
    transform: translateX(-3px);
}

.btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.form-done {
    text-align: center;
    padding: 48px 0;
    animation: rise 0.5s ease both;
}

.done-check {
    width: 52px;
    height: 52px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-done h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.form-done p {
    margin: 14px auto 0;
    color: var(--muted);
    max-width: 440px;
    font-size: 15px;
    line-height: 1.65;
}

.done-mail {
    display: inline-block;
    margin-top: 18px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 18px;
    color: var(--text);
    border-bottom: 2px solid var(--text);
    padding-bottom: 4px;
}

.form-again {
    margin-top: 36px;
}

@media (max-width: 560px) {
    .form-page {
        padding-top: 128px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .channel-row {
        grid-template-columns: 1fr;
    }
}
