:root {
    /* Delt palett med progr.no */
    --bg: #f0eee6;
    --bg-alt: #faf9f5;
    --ink: #191919;
    --muted: #6b6a63;
    --accent: #cc785c;
    --accent-hover: #b5654a;
    --accent-soft: #f3e9e3;
    --slate: #141413;
    --slate-soft: #262625;
    --manilla: #ebdbbc;
    --sky: #cbcadb;
    --line: rgba(25, 25, 25, 0.12);
    --line-soft: rgba(25, 25, 25, 0.07);
    --radius: 16px;
    --radius-lg: 24px;
    --maxw: 1120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(240, 238, 230, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}

.logo {
    display: inline-flex;
    align-items: flex-start;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
    user-select: none;
}

.logo-star {
    display: inline-block;
    margin-left: 0.03em;
    font-size: 0.82em;
    line-height: 1;
    color: var(--accent);
    transform-origin: 50% 58%;
}

.brand:hover .logo-star {
    color: var(--accent-hover);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--ink);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: var(--bg);
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.nav-cta:hover {
    background: #000;
    color: var(--bg);
}

/* ---------- Layout ---------- */
main {
    width: 100%;
    display: block;
}

.section {
    width: min(var(--maxw), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    border-bottom: 1px solid var(--line-soft);
}

h1,
h2,
h3 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow--light {
    color: var(--manilla);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2.6rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    text-wrap: balance;
}

.section-sub {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 56ch;
}

.section-sub--light {
    color: rgba(240, 238, 230, 0.72);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn.pulse {
    animation: pulse 0.26s ease-out;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: clamp(3rem, 7vw, 5.5rem);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    max-width: 14ch;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.accent-word {
    color: var(--accent);
    font-style: italic;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
    max-width: 54ch;
    color: var(--muted);
}

.hero-cta {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.chip-row {
    margin-top: 2.4rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip-row li {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
}

/* ---------- Hero visual: ESL tags ---------- */
.hero-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.esl-tag {
    position: absolute;
    background: #fdfdfb;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(25, 25, 25, 0.14);
    padding: 1.1rem 1.25rem;
    display: grid;
    gap: 0.35rem;
}

.esl-tag--price {
    width: 260px;
    z-index: 2;
    transform: rotate(-3deg);
    top: 18%;
    left: 6%;
    animation: float-a 6s ease-in-out infinite;
}

.esl-tag--promo {
    width: 200px;
    z-index: 1;
    transform: rotate(4deg);
    bottom: 12%;
    right: 4%;
    background: var(--slate);
    border-color: var(--slate-soft);
    color: var(--bg);
    animation: float-b 7s ease-in-out infinite;
}

.esl-brand {
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--accent);
    font-size: 0.95rem;
}

.esl-name {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.esl-tag--promo .esl-name {
    color: rgba(240, 238, 230, 0.75);
}

.esl-price {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--ink);
    font-weight: 500;
}

.esl-tag--promo .esl-price {
    color: var(--manilla);
}

.esl-price sup {
    font-size: 0.42em;
    vertical-align: super;
}

.esl-price--sm {
    font-size: 2rem;
}

.esl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.esl-unit {
    font-size: 0.75rem;
    color: var(--muted);
}

.esl-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: #2f7d4f;
    background: rgba(47, 125, 79, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.esl-promo-flag {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    background: var(--manilla);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.esl-old {
    font-size: 0.78rem;
    color: rgba(240, 238, 230, 0.6);
    text-decoration: line-through;
}

.sync-line {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.sync-line .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f7d4f;
    box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.5);
    animation: ping 2s ease-out infinite;
}

/* ---------- Surfaces (multi-target) ---------- */
.surface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.surface-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 1.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.surface-card:nth-child(1) { background: #f7efe8; }
.surface-card:nth-child(2) { background: #f4f1e8; }
.surface-card:nth-child(3) { background: #eef0ea; }

.surface-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(25, 25, 25, 0.08);
}

.surface-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.2rem;
}

.surface-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.surface-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- Principles ---------- */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.principle {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 1.8rem;
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.principle-no {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--accent);
    font-size: 1.7rem;
    line-height: 1;
}

.principle h3 {
    font-size: 1.35rem;
}

.principle p {
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- Platform (mørk seksjon) ---------- */
.platform {
    background: var(--slate);
    color: var(--bg);
    width: 100%;
    max-width: none;
    border-bottom: none;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
}

.platform-inner {
    width: min(var(--maxw), 100%);
    margin: 0 auto;
}

.platform h2 {
    color: var(--bg);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.platform-item {
    border: 1px solid var(--slate-soft);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    background: rgba(255, 255, 255, 0.02);
}

.platform-item h3 {
    color: var(--manilla);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.platform-item p {
    color: rgba(240, 238, 230, 0.72);
    line-height: 1.6;
}

.scale-strip {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scale-node {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.scale-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    color: var(--manilla);
}

.scale-node small {
    color: rgba(240, 238, 230, 0.6);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scale-track {
    flex: 1 1 40px;
    min-width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--slate-soft), var(--accent), var(--slate-soft));
    border-radius: 2px;
}

/* ---------- Hardware ---------- */
.hardware {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hardware h2 {
    font-size: clamp(1.8rem, 4.4vw, 3rem);
}

.hardware-list {
    margin-top: 1.6rem;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.hardware-list li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--ink);
    line-height: 1.5;
}

.hardware-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.hardware-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hw-tag {
    background: #fdfdfb;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(25, 25, 25, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.hw-tag--xs { width: 58px; height: 44px; }
.hw-tag--sm { width: 78px; height: 58px; }
.hw-tag--md { width: 104px; height: 80px; }
.hw-tag--lg { width: 138px; height: 112px; background: var(--slate); color: var(--manilla); border-color: var(--slate-soft); }

/* ---------- Manifesto ---------- */
.manifesto {
    background: var(--accent-soft);
    width: 100%;
    max-width: none;
    border-bottom: none;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
}

.manifesto p {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.4rem, 3.4vw, 2.4rem);
    line-height: 1.3;
    max-width: 26ch;
    margin: 0 auto;
    width: min(var(--maxw), 100%);
    text-align: center;
    color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
    text-align: center;
    border-bottom: none;
}

.contact > h2 {
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    margin: 0 auto 1rem;
    max-width: 20ch;
}

.contact p {
    margin: 0 auto 2rem;
    color: var(--muted);
    max-width: 52ch;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    width: min(var(--maxw), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ink);
}

/* ---------- Reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 320px;
        margin-top: 1rem;
    }

    .hardware {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    nav {
        gap: 1rem;
    }

    nav a:not(.nav-cta) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

@keyframes float-a {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-10px); }
}

@keyframes float-b {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-14px); }
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(47, 125, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0); }
}
