/* ──────────────────────────────────────────────────────────────────────
   Blinken — marketing site stylesheet
   Restrained editorial. Warm paper. One bright lamp.
   ────────────────────────────────────────────────────────────────────── */

:root {
    /* Colour */
    --paper:        #FAF7EE;
    --paper-deep:   #F2EDDF;
    --ink:          #1A1916;
    --ink-soft:     #3A372F;
    --subdued:      #65615A;
    --rule:         #E8E4D9;
    --rule-strong:  #D4CDB8;

    --led-red:      #E11C1C;
    --led-red-soft: #FF5239;
    --led-red-deep: #8A0808;
    --led-glow:     rgba(225, 28, 28, 0.35);

    /* Type */
    --display: "Fraunces", "Times New Roman", Georgia, serif;
    --body:    "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    /* Scale & rhythm */
    --max-width: 1080px;
    --gutter: clamp(20px, 4vw, 56px);
    --section-y: clamp(80px, 12vw, 160px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11", "cv02";
    overflow-x: hidden;
}

/* Subtle paper grain via a tiny noise SVG overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
a:hover { text-decoration-color: var(--led-red); }

/* ───── Navigation ───── */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--gutter);
    max-width: var(--max-width);
    margin: 0 auto;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.wordmark .led-mini {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #ffd1c1 0%, #ff5239 32%, #e11c1c 60%, #6b0606 100%);
    box-shadow:
        0 0 4px rgba(225, 28, 28, 0.55),
        0 0 10px rgba(225, 28, 28, 0.35),
        inset 0 -2px 2px rgba(40, 0, 0, 0.4);
    animation: led-mini-pulse 3.8s ease-in-out infinite;
}

@keyframes led-mini-pulse {
    0%, 18%, 100% { filter: brightness(0.92); }
    8%  { filter: brightness(1.35); }
    52% { filter: brightness(1.18); }
    60% { filter: brightness(0.85); }
    66% { filter: brightness(1.25); }
}

.nav-cta {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 100px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav-cta:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
}

/* ───── Hero ───── */

.hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 88px) var(--gutter) clamp(60px, 10vw, 130px);
    text-align: center;
    overflow: visible;
}

/* atmospheric red wash bleeding from the LED into the page */
.hero::before {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    width: 1100px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 50% 50% at 50% 40%,
        rgba(225, 28, 28, 0.09) 0%,
        rgba(225, 28, 28, 0.04) 35%,
        transparent 75%);
    pointer-events: none;
    z-index: 0;
}

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

.kicker {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
    margin-bottom: 24px;
}
/* (kicker stands alone; no decorative dashes) */

.led-stage {
    width: 280px;
    height: 280px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    display: grid;
    place-items: center;
    position: relative;
}

.led {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%,
            #fff5ed 0%,
            #ffb499 7%,
            #ff5239 19%,
            #e11c1c 40%,
            #8a0808 78%,
            #2f0303 100%);
    position: relative;
    box-shadow:
        inset 0 -10px 22px rgba(60, 0, 0, 0.45),
        inset 0 4px 12px rgba(255, 220, 200, 0.25),
        0 0 36px rgba(255, 50, 30, 0.5),
        0 0 80px rgba(225, 28, 28, 0.4),
        0 0 150px rgba(225, 28, 28, 0.25),
        0 0 280px rgba(225, 28, 28, 0.12);
    animation: led-activity 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    will-change: filter;
}

/* glassy specular highlight at the top of the dome */
.led::after {
    content: "";
    position: absolute;
    inset: 12% 26% 56% 26%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 30%,
        rgba(255, 255, 255, 0.75),
        rgba(255, 230, 220, 0.2) 50%,
        rgba(255, 255, 255, 0) 80%);
    pointer-events: none;
    filter: blur(0.6px);
}

/* Believable disk-activity rhythm: mostly steady with irregular flickers. */
@keyframes led-activity {
    0%   { filter: brightness(0.92); }
    3%   { filter: brightness(1.45); }
    5%   { filter: brightness(1.00); }
    8%   { filter: brightness(1.32); }
    10%  { filter: brightness(0.95); }
    20%  { filter: brightness(0.88); }
    25%  { filter: brightness(0.92); }
    /* quiet stretch */
    42%  { filter: brightness(0.85); }
    44%  { filter: brightness(1.5);  }
    46%  { filter: brightness(0.95); }
    /* burst */
    63%  { filter: brightness(0.9);  }
    65%  { filter: brightness(1.4);  }
    67%  { filter: brightness(1.0);  }
    69%  { filter: brightness(1.35); }
    71%  { filter: brightness(0.88); }
    /* tail */
    88%  { filter: brightness(0.95); }
    92%  { filter: brightness(1.18); }
    96%  { filter: brightness(0.9);  }
    100% { filter: brightness(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .led, .wordmark .led-mini { animation: none; filter: brightness(1.05); }
}

.hero h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(48px, 8.4vw, 108px);
    line-height: 0.96;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 30;
    max-width: 18ch;
    margin: 0 auto;
}

.hero h1 .it {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
}

.hero .lede {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 28px auto 0;
}

.cta-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 44px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--body);
    font-weight: 500;
    font-size: 15.5px;
    letter-spacing: -0.005em;
    color: var(--paper);
    background: var(--ink);
    padding: 14px 26px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, box-shadow .25s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 30px -12px rgba(26, 25, 22, 0.5);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 40px -14px rgba(26, 25, 22, 0.6); }
.btn-primary:active { transform: translateY(0); }

.btn-primary .arrow {
    width: 18px; height: 18px; display: inline-block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path fill='none' stroke='currentColor' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3 9h12M10 4l5 5-5 5'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path fill='none' stroke='currentColor' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3 9h12M10 4l5 5-5 5'/></svg>") center/contain no-repeat;
}

.cta-meta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--subdued);
    white-space: nowrap;
}

/* hero entry animation */
.hero .kicker  { opacity: 0; animation: rise .9s ease .15s forwards; }
.led-stage     { opacity: 0; animation: rise 1.1s ease .35s forwards; }
.hero h1       { opacity: 0; animation: rise 1.0s ease .55s forwards; }
.hero .lede    { opacity: 0; animation: rise .9s  ease .75s forwards; }
.cta-row       { opacity: 0; animation: rise .8s  ease .95s forwards; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero .kicker, .led-stage, .hero h1, .hero .lede, .cta-row { opacity: 1; animation: none; transform: none; }
}

/* ───── Section: features ───── */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: clamp(48px, 7vw, 80px);
    max-width: 720px;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
}

.section h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 80, "SOFT" 40;
}

.section h2 em { font-style: italic; font-weight: 400; color: var(--ink-soft); }

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

.feature {
    display: grid;
    gap: 14px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}

.feature-icon .led {
    width: 28px; height: 28px;
    box-shadow:
        inset 0 -3px 6px rgba(60, 0, 0, 0.45),
        0 0 12px rgba(225, 28, 28, 0.45),
        0 0 28px rgba(225, 28, 28, 0.2);
    animation-duration: 5.2s;
}
.feature-icon .led::after { inset: 14% 28% 56% 28%; }

.feature-icon .swap-bar {
    width: 6px; height: 28px;
    background: linear-gradient(
        to top,
        #b88810 0%,
        #b88810 40%,
        #D4A017 40%,
        #D4A017 100%);
    box-shadow:
        inset 0 0 2px rgba(60, 40, 0, 0.4),
        0 0 12px rgba(212, 160, 23, 0.45),
        0 0 24px rgba(212, 160, 23, 0.2);
    border-radius: 1px;
    position: relative;
}

.feature-icon .menu-glyph {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 24px;
}
.feature-icon .menu-glyph i {
    height: 3px;
    background: var(--ink-soft);
    border-radius: 1px;
    opacity: 0.85;
    display: block;
}
.feature-icon .menu-glyph i:nth-child(1) { width: 100%; }
.feature-icon .menu-glyph i:nth-child(2) { width: 70%; }
.feature-icon .menu-glyph i:nth-child(3) { width: 85%; }

.feature h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.feature p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 36ch;
}

/* ───── Philosophy ───── */

.philosophy {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.philosophy .section-head { margin-bottom: 0; }

.philosophy-body { display: grid; gap: 22px; }

.philosophy-body p {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(19px, 1.9vw, 23px);
    line-height: 1.45;
    color: var(--ink);
    font-variation-settings: "opsz" 30, "SOFT" 20;
    letter-spacing: -0.005em;
}

.philosophy-body p:first-child::first-letter {
    font-family: var(--display);
    font-weight: 500;
    font-size: 4.2em;
    line-height: 0.85;
    float: left;
    padding: 6px 12px 0 0;
    color: var(--led-red);
    font-variation-settings: "opsz" 144, "SOFT" 40;
}

.philosophy-body em {
    font-style: italic;
    color: var(--ink-soft);
}

/* ───── Privacy note ───── */

.privacy-band {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.privacy-band h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 80, "SOFT" 40;
    margin-bottom: 28px;
}

.privacy-band p {
    font-size: clamp(17px, 1.4vw, 19px);
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
}

.privacy-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 36px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--subdued);
    text-transform: uppercase;
}

.privacy-meta span { position: relative; }
.privacy-meta span + span::before {
    content: "·";
    margin-right: 22px;
    color: var(--rule-strong);
}

/* ───── Byline ───── */

.byline {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-y) var(--gutter);
    border-top: 1px solid var(--rule);
    text-align: center;
}

.byline p {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.45;
    color: var(--ink);
    font-variation-settings: "opsz" 60, "SOFT" 30;
}

.byline a { text-decoration-color: var(--rule-strong); }
.byline a:hover { text-decoration-color: var(--led-red); }

.byline .heart { color: var(--led-red); display: inline-block; }

/* ───── Footer ───── */

footer {
    border-top: 1px solid var(--rule);
    margin-top: 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--gutter) 56px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--subdued);
}

.footer-inner a {
    text-decoration: none;
    color: var(--subdued);
    transition: color .15s ease;
}
.footer-inner a:hover { color: var(--ink); }

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

/* ───── Document pages (privacy / terms) ───── */

.doc {
    max-width: 740px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section-y);
}

.doc .doc-eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--subdued);
    margin-bottom: 18px;
}

.doc h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 120, "SOFT" 30;
    margin-bottom: 12px;
}

.doc .doc-updated {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--subdued);
    letter-spacing: 0.04em;
    margin-bottom: 56px;
}

.doc h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 36, "SOFT" 30;
    margin: 56px 0 16px;
    color: var(--ink);
}

.doc p, .doc li {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.doc p { margin-bottom: 18px; }

.doc ul { padding-left: 22px; margin-bottom: 18px; }
.doc li { margin-bottom: 8px; }

.doc strong { color: var(--ink); font-weight: 600; }

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--subdued);
    text-decoration: none;
}
.doc-back:hover { color: var(--ink); }
.doc-back::before { content: "←"; font-size: 14px; }

/* ───── Mobile ───── */

@media (max-width: 820px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .philosophy {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .led-stage {
        width: 240px;
        height: 240px;
    }
    .led {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 500px) {
    .nav-cta { display: none; }
    .privacy-meta { gap: 12px; }
    .privacy-meta span + span::before { margin-right: 12px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
