/* ==========================================================================
   SETzz Landingpage — Styles
   Token source: setzz-design-tokens.html (dark theme only, --bg-deep as page bg)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #202020;
  --bg-deep: #060607;
  --panel: #404040;
  --panel-2: #17171b;
  --line: #494949;
  --line-soft: #1c1c21;

  /* Ink */
  --ink: #f1f0ec;
  --ink-dim: #9a9aa2;
  --ink-faint: #5c5c64;

  /* Signals */
  --amber: #C8A23F;
  --amber-hi: #ddbb5f;
  --green: #46d160;
  --red: #ff5c4d;

  /* Type */
  --f-display: 'Sofia Sans Condensed', sans-serif;
  --f-label: 'JetBrains Mono', monospace;
  --f-data: 'Space Mono', monospace;

  /* Layout */
  --page-max: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-space: clamp(80px, 12vw, 160px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--f-label);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 200;
  letter-spacing: 0.005em;
  line-height: 1.05;
}

/* Semantic emphasis hierarchy — applies everywhere, not just headlines.
   Markdown: **text** -> <strong>, *text*/_text_ -> <em>, <b>text</b> raw HTML passes through. */
b, strong, em { font-style: normal; }
b      { font-weight: 500; }
strong { font-weight: 700; }
em     { color: var(--amber); font-weight: inherit; }

/* Sofia Sans Condensed — full weight range (100-900) available.
   h1/h2/h3 default to 700; apply these utility classes to override
   on any element that uses var(--f-display), e.g. <h2 class="fw-300"> */
.fw-100 { font-weight: 100; }
.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* --------------------------------- Nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 7, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 26px; height: 26px; }
.nav-logo span {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-links .nav-anchor { display: none; }
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--amber);
  color: var(--bg-deep);
  background: var(--amber);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* -------------------------------- Pills ---------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.pill-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pill-chain .arrow { color: var(--ink-faint); }

/* -------------------------------- Sections -------------------------------- */

section { padding: var(--section-space) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

/* ---------------------------------- Hero ---------------------------------- */

.hero { padding-top: clamp(64px, 10vw, 120px); }

.hero .wrap {
  display: grid;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  max-width: 16ch;
}

.hero-sub {
  font-family: var(--f-label);
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 28px 0 36px;
}

.hero-media {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6);
}
.hero-media img { width: 100%; }

/* -------------------------------- Problem -------------------------------- */

.problem { background: var(--bg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.problem-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 48px; /* room for the staggered offset below */
}

.problem-card {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  transition: border-color 0.15s ease;
}
.problem-card:hover { border-color: var(--ink-faint); }

.problem-card-text {
  font-family: var(--f-label);
  font-size: 20px;
  line-height: 1.42;
  color: var(--ink);
}

.problem-x {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-label);
  font-size: 18px;
  line-height: 1;
}

/* Slight vertical offset per column - staggered "brick" feel, 3-col desktop */
.problem-card:nth-child(3n+1) { transform: translateY(0); }
.problem-card:nth-child(3n+2) { transform: translateY(36px); }
.problem-card:nth-child(3n+3) { transform: translateY(14px); }

@media (max-width: 900px) {
  .problem-list { grid-template-columns: repeat(2, 1fr); }
  .problem-card:nth-child(3n+1),
  .problem-card:nth-child(3n+2),
  .problem-card:nth-child(3n+3) { transform: none; }
  .problem-card:nth-child(2n+1) { transform: translateY(0); }
  .problem-card:nth-child(2n)   { transform: translateY(28px); }
}

@media (max-width: 600px) {
  .problem-list { grid-template-columns: 1fr; }
  .problem-card:nth-child(2n+1),
  .problem-card:nth-child(2n) { transform: none; }
  .problem-card { min-height: 0; }
}

/* -------------------------------- Approach -------------------------------- */

.approach-lede {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 68ch;
  margin-bottom: 48px;
}

.approach-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.approach-block h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.approach-block p {
  color: var(--ink-dim);
  font-size: 15px;
}

.pullquote {
  border-left: 2px solid var(--amber);
  background: var(--panel-2);
  padding: 28px 32px;
  border-radius: 0 10px 10px 0;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 800px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* -------------------------------- Process --------------------------------- */

.process-chain-outer {
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.process-chain {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  gap: 0;
}

.process-step {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.process-step.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; transition: none; }
}

.process-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-data);
  font-size: 12px;
}

.process-step h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
}

.process-step p {
  font-family: var(--f-label);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
  padding-right: 16px;
}

.process-arrow {
  color: var(--ink-faint);
  padding: 6px 16px 0;
  margin-top: 5px;
  flex-shrink: 0;
  font-family: var(--f-label);
}

.process-line {
  position: relative;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 40px;
  min-width: max-content;
}

.process-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
  transition: width 0.2s ease-out;
}

.process-line-label {
  margin-top: 14px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.structure-chain { margin-bottom: 48px; }

.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.example-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-2);
}

.example-card .example-media { border-bottom: 1px solid var(--line-soft); }
.example-card .example-media img { width: 100%; }

.example-body { padding: 24px 26px; }

.example-label {
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}

.example-body h3 {
  font-size: 19px;
  font-family: var(--f-label);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

@media (max-width: 800px) {
  .walkthrough-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------- USPs ---------------------------------- */

.usp-list { display: grid; gap: 1px; background: var(--line-soft); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft);}

.usp-item {
  background: var(--bg-deep);
  padding: 40px clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}

.usp-num {
  font-family: var(--f-data);
  font-size: 14px;
  color: var(--ink-faint);
  padding-top: 4px;
}

.usp-item h3 {
  font-family: var(--f-display);
  font-size: 24px;
  margin-bottom: 10px;
}

.usp-item p { color: var(--ink-dim); font-size: 15px; max-width: 62ch; }

.usp-item .usp-media {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .usp-item { grid-template-columns: 1fr; }
}

/* -------------------------------- Founder -------------------------------- */

.founder-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.founder-name {
  font-family: var(--f-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.founder-role.pill { margin-bottom: 18px; }

.founder-body { color: var(--ink-dim); max-width: 60ch; }

@media (max-width: 640px) {
  .founder-grid { grid-template-columns: 1fr; text-align: left; }
  .founder-photo { max-width: 160px; }
}

/* ----------------------------------- CTA ----------------------------------- */

.cta {
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.cta h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 20px; }

.cta p {
  color: var(--ink-dim);
  max-width: 50ch;
  margin: 0 auto 36px;
  font-size: 16px;
}

.cta .microcopy {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* --------------------------------- Footer --------------------------------- */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}
