/* ============================================================
   CYBER PIZZERIA · token system
   ember (#FF7A18) = the fire / tradition
   cyan  (#2BE4D0) = the sensors / future
   ============================================================ */
:root {
  --bg: #0b0a10;
  --surface: #151220;
  --line: #2a2438;
  --text: #ede8e1;
  --text-dim: #a79fb2;
  --ember: #ff7a18;
  --ember-soft: rgba(255, 122, 24, 0.14);
  --cyan: #2be4d0;
  --cyan-soft: rgba(43, 228, 208, 0.12);
  --display: "Michroma", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  /* faint ambient glow: warm from below (the oven), cool from above (the grid) */
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(255, 122, 24, 0.07), transparent),
    radial-gradient(ellipse 70% 30% at 50% -10%, rgba(43, 228, 208, 0.05), transparent);
  background-attachment: fixed;
}

.mono { font-family: var(--mono); }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

.eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.wordmark em {
  font-style: normal;
  color: var(--ember);
  text-shadow: 0 0 14px rgba(255, 122, 24, 0.55);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
}

.hero h1 { margin: 0 0 1.25rem; }

.lede { color: var(--text-dim); max-width: 34rem; margin-bottom: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.btn-ember {
  color: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.25), inset 0 0 12px rgba(255, 122, 24, 0.08);
}
.btn-ember:hover, .btn-ember:focus-visible {
  background: var(--ember-soft);
  box-shadow: 0 0 28px rgba(255, 122, 24, 0.5), inset 0 0 16px rgba(255, 122, 24, 0.15);
}

.btn-cyan {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(43, 228, 208, 0.22), inset 0 0 12px rgba(43, 228, 208, 0.08);
}
.btn-cyan:hover, .btn-cyan:focus-visible {
  background: var(--cyan-soft);
  box-shadow: 0 0 28px rgba(43, 228, 208, 0.45), inset 0 0 16px rgba(43, 228, 208, 0.15);
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- signature schematic ---------- */
.schematic {
  position: relative;
  justify-self: center;
  width: min(500px, 92vw);
}

.pie {
  position: relative;
  width: 100%;
  aspect-ratio: 19 / 15;
}

#pizza-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- sections ---------- */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  color: var(--text-dim);
  max-width: 60rem;
}

/* ---------- signup ---------- */
.signup-copy { color: var(--text-dim); max-width: 40rem; margin-bottom: 2rem; }

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  max-width: 52rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder { color: #5d5570; }

.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(43, 228, 208, 0.25);
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .schematic { margin-top: 1rem; }
  .cols, .signup-form { grid-template-columns: 1fr; }
  .signup-form .btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
