:root {
  --bg:           #080b0e;
  --surface:      #0e1318;
  --surface-2:    #121920;
  --border:       #1a2028;
  --border-hi:    #26313c;
  --teal:         #2a9bac;
  --teal-dark:    #1d7a89;
  --teal-light:   #4dc4d4;
  --orange:       #f07a1a;
  --orange-light: #f59c40;
  --cream:        #f6e7c8;
  --text:         #e8edf0;
  --text-2:       #a9b6be;
  --muted:        #6b7c87;

  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --mono:    'DM Mono', ui-monospace, Consolas, monospace;
  --sans:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: 32px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint blueprint grid behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-light); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--orange); color: #000; padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ── type helpers ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.grad-teal, .grad-orange, .grad-text {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-teal   { background-image: linear-gradient(90deg, var(--teal-light), var(--teal)); }
.grad-orange { background-image: linear-gradient(90deg, var(--orange), var(--orange-light)); }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 11, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--teal-light); }

/* ── hero ── */
.hero { position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(42,155,172,0.13) 0%, transparent 68%);
}
.hero::after {
  width: 460px; height: 460px; left: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(240,122,26,0.08) 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 9vw, 8.25rem);
  line-height: 0.9;
  letter-spacing: 0.015em;
  margin: 22px 0 28px;
}
.hero-sub { font-size: 1.08rem; color: var(--text-2); max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* three app icons, stacked like cards on a desk */
.hero-stack { position: relative; height: 380px; }
.hero-stack .tile {
  position: absolute;
  width: 196px; height: 196px;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
  animation: float 6s ease-in-out infinite;
}
.hero-stack .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-stack .tile-longbox  { left: 4%;  top: 28px;  transform: rotate(-7deg); animation-delay: 0s; }
.hero-stack .tile-strength { left: 40%; top: 0;     transform: rotate(5deg);  animation-delay: -2s; background: #fff; }
.hero-stack .tile-longbox, .hero-stack .tile-strength { z-index: 2; }
.hero-stack .tile-komga    { left: 24%; top: 176px; transform: rotate(-1deg); animation-delay: -4s; z-index: 1;
  display: grid; place-items: center; background: linear-gradient(145deg, #1b222b, #0e1318); }
.hero-stack .tile-komga img { width: 62%; height: 62%; object-fit: contain; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* ── buttons ── */
.btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(42,155,172,0.32); }
.btn-orange { background: linear-gradient(135deg, #d9640c, var(--orange)); color: #fff; }
.btn-orange:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(240,122,26,0.32); }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--teal-dark); color: var(--teal-light); }

/* ── section scaffolding ── */
.section { padding: 104px 0; border-top: 1px solid var(--border); position: relative; }
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 44px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── lineup (overview cards) ── */
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lineup-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}
.lineup-card:hover { border-color: var(--teal-dark); transform: translateY(-3px); }
.lineup-card .icon {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-hi);
}
.lineup-card .icon img { width: 100%; height: 100%; object-fit: cover; }
.lineup-card .icon.komga { display: grid; place-items: center; background: #1b222b; }
.lineup-card .icon.komga img { width: 64%; height: 64%; object-fit: contain; }
.lineup-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: 0.03em; line-height: 1; }
.lineup-card p { color: var(--text-2); font-size: 0.94rem; flex: 1; }
.lineup-card .meta {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: space-between; align-items: center;
}
.lineup-card .meta .arrow { color: var(--orange); font-size: 1rem; transition: translate 0.2s; }
.lineup-card:hover .meta .arrow { translate: 4px 0; }

/* ── product sections ── */
.product-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 72px;
}
.product-number { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); }
.product-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 0.95; letter-spacing: 0.02em;
  margin: 12px 0 10px;
}
.product-tagline {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--orange);
  margin-bottom: 24px;
}
.product-lede { color: var(--text-2); font-size: 1.04rem; max-width: 520px; }
.product-lede strong { color: var(--text); font-weight: 500; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
  border: 1px solid var(--border-hi); color: var(--text-2);
}
.chip.live { border-color: var(--teal); color: var(--teal-light); }

.banner-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* feature grid */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.feature { background: var(--surface); padding: 30px 28px; }
.feature h4 {
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); margin-bottom: 10px;
  display: flex; gap: 10px; align-items: baseline;
}
.feature h4::before { content: '→'; color: var(--teal); }
.feature p { color: var(--text-2); font-size: 0.92rem; }

/* phone screenshots */
.phones {
  display: flex; gap: 28px; justify-content: center; align-items: flex-start;
  margin: 72px 0;
}
.phone {
  flex: 0 1 250px;
  margin: 0;
}
.phone .screen {
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid #1c232b;
  outline: 1px solid var(--border-hi);
  background: #000;
  box-shadow: 0 26px 60px rgba(0,0,0,0.55);
}
/* frame takes the screenshot's own aspect ratio, so nothing is cropped */
.phone .screen img { width: 100%; height: auto; }
.phone figcaption {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-top: 16px;
}
.phone:nth-child(2) { margin-top: 40px; }

/* ── Longbox: guided view demo ── */
.longbox { background: radial-gradient(ellipse at 85% 0%, rgba(240,122,26,0.07), transparent 55%); }
.longbox .product-tagline { color: var(--orange-light); }
.longbox-logo { width: min(100%, 440px); margin: -8px 0 6px -6px; }

.guided {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center;
  margin: 72px 0;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.guided-copy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 8px; }
.guided-copy h3 {
  font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: 0.02em;
}
.guided-copy p { color: var(--text-2); }
.guided figure { margin: 0; }
.guided .page {
  position: relative; border-radius: 4px; overflow: hidden; border: 1px solid var(--border-hi);
}
/* outline of the panel the guided view zooms into (middle-left panel of this page) */
.guided .page .panel-box {
  position: absolute;
  left: 3%; top: 34%; width: 46%; height: 30.5%;
  border: 3px solid var(--orange);
  border-radius: 2px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), 0 0 24px rgba(240,122,26,0.6);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse { 50% { border-color: var(--orange-light); } }
.guided .panel { border-radius: 4px; overflow: hidden; border: 1px solid var(--border-hi); }
.guided figcaption {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px; text-align: center;
}
.guided .to {
  font-family: var(--display); font-size: 3rem; color: var(--orange); line-height: 1;
}

.note {
  margin-top: 40px;
  padding: 18px 22px;
  border-left: 2px solid var(--orange);
  background: rgba(240,122,26,0.05);
  color: var(--text-2);
  font-size: 0.93rem;
}
.note strong { color: var(--text); font-weight: 500; }

/* ── Strength ── */
.strength { background: radial-gradient(ellipse at 10% 0%, rgba(42,155,172,0.08), transparent 55%); }
.strength-logo {
  width: 120px; height: 120px; border-radius: 28px; overflow: hidden; background: #fff;
  border: 1px solid var(--border-hi); margin-bottom: 8px;
}
.cycle {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end;
  height: 200px; padding: 28px 28px 0; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.cycle .bar {
  position: relative;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  border-radius: 3px 3px 0 0;
  height: var(--h);
}
.cycle .bar.test { background: linear-gradient(180deg, var(--orange-light), var(--orange)); }
.cycle .bar span {
  position: absolute; top: -20px; left: 50%; translate: -50% 0;
  font-family: var(--mono); font-size: 0.6rem; color: var(--text-2); white-space: nowrap;
}
.cycle-caption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}

/* ── Komga fork ── */
.komga-mark {
  width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1b222b, #0e1318); border: 1px solid var(--border-hi); margin-bottom: 8px;
}
.komga-mark img { width: 62%; }
.terminal {
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  background: #05080a;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hi); }
.terminal pre {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.8; color: var(--text-2);
  padding: 22px 24px; overflow-x: auto; white-space: pre;
}
.terminal .c { color: var(--muted); }
.terminal .p { color: var(--teal-light); }
.terminal .o { color: var(--orange-light); }

.pairing {
  margin-top: 56px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 28px 32px;
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
}
.pairing img { width: 72px; height: 72px; border-radius: 16px; }
.pairing h4 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.03em; line-height: 1.05; }
.pairing p { color: var(--text-2); font-size: 0.93rem; margin-top: 4px; }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-grid h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 0.95;
}
.about-grid p { color: var(--text-2); margin-bottom: 16px; }
.principles { list-style: none; display: grid; gap: 14px; }
.principles li {
  padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.principles b {
  display: block; font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 4px;
}
.principles span { color: var(--text-2); font-size: 0.93rem; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal-light); }
.footer-brand p { color: var(--muted); font-size: 0.86rem; margin-top: 10px; max-width: 320px; }
.footer-legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ── entrance animation ── */
.reveal { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero-inner, .product-head, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .hero-stack { height: 300px; max-width: 420px; }
  .hero-stack .tile { width: 150px; height: 150px; border-radius: 32px; }
  .hero-stack .tile-komga { top: 136px; }
  .lineup { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .guided { grid-template-columns: 1fr; padding: 28px; }
  .guided-copy { grid-template-columns: 1fr; gap: 12px; }
  .guided .to { text-align: center; rotate: 90deg; }
  .guided .page, .guided .panel { max-width: 420px; margin: 0 auto; }
  .product-head { margin-bottom: 48px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .site-nav { gap: 16px; }
  .site-nav .opt { display: none; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .phones {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 48px calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px;
  }
  .phone { flex: 0 0 64%; scroll-snap-align: center; }
  .phone:nth-child(2) { margin-top: 0; }
  .pairing { grid-template-columns: 1fr; text-align: left; }
  .cycle { padding: 26px 14px 0; gap: 4px; height: 170px; }
  .cycle .bar span { font-size: 0.5rem; }
  .terminal pre { font-size: 0.72rem; padding: 18px; }
}

code {
  font-family: var(--mono); font-size: 0.86em;
  padding: 1px 5px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}

.contact {
  margin-top: 28px; padding: 22px 20px;
  border: 1px solid var(--teal-dark); border-radius: var(--radius);
  background: rgba(42,155,172,0.06);
}
.contact p { color: var(--text); margin-bottom: 14px; }
.contact .btn { text-transform: none; letter-spacing: 0.04em; font-size: 0.8rem; }

.terminal a { color: var(--text-2); text-decoration: none; }
.terminal a.o { color: var(--orange-light); }
.terminal a:hover { text-decoration: underline; }

/* ── studio logo ── */
.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; transition: transform 0.2s; }
.brand:hover img { transform: rotate(-3deg) scale(1.05); }
.brand-footer img { height: 84px; }
.about-logo {
  width: min(100%, 300px); margin-bottom: 32px;
  filter: drop-shadow(0 18px 40px rgba(240,122,26,0.18));
}
