/* ==========================================================================
   Kenro Blueprint — kenroblueprint.com
   Technical-drawing industrial: black drafting table, saffron marking ink.
   Theme lifted from the Kenro app palette (usekenro.com).
   ========================================================================== */

:root {
  /* Surfaces (Kenro graphite scale) */
  --bg-base: #000000;
  --bg-card: #070708;
  --bg-elevated: #0c0c0d;
  --bg-hover: #202023;

  /* Borders */
  --border-subtle: #1f1f22;
  --border-default: #2e2e33;
  --border-strong: #44444c;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-tertiary: #787878;

  /* Saffron marking ink */
  --brand: #d97706;
  --brand-light: #f59e0b;
  --brand-dark: #b45309;
  --brand-soft: rgba(217, 119, 6, 0.12);

  --success: #7fb069;

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --content-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Backdrop: drafting grid + film grain ---------- */

.drafting-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size:
    160px 160px,
    160px 160px,
    32px 32px,
    32px 32px;
  mask-image: radial-gradient(
    ellipse 120% 90% at 50% 0%,
    #000 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 120% 90% at 50% 0%,
    #000 40%,
    transparent 100%
  );
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

main,
.nav,
.footer {
  position: relative;
  z-index: 2;
}

/* ---------- Type helpers ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--brand-light);
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-solid {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}

.btn-solid:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 26px 24px;
}

.wordmark {
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-kenro {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.wordmark-blueprint {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--brand-light);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 18px;
  white-space: nowrap;
}

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

.hero {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 96px 24px 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
  margin: 20px 0 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-light);
  position: relative;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-secondary);
}

.hero-sub strong {
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Schematic (FIG. 01) ---------- */

.schematic {
  max-width: 860px;
  margin: 72px auto 0;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  border-radius: 6px;
  text-align: left;
  position: relative;
}

/* Draftsman's corner ticks */
.schematic::before,
.schematic::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--brand);
  border-style: solid;
}

.schematic::before {
  top: -5px;
  left: -5px;
  border-width: 2px 0 0 2px;
}
.schematic::after {
  bottom: -5px;
  right: -5px;
  border-width: 0 2px 2px 0;
}

.schematic-title {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--border-default);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand-light);
}

.schematic-rev {
  color: var(--text-tertiary);
}

.schematic-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.schematic-node {
  padding: 22px 20px;
  border-right: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
}

.schematic-node:last-child {
  border-right: none;
}

.schematic-node:hover {
  background: var(--bg-elevated);
}

.node-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.node-name {
  font-weight: 700;
  font-size: 15px;
}

.node-desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.schematic-base {
  border-top: 1px dashed var(--border-default);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-align: center;
}

/* ---------- Spec ticker ---------- */

.ticker {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 72px 0;
  overflow: hidden;
  background: var(--bg-card);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 15px 0;
  animation: ticker-scroll 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.ticker-track i {
  color: var(--brand);
  font-style: normal;
  font-size: 9px;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.section {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 72px 24px;
}

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

.section-head h2 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 16px 0 18px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 17px;
}

/* ---------- Blueprint cards ---------- */

.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bp-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.bp-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.bp-flagship {
  grid-column: span 2;
  background:
    linear-gradient(140deg, var(--bg-elevated) 0%, var(--bg-card) 55%),
    var(--bg-card);
  border-color: var(--brand-dark);
}

.bp-flagship:hover {
  border-color: var(--brand);
}

.bp-index {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.bp-index em {
  color: var(--brand-light);
  font-style: normal;
}

.bp-status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bp-live {
  background: var(--brand-soft);
  color: var(--brand-light);
  border: 1px solid var(--brand-dark);
}

.bp-ready {
  background: rgba(127, 176, 105, 0.1);
  color: var(--success);
  border: 1px solid rgba(127, 176, 105, 0.35);
}

.bp-board {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px dashed var(--border-default);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0);
  }
}

.bp-card h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.bp-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.bp-list {
  list-style: none;
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.bp-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.bp-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.bp-custom {
  border-style: dashed;
  background: transparent;
}

.bp-custom-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-light);
  text-decoration: none;
  margin-top: auto;
}

.bp-custom-link:hover {
  text-decoration: underline;
}

/* ---------- Inside: pipeline + capabilities ---------- */

.pipeline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.pipeline li {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.pipeline li span {
  color: var(--brand-light);
  font-size: 11px;
}

/* Connector arrow between pipeline stages */
.pipeline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  color: var(--brand);
  z-index: 1;
}

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

.cap {
  background: var(--bg-card);
  padding: 26px 24px;
  transition: background 0.2s ease;
}

.cap:hover {
  background: var(--bg-elevated);
}

.cap h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cap p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 28px;
  align-items: start;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--brand-light);
}

.step h3 {
  font-size: 21px;
  margin: 12px 0 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.step-rule {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(var(--border-default), transparent);
}

/* ---------- Ownership ---------- */

.own-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.own-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 16px 0 18px;
}

.own-sub {
  color: var(--text-secondary);
  font-size: 17px;
}

.own-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.own-list li {
  display: flex;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.own-list strong {
  color: var(--text-primary);
}

.own-tick {
  font-family: var(--font-mono);
  color: var(--brand-light);
  border: 1px solid var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 3px;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* ---------- Proof strip ---------- */

.proof {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 30px 24px;
  text-align: center;
}

.proof-line {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
}

/* ---------- Contact ---------- */

.contact {
  padding-bottom: 96px;
}

.contact-card {
  border: 1px solid var(--brand-dark);
  border-radius: 8px;
  background:
    radial-gradient(
      ellipse 70% 120% at 50% -20%,
      var(--brand-soft),
      transparent 60%
    ),
    var(--bg-card);
  text-align: center;
  padding: 72px 32px;
  position: relative;
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--brand);
  border-style: solid;
}

.contact-card::before {
  top: -6px;
  left: -6px;
  border-width: 2px 0 0 2px;
}
.contact-card::after {
  bottom: -6px;
  right: -6px;
  border-width: 0 2px 2px 0;
}

.contact-card h2 {
  font-size: clamp(36px, 5.5vw, 58px);
  margin: 18px 0;
}

.contact-sub {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
}

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

.footer {
  border-top: 1px solid var(--border-subtle);
  max-width: 100%;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer .wordmark-kenro,
.footer .wordmark-blueprint {
  font-size: 14px;
}

.footer-note,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.d-1 {
  transition-delay: 0.08s;
}
.d-2 {
  transition-delay: 0.16s;
}
.d-3 {
  transition-delay: 0.24s;
}
.d-4 {
  transition-delay: 0.32s;
}
.d-5 {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    animation: none;
  }
  .live-dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .schematic-body {
    grid-template-columns: 1fr 1fr;
  }
  .schematic-node {
    border-bottom: 1px dashed var(--border-subtle);
  }
  .bp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bp-flagship {
    grid-column: span 2;
  }
  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step-rule {
    display: none;
  }
  .own-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 14px;
    padding: 20px 16px;
  }
  .wordmark-kenro,
  .wordmark-blueprint {
    font-size: 15px;
  }
  .nav-cta {
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 9px 11px;
    margin-left: auto;
  }

  .hero {
    padding-top: 64px;
  }
  .schematic-body {
    grid-template-columns: 1fr;
  }
  .schematic-node {
    border-right: none;
  }
  .bp-grid {
    grid-template-columns: 1fr;
  }
  .bp-flagship {
    grid-column: span 1;
  }
  .bp-list {
    grid-template-columns: 1fr;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .pipeline li:not(:last-child)::after {
    display: none;
  }
}
