/* =========================================================
   EKAFORM — landing page styles
   Pure B&W with one phosphor-lime accent. Premium, dense,
   editorial typography. Inspired by Linear / Vercel / Stripe
   ========================================================= */

:root {
  /* core palette */
  --bg:           #0a0a0a;
  --bg-elev:      #111111;
  --bg-soft:      #161616;
  --line:         #1f1f1f;
  --line-2:       #2a2a2a;
  --line-strong:  #3a3a3a;
  --text:         #f5f5f0;        /* warm cream, Notion-era */
  --text-mid:     #a3a39e;
  --text-low:     #6a6a66;
  --text-dim:     #4a4a47;

  /* single accent — used very sparingly */
  --accent:       #d4f547;        /* phosphor lime — lab/instrument feel */
  --accent-dim:   rgba(212, 245, 71, 0.35);

  /* type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans:    "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* layout */
  --max:          1240px;
  --pad:          clamp(20px, 4vw, 48px);
  --section-y:    clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* selection */
::selection { background: var(--accent); color: #000; }

/* film noise overlay */
.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
  flex-shrink: 0;
}

/* periodic-table style badge */
.brand__badge {
  position: relative;
  width: 30px; height: 30px;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2px 3px;
  font-family: var(--font-mono);
  color: var(--text);
  overflow: hidden;
}
.brand__badge::after {
  /* tiny accent dot — lab instrument tell */
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 3px; height: 3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-dim);
}
.brand__num { font-size: 5px; line-height: 1; opacity: 0.55; }
.brand__sym {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  margin-top: 1px;
  letter-spacing: -0.02em;
}
.brand__mass { font-size: 4px; line-height: 1; opacity: 0.5; text-align: center; }
.brand__badge--sm { width: 26px; height: 26px; }
.brand__badge--sm .brand__sym { font-size: 12px; }

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--text-mid);
}
.nav__links a {
  position: relative;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-ghost {
  font-size: 13.5px;
  color: var(--text-mid);
  transition: color 0.18s;
}
.link-ghost:hover { color: var(--text); }

.nav__burger {
  display: none;
  background: none; border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--lg { padding: 13px 22px; font-size: 14.5px; }

.btn--primary {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}
.btn--primary:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(60px, 10vw, 120px) var(--pad) clamp(80px, 12vw, 160px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.35;
  z-index: 1;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10,10,10,0.95) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(10,10,10,0.85) 0%, transparent 50%);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 32px;
  animation: rise 0.9s 0.05s cubic-bezier(.2,.7,.2,1) both;
}
.eyebrow__text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  font-weight: 400;
  animation: rise 1s 0.15s cubic-bezier(.2,.7,.2,1) both;
}

.rotate {
  position: relative;
  display: inline-block;
}
.rotate__item {
  display: block;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease;
}
.rotate__item.is-active {
  position: relative;
  opacity: 1;
}

.hero__sub {
  max-width: 660px;
  margin: 0 auto 40px;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--text-mid);
  line-height: 1.55;
  animation: rise 1s 0.3s cubic-bezier(.2,.7,.2,1) both;
}
.hero__sub-em {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02em;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: rise 1s 0.45s cubic-bezier(.2,.7,.2,1) both;
}

.hero__meta {
  animation: rise 1s 0.6s cubic-bezier(.2,.7,.2,1) both;
}

.kbd {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  letter-spacing: 0;
}

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

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust {
  border-bottom: 1px solid var(--line);
  padding: 36px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.trust__lead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 24px;
}
.trust__row {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
}
.trust__row li {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--text-mid);
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 88px);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 20px;
}
.section__kicker--center { display: block; text-align: center; margin-bottom: 28px; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  font-weight: 400;
}
.section__title--left { text-align: left; }
.section__title em {
  font-style: italic;
  color: var(--text);
}

.section__lede {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.section__lede--left { margin-left: 0; max-width: 460px; }

/* =========================================================
   PIPELINE (How it works)
   ========================================================= */
.pipeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.pipeline__step {
  background: var(--bg);
  padding: 28px 22px 32px;
  position: relative;
  transition: background 0.25s ease;
}
.pipeline__step:hover { background: var(--bg-soft); }
.pipeline__step:hover .pipeline__icon { color: var(--accent); }

.pipeline__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.pipeline__icon {
  margin: 22px 0 18px;
  color: var(--text);
  transition: color 0.3s ease;
}
.pipeline__icon svg { width: 36px; height: 36px; display: block; }

.pipeline__step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 400;
}
.pipeline__step p {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   CAPABILITIES
   ========================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.cap {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background 0.25s ease;
}
.cap:hover { background: var(--bg-soft); }
.cap:hover .cap__index { color: var(--accent); }

.cap__index {
  position: absolute;
  top: 28px; right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.cap h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
  font-weight: 400;
  max-width: 80%;
}
.cap p {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0 0 24px;
  line-height: 1.55;
}

.cap__art {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  color: var(--text-mid);
}
.cap__art--graph { color: var(--text-low); }
.cap__art--graph .node-accent {
  fill: var(--accent);
}

.formula {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  letter-spacing: 0;
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.018) 0%, transparent 60%),
    var(--bg);
}

.manifesto__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 0 0 48px;
}
.manifesto__title em { font-style: italic; }

.manifesto__body {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.manifesto__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 22px;
}
.manifesto__punch {
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: 22px !important;
  font-style: italic;
  line-height: 1.45 !important;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}

/* =========================================================
   USE CASES
   ========================================================= */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.uc {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 28px 26px 22px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.uc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.uc:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.uc:hover::before { opacity: 0.6; }
.uc:hover .uc__cta { color: var(--accent); }

.uc__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 18px;
}
.uc h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  font-weight: 400;
}
.uc p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 0 20px;
}
.uc__cta {
  margin-top: auto;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-low);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

/* =========================================================
   DEVELOPERS / CODE
   ========================================================= */
.dev__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.dev__copy { padding-right: 12px; }

.dev__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.dev__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.dev__bullet {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.dev__code {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 20px 60px rgba(0,0,0,0.6);
}
.code__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.code__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.code__name {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-low);
}
.code__body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}
.c-c { color: var(--text-dim); font-style: italic; }
.c-k { color: var(--text); }
.c-n { color: var(--text); }
.c-s { color: var(--accent); }
.c-p { color: var(--text-mid); }
.c-o { color: var(--text-mid); }
.c-mi { color: var(--text); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 80% at 50% 60%, rgba(212,245,71,0.04) 0%, transparent 70%),
    var(--bg);
}

.final__inner { max-width: 720px; margin: 0 auto; }

.final__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-weight: 400;
}
.final__title em { font-style: italic; }

.final__sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 auto 36px;
  max-width: 540px;
}

.final__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.final__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-low);
  letter-spacing: 0.04em;
  margin: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 36px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 56px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.foot__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot__cols a {
  display: block;
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 9px;
  transition: color 0.18s;
}
.foot__cols a:hover { color: var(--text); }

.foot__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-low);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline__step:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-grid  { grid-template-columns: repeat(2, 1fr); }
  .dev__grid { grid-template-columns: 1fr; gap: 40px; }
  .foot__inner { grid-template-columns: 1fr; gap: 40px; }
  .foot__cols { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta .link-ghost { display: none; }
  .nav__cta { margin-left: auto; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .uc-grid  { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .hero { min-height: 78vh; }
  .hero__title { line-height: 1; }
  .manifesto__body p { font-size: 16px; }
  .manifesto__punch { font-size: 19px !important; }
}

@media (max-width: 480px) {
  .pipeline { grid-template-columns: 1fr; }
  .trust__row { gap: 18px 24px; }
  .trust__row li { font-size: 16px; }
  .btn--lg { padding: 12px 18px; font-size: 13.5px; }
  .hero__cta { gap: 8px; }
  .nav__inner { gap: 16px; }
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
