:root {
  --ink: #f2ebe0;
  --muted: rgba(242, 235, 224, 0.68);
  --amber: #e0a45a;
  --deep: #0b1418;
  --panel: rgba(10, 18, 22, 0.72);
  --line: rgba(242, 235, 224, 0.14);
  --ok: #7dcc8a;
  --bad: #e07a6a;
  --pad: clamp(1.1rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  background: var(--deep);
  line-height: 1.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(8, 14, 18, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav a:hover { color: var(--ink); }
.nav-copy {
  border: 1px solid var(--line);
  background: rgba(224, 164, 90, 0.12);
  color: var(--amber);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 18, 0.25) 0%, rgba(8, 14, 18, 0.35) 40%, rgba(8, 14, 18, 0.92) 100%),
    radial-gradient(80% 60% at 20% 80%, rgba(224, 164, 90, 0.18), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vw, 8rem) var(--pad) clamp(2.5rem, 6vw, 4rem);
  max-width: 920px;
  animation: fadeup 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted);
}
.dot.on {
  background: var(--ok);
  animation: pulse 2.2s ease-out infinite;
}
.dot.off { background: var(--bad); }

.brand {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4.4rem, 15vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff6e8 0%, #e0a45a 58%, #9a6b3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1rem 0 0;
  max-width: 22ch;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: stretch;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 20, 24, 0.55);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 164, 90, 0.5);
}
.btn.primary {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1.3rem;
  min-width: min(100%, 280px);
  text-align: left;
  background: rgba(16, 26, 32, 0.72);
  backdrop-filter: blur(10px);
}
.btn.primary.compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.9rem 1.25rem;
}
.btn.ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.25rem;
  color: var(--muted);
}
.btn-k {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.btn-v {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
}
.btn-h {
  font-size: 0.78rem;
  color: var(--muted);
}

.panel {
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad);
}
.panel.soft { padding-top: 0; }

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.metric {
  background: rgba(10, 18, 22, 0.88);
  padding: 1.15rem 1.15rem 1.25rem;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
}
.metric.wide { grid-column: span 2; min-height: auto; }

.k {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.v {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.v.small {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.v.mono {
  font-family: "Sora", ui-monospace, monospace;
  font-size: 1.05rem;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.icon-row img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: #111;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: 0 var(--pad) clamp(3rem, 8vw, 5rem);
}

.split-media {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.split-copy h2 {
  margin: 0 0 1.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}

.steps {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}
.steps .n {
  font-family: "Fraunces", Georgia, serif;
  color: var(--amber);
  font-size: 1.2rem;
  padding-top: 0.15rem;
}
.steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.steps b { color: var(--ink); font-weight: 600; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem var(--pad) calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot strong {
  display: block;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}
.foot-copy {
  border: 0;
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  letter-spacing: 0.04em;
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 204, 138, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(125, 204, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 204, 138, 0); }
}

@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric.wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split-media img { min-height: 240px; }
}

@media (max-width: 640px) {
  .nav a { display: none; }
  .hero { min-height: 88svh; }
  .hero-actions { width: 100%; }
  .btn.primary, .btn.ghost { width: 100%; }
  .btn.ghost { justify-content: center; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 6.2rem; }
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
