/* ─── Design Tokens ──────────────────────────────────────────────── */
:root {
    --bg:               #0e141a;
    --bg-low:           #080f14;
    --surface:          #161c22;
    --surface-mid:      #1a2026;
    --surface-high:     #242b31;
    --surface-highest:  #2f353c;
    --border:           #424846;
    --border-subtle:    #2f353c;
    --on-surface:       #dde3eb;
    --on-surface-dim:   #c2c8c5;
    --primary:          #b4ccc4;
    --secondary:        #5edbb7;
    --secondary-dim:    #06a483;
    --error:            #ffb4ab;

    --font-head:  'Space Grotesk', sans-serif;
    --font-body:  'Geist', 'Helvetica Neue', sans-serif;
    --font-mono:  'JetBrains Mono', monospace;

    --r-sm:  0.125rem;
    --r:     0.25rem;
    --r-md:  0.375rem;
    --r-lg:  0.5rem;

    --nav-h: 72px;
    --max-w: 1440px;
    --gutter: 24px;
    --mg-d: 64px;
    --mg-m: 16px;
}

/* ─── Base Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ─── Typography ─────────────────────────────────────────────────── */
.t-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--secondary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.t-h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    white-space: pre-line;
}

.t-h2 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: pre-line;
}

.t-h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.t-body-lg {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--on-surface-dim);
}

.t-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--on-surface-dim);
}

.t-mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--mg-d);
}

.section {
    padding: 96px 0;
}

.section-sm {
    padding: 64px 0;
}

/* ─── Navbar ─────────────────────────────────────────────────────── */
.arken-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 var(--mg-d);
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.arken-nav.scrolled {
    background: rgba(8, 15, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-subtle);
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-brand img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--on-surface-dim);
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--on-surface);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
}

.lang-btn.active {
    background: var(--secondary);
    color: #00382b;
}

.lang-btn:hover:not(.active) {
    background: var(--surface-high);
    color: var(--on-surface);
}

/* Mobile nav */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--on-surface);
    transition: transform 0.25s, opacity 0.25s;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 20, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 600;
    color: var(--on-surface);
    transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--secondary); }

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: var(--mg-d);
    background: transparent;
    border: none;
    color: var(--on-surface-dim);
    font-size: 1.5rem;
    cursor: pointer;
    font-family: var(--font-mono);
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--r);
    padding: 0.875rem 1.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    color: #00382b;
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: #7df8d2;
    border-color: #7df8d2;
    box-shadow: 0 0 24px rgba(94, 219, 183, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--on-surface);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    border-color: transparent;
    padding-left: 0;
}

.btn-ghost:hover { color: #7df8d2; }

/* Arrow icon for buttons */
.btn-arrow::after {
    content: '→';
    font-family: var(--font-body);
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-arrow:hover::after { transform: translateX(4px); }

/* ─── Hero Section ───────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 40%, rgba(94,219,183,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 10% 80%, rgba(180,204,196,0.04) 0%, transparent 50%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(66,72,70,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66,72,70,0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-copy .t-h1 {
    margin: 0.75rem 0 1.5rem;
}

.hero-copy .t-body-lg {
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tablet frame */
.tablet-frame {
    position: relative;
    background: var(--surface-high);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 0.75rem;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(94, 219, 183, 0.05);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.tablet-frame::before {
    content: '';
    position: absolute;
    top: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--surface-highest);
    border-radius: var(--r-lg);
}

.tablet-screen {
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-low);
    position: relative;
}

.tablet-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    opacity: 0.92;
}

/* Scan line effect on tablet */
.tablet-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.04) 2px,
        rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
    border-radius: 0.75rem;
}

/* LED status indicator */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 0.05em;
}

.status-dot::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
    animation: pulse-led 2s ease-in-out infinite;
}

@keyframes pulse-led {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--secondary); }
    50%       { opacity: 0.6; box-shadow: 0 0 2px var(--secondary); }
}

/* ─── Feature Grid ───────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    transition: background 0.25s;
}

.feature-card:hover { background: var(--surface-mid); }

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: rgba(94,219,183,0.1);
    border: 1px solid rgba(94,219,183,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--secondary);
    font-size: 1.125rem;
}

.feature-card .t-h3 {
    margin-bottom: 0.625rem;
    color: var(--on-surface);
}

/* ─── Section Headers ────────────────────────────────────────────── */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header.centered {
    text-align: center;
}

.section-header .t-h2 {
    margin-top: 0.5rem;
}

/* ─── Two-column content block ───────────────────────────────────── */
.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split-block.reverse {
    direction: rtl;
}

.split-block.reverse > * {
    direction: ltr;
}

.split-copy .t-h2 {
    margin: 0.5rem 0 1.25rem;
}

/* ─── Ruggedised Tablet Device Frame ────────────────────────────── */
.tablet-device {
    position: relative;
    /* Rubber body — subtle diagonal gradient simulates a matte surface */
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 3px,
            rgba(0,0,0,0.04) 3px,
            rgba(0,0,0,0.04) 6px
        ),
        linear-gradient(160deg, #1f262e 0%, #161d23 55%, #1b2229 100%);
    border-radius: 20px;
    /* Top/bottom bezels taller than sides — ergonomic grip areas */
    padding: 44px 20px;
    border: 1.5px solid #2c3540;
    box-shadow:
        /* Ambient depth */
        0 40px 100px rgba(0,0,0,0.8),
        0 16px 40px  rgba(0,0,0,0.55),
        /* Bevel: top-left catch-light, bottom-right shadow */
        inset 0  2px 0 rgba(255,255,255,0.06),
        inset 0 -2px 0 rgba(0,0,0,0.45),
        inset  2px 0 0 rgba(255,255,255,0.03),
        inset -2px 0 0 rgba(0,0,0,0.3);
}

/* Corner bumpers — the rubber protectors found on ruggedised devices */
.tb-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    background: #111820;
    border: 1.5px solid #252f3a;
    z-index: 2;
}
.tb-c-tl { top:  -1.5px; left:  -1.5px; border-radius: 18px 0 10px 0; }
.tb-c-tr { top:  -1.5px; right: -1.5px; border-radius: 0 18px 0 10px; }
.tb-c-bl { bottom: -1.5px; left:  -1.5px; border-radius: 0 10px 0 18px; }
.tb-c-br { bottom: -1.5px; right: -1.5px; border-radius: 10px 0 18px 0; }

/* Top bezel — camera + status LED */
.tb-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tb-camera {
    width: 9px;
    height: 9px;
    background: #0b1218;
    border-radius: 50%;
    border: 1px solid #1c2830;
    /* Lens glint */
    box-shadow:
        0 0 0 2px #141c22,
        inset 0 0 4px rgba(0,0,0,0.9),
        inset -1px -1px 2px rgba(255,255,255,0.08);
}

.tb-led {
    width: 5px;
    height: 5px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--secondary);
    animation: pulse-led 2.5s ease-in-out infinite;
}

/* Right-side hardware buttons (landscape tablet orientation) */
.tb-side-btns {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tb-btn {
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, #252f3a 0%, #181f28 100%);
    border: 1px solid #111820;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
/* Power — longer */
.tb-btn-power { height: 38px; }
/* Volume up + down — shorter pair */
.tb-btn-vol   { height: 26px; }

/* Screen — the actual display panel */
.tb-screen {
    position: relative;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
    /* Screen bezel inset shadow */
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.9),
        inset 0 2px 12px rgba(0,0,0,0.6);
}

.tb-screen video {
    width: 100%;
    height: auto;
    display: block;
}

/* Bottom bezel — home indicator bar */
.tb-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tb-home-bar {
    width: 52px;
    height: 4px;
    background: #29333e;
    border-radius: 2px;
}

/* Responsive bezel scaling */
@media (max-width: 768px) {
    .tablet-device {
        padding: 32px 14px;
        border-radius: 14px;
    }
    .tb-top-bar,
    .tb-bottom-bar { height: 32px; }
    .tb-corner { width: 18px; height: 18px; }
}

/* Tablet frame video (hero + product) */
.tablet-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}

/* ─── Contact Form ───────────────────────────────────────────────── */
.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-surface-dim);
}

.form-label .req {
    color: var(--secondary);
    margin-left: 3px;
}

.form-input {
    background: var(--surface-mid);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(94, 219, 183, 0.12);
}

.form-input::placeholder {
    color: var(--surface-highest);
}

.form-input.has-error {
    border-color: var(--error);
}

.form-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(255, 180, 171, 0.12);
}

textarea.form-input {
    resize: vertical;
    min-height: 148px;
    line-height: 1.65;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c928f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-input option {
    background: var(--surface-mid);
    color: var(--on-surface);
}

.form-err-msg {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--error);
    letter-spacing: 0.03em;
}

.form-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-send-error {
    background: rgba(255,180,171,0.08);
    border: 1px solid rgba(255,180,171,0.25);
    border-radius: var(--r);
    padding: 0.875rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--error);
    margin-bottom: 1.5rem;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 5rem 2rem;
}

.contact-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(94,219,183,0.1);
    border: 1px solid rgba(94,219,183,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--secondary);
}

.contact-success .t-h2 { margin: 0.5rem 0 1rem; }

/* Receipt card inside success state */
.contact-receipt {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-align: left;
    min-width: 320px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.contact-receipt-row {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.contact-receipt-row:last-child { border-bottom: none; }

.contact-receipt-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-surface-dim);
    min-width: 80px;
    padding-top: 2px;
    flex-shrink: 0;
}

.contact-receipt-value {
    font-size: 0.9rem;
    color: var(--on-surface);
    line-height: 1.5;
    word-break: break-word;
}

.contact-receipt-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.contact-receipt-msg .contact-receipt-value {
    color: var(--on-surface-dim);
    font-size: 0.85rem;
    max-height: 6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Ghost button variant */
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--on-surface-dim);
}
.btn-ghost:hover {
    border-color: var(--on-surface-dim);
    color: var(--on-surface);
    background: transparent;
}

/* Current Reality table rows */
.reality-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 0.75rem;
}

.reality-row:last-child { border-bottom: none; }

@media (max-width: 480px) {
    .reality-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 640px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    .contact-receipt { min-width: unset; padding: 1.25rem; }
}

/* ─── Specs Grid ─────────────────────────────────────────────────── */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.spec-cell {
    background: var(--surface);
    padding: 1.5rem 2rem;
}

.spec-key {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.375rem;
}

.spec-val {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    color: var(--on-surface);
}

/* ─── CTA Section ────────────────────────────────────────────────── */
.cta-section {
    background: var(--surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(94,219,183,0.05) 0%, transparent 60%);
}

.cta-section .t-h2 { margin: 1rem 0 1.5rem; }

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

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: border-color 0.2s, background 0.2s;
}

.card:hover {
    border-color: var(--primary);
    background: var(--surface-mid);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ─── Page Hero (subpages) ───────────────────────────────────────── */
.page-hero {
    padding: calc(var(--nav-h) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(94,219,183,0.05) 0%, transparent 60%);
}

.page-hero-inner { position: relative; z-index: 1; max-width: 720px; }

.page-hero .t-h1 { margin: 0.75rem 0 1.5rem; }

/* ─── Divider ────────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0;
}

/* ─── Location block ─────────────────────────────────────────────── */
.location-block {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.location-copy { flex: 1; }
.location-copy .t-h2 { margin: 0.5rem 0 1.25rem; }

.location-coords {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 2.5rem;
    text-align: center;
}

.location-coords .coord-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.location-coords .coord-val {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--on-surface);
    line-height: 2;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-logo img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.4; }

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--on-surface-dim);
    letter-spacing: 0.04em;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--border);
    letter-spacing: 0.04em;
}

/* ─── Animations ─────────────────────────────────────────────────── */
.aos {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.aos.fade-up  { transform: translateY(24px); }
.aos.fade-in  { transform: translateY(0); }
.aos.fade-left  { transform: translateX(24px); }
.aos.fade-right { transform: translateX(-24px); }

.aos.aos-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.aos-delay-1 { transition-delay: 0.1s; }
.aos-delay-2 { transition-delay: 0.2s; }
.aos-delay-3 { transition-delay: 0.3s; }
.aos-delay-4 { transition-delay: 0.4s; }

/* ─── Blazor error ───────────────────────────────────────────────── */
#blazor-error-ui {
    display: none;
    background: var(--error-container, #93000a);
    color: var(--on-surface);
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --mg-d: 32px; }

    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .tablet-frame { max-width: 580px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .split-block { grid-template-columns: 1fr; gap: 3rem; }
    .split-block.reverse { direction: ltr; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .location-block { flex-direction: column; gap: 2rem; }
}

@media (max-width: 768px) {
    :root { --mg-d: var(--mg-m); }

    .arken-nav { padding: 0 var(--mg-m); justify-content: space-between; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .section { padding: 64px 0; }

    .hero-inner { padding: 2rem 0 3rem; }

    .features-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; text-align: center; }
}
