:root {
  --ink: #0c0b0a;
  --ink-soft: #171411;
  --panel: #1c1814;
  --line: rgba(232, 214, 176, 0.14);
  --paper: #f3ead8;
  --paper-dim: #c9b896;
  --amber: #e0a45a;
  --amber-hot: #f0bf74;
  --mint: #7ec8b2;
  --mint-dim: rgba(126, 200, 178, 0.18);
  --text: #efe6d6;
  --muted: #a89880;
  --radius: 18px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(224, 164, 90, 0.16), transparent 55%),
    radial-gradient(900px 600px at 10% 20%, rgba(126, 200, 178, 0.08), transparent 50%),
    linear-gradient(165deg, #14110e 0%, var(--ink) 42%, #100e0c 100%);
  overflow-x: hidden;
}

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

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

.grain,
.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.grain {
  opacity: 0.045;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scan {
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.45) 3px
  );
  animation: scan-drift 9s linear infinite;
}

@keyframes scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(12, 11, 10, 0.85), transparent);
  backdrop-filter: blur(2px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--amber-hot), var(--amber));
  box-shadow: 0 0 0 3px rgba(224, 164, 90, 0.18);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.top-cta {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.top-cta:hover {
  color: var(--paper);
  border-color: var(--amber);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding:
    clamp(5.5rem, 12vh, 7.5rem)
    clamp(1.2rem, 5vw, 4rem)
    clamp(2.5rem, 6vh, 4rem);
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.9s ease both;
}

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

.brand-signal {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--paper) 20%, var(--amber-hot) 70%, var(--mint) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-signal.soft {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--paper);
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 32rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.6;
  transform: none;
  cursor: wait;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--amber-hot), var(--amber));
  color: #1a130c;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #f7d08a, var(--amber-hot));
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.02);
}

.btn.ghost:hover {
  border-color: rgba(224, 164, 90, 0.45);
  color: var(--amber-hot);
}

.hero-stage {
  display: flex;
  justify-content: center;
  animation: rise 1.1s ease 0.15s both;
}

.crt {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 16 / 11;
  border-radius: 28px;
  padding: clamp(1rem, 3vw, 1.6rem);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(126, 200, 178, 0.12), transparent 45%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.crt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(240, 191, 116, 0.08) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.crt-glow {
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(224, 164, 90, 0.22), transparent 70%);
  filter: blur(10px);
}

.cassette {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.reel-l .spokes,
.reel-r .spokes {
  transform-origin: 0 0;
  animation: spin 8s linear infinite;
}

.reel-r .spokes {
  animation-duration: 6.5s;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.digit-badge {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.72);
  border: 1px solid rgba(126, 200, 178, 0.35);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.digit-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.section {
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.2rem, 5vw, 4rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2,
.contact-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-head p,
.contact-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.format-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.format-list li {
  display: grid;
  gap: 0.35rem;
  padding: 0.15rem 0 0.35rem;
  border-bottom: 1px solid rgba(232, 214, 176, 0.08);
}

.fmt-code {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.fmt-name {
  font-size: 1.05rem;
  color: var(--paper);
  font-weight: 500;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.steps li {
  padding: 1.35rem 1.25rem;
  border-top: 2px solid rgba(224, 164, 90, 0.55);
  background: linear-gradient(180deg, rgba(224, 164, 90, 0.06), transparent 55%);
}

.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--paper);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact {
  padding-bottom: clamp(4rem, 10vh, 6.5rem);
}

.contact-panel {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 28px;
  border: 1px solid rgba(224, 164, 90, 0.28);
  background:
    radial-gradient(700px 280px at 10% 0%, var(--mint-dim), transparent 55%),
    linear-gradient(160deg, #221c16, #14110e);
  box-shadow: var(--shadow);
  text-align: left;
}

.lead-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.lead-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--paper-dim);
  font-size: 0.88rem;
  font-weight: 500;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 11, 10, 0.55);
  color: var(--paper);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.lead-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: 2px solid rgba(224, 164, 90, 0.45);
  outline-offset: 1px;
}

.lead-form .btn {
  justify-self: start;
}

.lead-status {
  min-height: 1.35rem;
  margin: 0;
  font-size: 0.95rem;
}

.lead-status.ok { color: var(--mint); }
.lead-status.err { color: #e08a7a; }

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-panel .cta-row {
  margin-top: 1.5rem;
}

.contact-name {
  margin: 1.4rem 0 0;
  color: var(--paper-dim);
  font-weight: 500;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.2rem, 5vw, 4rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.foot a:hover {
  color: var(--amber-hot);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6rem;
  }

  .hero-stage {
    order: -1;
  }

  .brand-signal {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .format-list {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan,
  .crt::before,
  .reel-l .spokes,
  .reel-r .spokes,
  .digit-badge,
  .hero-copy,
  .hero-stage {
    animation: none !important;
  }
}
