/* ============ F. BRUTALIST ============ */
:root {
  --paper: #f4f1eb;
  --ink: #0a0a0a;
  --ink-2: #2c2c2c;
  --rule: #0a0a0a;
  --accent: #5e2ca5;
  --paper-elev: #e8e3d8;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --paper: #0e0c0a;
  --ink: #ede6d6;
  --ink-2: #b0a896;
  --rule: #ede6d6;
  --accent: #b48cff;
  --paper-elev: #1a1714;
}
[data-theme="dark"] .head { background: var(--paper); }
[data-theme="dark"] .pricing { background: var(--paper-elev); }
[data-theme="dark"] .site-footer { background: #050403; color: var(--ink); }
[data-theme="dark"] .head nav a:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .hero__bar { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .rate-table th { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .cta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .cta:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .rate-table tr.featured { background: var(--paper-elev); }
[data-theme="dark"] .ascii-sep { background: var(--paper); }
[data-theme="dark"] .serie figure { background: var(--paper-elev); }
[data-theme="dark"] .serie figure img { filter: contrast(1.02) brightness(0.92); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: background 0.15s, color 0.15s; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

/* Text selection */
::selection { background: var(--accent); color: var(--paper); }
::-moz-selection { background: var(--accent); color: var(--paper); }

/* Scrollbar (Webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-elev); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper-elev); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Cursor blink in wordmark */
.cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 0.15em;
  font-weight: 700;
  animation: cursor-blink 1.1s steps(2, end) infinite;
}
@keyframes cursor-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Entry animation, ease-out-expo, no bounce */
@keyframes enter-up {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bar { animation: enter-up 0.5s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__txt .tag { animation: enter-up 0.5s 0.05s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__txt h1 .display:nth-of-type(1) { animation: enter-up 0.55s 0.10s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__txt h1 .display:nth-of-type(2) { animation: enter-up 0.55s 0.18s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__txt h1 .ital { animation: enter-up 0.55s 0.26s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__line { animation: enter-up 0.5s 0.34s cubic-bezier(0.19, 1, 0.22, 1) both; transform-origin: left; }
  .hero__txt .lede { animation: enter-up 0.5s 0.4s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__num { animation: enter-up 0.7s 0.5s cubic-bezier(0.19, 1, 0.22, 1) both; }
  .hero__sub { animation: enter-up 0.5s 0.65s cubic-bezier(0.19, 1, 0.22, 1) both; }
}
.ital {
  font-family: var(--mono);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--accent);
  padding: 0 0.05em;
  display: inline-block;
}

.display {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* HEADER */
.head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 38px;
  z-index: 10;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}
.logo { font-weight: 700; font-size: 0.8125rem; }
.head__addr { margin: 0; text-align: center; color: var(--ink-2); }
.head nav { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; font-weight: 500; }
.head nav a {
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.head nav a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s, color 0.18s;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle__on { display: none; }
.theme-toggle__off { display: inline; }
[aria-pressed="true"] .theme-toggle__on, .theme-toggle[aria-pressed="true"] .theme-toggle__on { display: inline; }
[aria-pressed="true"] .theme-toggle__off, .theme-toggle[aria-pressed="true"] .theme-toggle__off { display: none; }

/* HERO */
.hero {
  border-bottom: 2px solid var(--ink);
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}
.hero__bar {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  padding: 0.4rem clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 2.5vw, 1.75rem) 0;
  align-items: start;
}
.hero__txt h1 {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  line-height: 0.92;
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.025em;
}
.hero__txt h1 .display {
  font-weight: 700;
  position: relative;
  display: inline-block;
  transition: text-shadow 0.18s steps(2, end), transform 0.18s steps(2, end);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__txt h1:hover .display { text-shadow: 2px 0 0 var(--accent), -2px 0 0 #00d4ff; }
}
.hero__txt h1 .ital { font-size: 0.5em; margin-top: 0.35em; font-weight: 300; color: var(--accent); padding: 0; text-transform: lowercase; }

.hero__line { border-top: 2px solid var(--ink); margin: 1.75rem 0 1.25rem; max-width: 24rem; }
.lede { max-width: 44ch; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; letter-spacing: 0.04em; margin: 0; }

.hero__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.hero__sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--ink);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.hero__stat { margin: 0; font-size: 0.6875rem; color: var(--ink-2); letter-spacing: 0.12em; }

.cta {
  display: inline-block;
  padding: 0.85em 1.5em;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  border: 2px solid var(--ink);
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.cta--big { padding: 1.1em 2em; font-size: 0.875rem; margin: 1.5rem 0; }

/* MANIFESTO */
.manifesto {
  border-bottom: 2px solid var(--ink);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 2.5vw, 1.75rem);
}
.manifesto__line {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(3rem, 5vw, 4rem);
  text-transform: uppercase;
}
.manifesto__line .ital {
  display: inline-block;
  font-weight: 300;
  text-transform: lowercase;
  color: var(--accent);
  padding: 0;
}
.manifesto__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 60rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}
.manifesto__cols p { margin: 0; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.65; letter-spacing: 0.04em; }

/* SECTION HEAD */
.section-head {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 2.5vw, 1.75rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--ink);
}
.section-head h2 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.section-head h2 .ital { color: var(--accent); font-weight: 300; padding: 0; }

/* SERIES */
.series { border-bottom: 2px solid var(--ink); }

.serie {
  display: grid;
  grid-template-columns: 8ch 1fr 22rem;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
}
.serie:last-child { border-bottom: none; }

.serie__num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.serie figure {
  margin: 0;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper-elev);
  position: relative;
  isolation: isolate;
}
.serie figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: contrast(1.02);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.serie figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: 0.32;
  transition: opacity 0.4s;
  pointer-events: none;
}
.serie figure:hover img { transform: scale(1.025); }
.serie figure:hover::after { opacity: 0; }

.serie__data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.25rem;
  align-content: start;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin: 0;
}
.serie__data dt { font-weight: 500; color: var(--ink-2); }
.serie__data dd { margin: 0; font-weight: 700; }

/* PRICING table */
.pricing { border-bottom: 2px solid var(--ink); background: var(--paper-elev); }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.rate-table th, .rate-table td {
  padding: 1rem clamp(1rem, 2.5vw, 1.75rem);
  text-align: left;
  border-bottom: 1px solid var(--ink);
  vertical-align: top;
}
.rate-table th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  border-bottom: 2px solid var(--ink);
}
.rate-table .num { color: var(--accent); font-weight: 700; width: 4rem; }
.rate-table .right { text-align: right; }
.rate-table tbody tr { transition: background 0.2s; }
.rate-table tbody tr:hover { background: var(--paper); }
.rate-table tr.featured { background: var(--paper); }
.rate-table tr.featured strong { color: var(--accent); }
.rate-table tr.featured:hover { background: color-mix(in oklab, var(--accent) 8%, var(--paper)); }
.price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rate-note { padding: 0 clamp(1rem, 2.5vw, 1.75rem) 1.5rem; font-size: 0.6875rem; color: var(--ink-2); margin: 0; letter-spacing: 0.12em; }

/* CONTACT */
.contact {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 2px solid var(--ink);
}
.contact__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 0.95;
}
.contact p { font-size: 0.8125rem; max-width: 50ch; margin: 0 0 1rem; color: var(--ink-2); letter-spacing: 0.06em; }
.contact__addr { font-size: 0.6875rem; color: var(--ink-2); letter-spacing: 0.12em; margin-top: 0.5rem; }

/* ASCII separators (decoratif, statement brutaliste) */
.ascii-sep {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ascii-sep::before, .ascii-sep::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--ink-2);
}
.ascii-sep span { color: var(--accent); font-weight: 700; }

/* VHS MODE (Konami easter egg) */
.vhs-mode { position: relative; }
.vhs-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 3px
  );
}
.vhs-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.18) 100%);
}
.vhs-mode .hero__txt h1 .display { animation: vhs-glitch 4s steps(2, end) infinite; }
.vhs-mode .hero__num { color: #00d4ff; text-shadow: 2px 0 0 var(--accent), -2px 0 0 #ff3b00; }
@keyframes vhs-glitch {
  0%, 92%, 100% { text-shadow: none; transform: translateX(0); }
  93% { text-shadow: 3px 0 0 var(--accent), -3px 0 0 #00d4ff; transform: translateX(1px); }
  94% { text-shadow: -3px 0 0 var(--accent), 3px 0 0 #00d4ff; transform: translateX(-1px); }
  95% { text-shadow: none; transform: translateX(0); }
}

.vhs-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--accent);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  border: 2px solid var(--ink);
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  white-space: nowrap;
}
.vhs-banner.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .vhs-mode .hero__txt h1 .display { animation: none; }
  .vhs-mode .hero__num { text-shadow: none; }
}

/* TICKER */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--paper);
  border-block: 2px solid var(--ink);
  padding: 0.6rem 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticker__track {
  display: inline-flex;
  gap: 1rem;
  white-space: nowrap;
  animation: ticker-slide 32s linear infinite;
  will-change: transform;
}
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* FOOTER */
.site-footer { background: var(--ink); color: var(--paper); padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem); }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}
.foot-row a:hover { color: var(--accent); }

.build-info {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--paper-elev);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 235, 0.55);
  text-align: center;
}
[data-theme="dark"] .build-info { border-top-color: var(--ink-2); color: rgba(237, 230, 214, 0.45); }

/* BOOT SCREEN */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}
.boot.is-done { opacity: 0; }
.boot__text {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #4ade80;
  margin: 0;
  white-space: pre;
  max-width: 90ch;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; gap: 0.75rem; text-align: left; }
  .head__addr, .head nav { text-align: left; justify-content: flex-start; }
  .head nav a, .theme-toggle { min-height: 44px; padding: 0.7rem 0.85rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__num { align-items: flex-start; font-size: clamp(4rem, 18vw, 7rem); flex-direction: row; gap: 0.05em; }
  .manifesto__cols { grid-template-columns: 1fr; }
  .serie { grid-template-columns: 1fr; gap: 1rem; }
  .serie__num { font-size: 2rem; }
}

@media (max-width: 700px) {
  .rate-table thead { display: none; }
  .rate-table, .rate-table tbody, .rate-table tr, .rate-table td { display: block; width: 100%; }
  .rate-table tr {
    border-bottom: 2px solid var(--ink);
    padding: 1.5rem clamp(1rem, 2.5vw, 1.75rem);
  }
  .rate-table tr.featured { background: var(--paper); border-left: 4px solid var(--accent); padding-left: calc(clamp(1rem, 2.5vw, 1.75rem) - 4px); }
  .rate-table td { padding: 0.4rem 0; border-bottom: none; }
  .rate-table .num { font-size: 1.75rem; line-height: 1; margin-bottom: 0.5rem; padding-top: 0; }
  .rate-table td:nth-child(2) { font-size: 0.875rem; }
  .rate-table td:nth-child(3) { font-size: 0.75rem; color: var(--ink-2); padding-top: 0.5rem; }
  .rate-table .right { text-align: left; padding-top: 0.75rem; }
  .price { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .serie figure:hover img { transform: none; }
  .serie figure:hover::after { opacity: 0; }
}
