/* =========================================================
   DEVELOPT
   Grayscale only: black, white and gray
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #0e0e0f;
  --surface: #151517;
  --raised: #1c1c1f;
  --line: #2b2b30;
  --line-strong: #46464d;
  --text: #ececee;
  --muted: #a9a9b0;
  --faint: #85858d;
  --solid-hover: #cfcfd4;

  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
  --radius: 4px;
}

/* Light mode: light grays only, never pure white */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #e9e9ec;
  --surface: #e1e1e5;
  --raised: #d9d9de;
  --line: #c9c9cf;
  --line-strong: #a3a3ac;
  --text: #1d1d20;
  --muted: #45454b;
  --faint: #5b5b63;
  --solid-hover: #39393f;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--solid-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: calc(var(--header-h) - 1px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
}

.nav-desktop { display: flex; gap: 32px; margin: 0 auto; }
.nav-desktop a { font-size: 0.95rem; color: var(--muted); }
.nav-desktop a:hover { color: var(--text); }
.nav-cta { flex-shrink: 0; }

.lang-switch,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-switch:hover,
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.lang-switch svg,
.theme-toggle svg,
.nav-mobile-theme svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.theme-toggle .icon-moon,
.nav-mobile-theme .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun,
:root[data-theme="light"] .nav-mobile-theme .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon,
:root[data-theme="light"] .nav-mobile-theme .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; margin: 0 auto; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}
.nav-mobile > a:not(.btn),
.nav-mobile-theme {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.nav-mobile .btn { margin-top: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding: 124px 0 96px; }
.hero-inner { max-width: 880px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
  padding: 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
}
.dot-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}
.dot-pulse::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--text);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}
.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-sub { max-width: 600px; margin: 0 auto 38px; font-size: 1.18rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 76px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 16px 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 0.9rem; line-height: 1.4; color: var(--faint); }

/* ---------- Strip ---------- */
.strip {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
/* Two identical lists slide left one full width, so the loop has no visible seam */
.strip ul {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-around;
  min-width: 100%;
  padding-block: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  animation: slide 28s linear infinite;
}
.strip li { padding-inline: 27px; }
@keyframes slide {
  to { transform: translateX(-100%); }
}

/* ---------- Section shared ---------- */
section { padding: 112px 0; }
.section-kicker { margin-bottom: 12px; font-size: 0.98rem; color: var(--faint); }
.section-title {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
}
.section-sub { max-width: 560px; font-size: 1.08rem; color: var(--muted); }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About ---------- */
/* lifts only the label; the headline and everything below stay put */
.about .section-kicker { position: relative; top: -16px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.about-copy > p:not(.section-kicker) { font-size: 1.06rem; color: var(--muted); }
.about-points { margin-top: 32px; border-top: 1px solid var(--line); }
.point { padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
:root[data-theme="light"] .terminal-card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.2); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.terminal-bar span:not(.terminal-title) { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.terminal-title { margin-left: 10px; font-size: 0.78rem; color: var(--faint); }
.terminal-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; font-size: 0.88rem; color: var(--muted); }
.tk-prompt { margin-right: 8px; color: var(--faint); }
.tk-ok { margin-right: 8px; color: var(--text); }
.tk-cursor { display: inline-block; width: 7px; margin-left: 4px; background: var(--text); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Services ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.service-card { padding: 32px 30px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.service-card h3 { margin-bottom: 8px; font-size: 1.18rem; font-weight: 600; }
.service-card p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: 60px auto 0; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 38px 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-card--featured { background: var(--raised); border-color: var(--text); box-shadow: inset 0 3px 0 var(--text); }
/* sits in the card's top right corner, level with the plan name */
.price-card { position: relative; }
.price-badge { position: absolute; top: 45px; right: 34px; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.price-head h3 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 700; }
.price-desc { min-height: 3.2em; font-size: 0.96rem; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; gap: 5px; margin-top: 24px; white-space: nowrap; }
.price-currency { font-size: 1.7rem; font-weight: 500; }
.price-value { font-size: clamp(2.3rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.price-note { margin-bottom: 26px; font-size: 0.9rem; color: var(--faint); }
.price-features { flex-grow: 1; margin-bottom: 24px; border-top: 1px solid var(--line-strong); font-size: 0.95rem; }
.price-features li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.price-maintenance { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.price-maintenance span { color: var(--muted); }
.price-maintenance strong { font-weight: 600; }
.price-fineprint { max-width: 640px; margin-top: 36px; font-size: 0.95rem; color: var(--muted); }
.price-fineprint a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Process ---------- */
.process { background: var(--surface); border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.process-step { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.process-index { display: block; margin-bottom: 26px; font-size: 1.6rem; font-weight: 500; line-height: 1; color: var(--faint); }
.process-step h3 { margin-bottom: 8px; font-size: 1.12rem; font-weight: 600; }
.process-step p { font-size: 0.96rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 72px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand p { max-width: 260px; margin-top: 16px; font-size: 0.95rem; color: var(--faint); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h4 { margin-bottom: 8px; font-size: 0.95rem; font-weight: 600; }
.footer-col a { font-size: 0.95rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-col a[href^="mailto:"] {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.footer-col a[href^="mailto:"]:hover { text-decoration-color: currentColor; }
.footer-email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.copy-email {
  min-width: 84px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
}
.copy-email:hover { border-color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer-bottom { padding-top: 24px; padding-bottom: 24px; font-size: 0.88rem; color: var(--faint); position: relative; }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-desktop, .nav-cta, .lang-switch, .theme-toggle { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-desc { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 76px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-actions { margin-bottom: 52px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { padding: 20px 0 0; }
  .stat + .stat { margin-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .services-grid, .process-grid, .footer-inner { grid-template-columns: 1fr; }
  .price-card { padding: 32px 24px; }
  .price-badge { top: 39px; right: 24px; }
}

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
  .container { max-width: 1320px; }
  .hero-inner { max-width: 980px; }
  .hero-title { font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .dot-pulse::after { display: none; }
  .tk-cursor { animation: none; }
  .strip ul { flex: 1; flex-wrap: wrap; justify-content: center; row-gap: 8px; white-space: normal; animation: none; }
  .strip ul[aria-hidden] { display: none; }
}
