@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Figtree";
  src: url("./assets/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Silkscreen";
  src: url("./assets/fonts/Silkscreen-Regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "Silkscreen";
  src: url("./assets/fonts/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("./assets/fonts/ShareTechMono-Regular.ttf") format("truetype");
  font-weight: 400;
}

:root {
  --primary: #d85b62;
  --primary-light: #f08a90;
  --primary-dark: #b14650;
  --primary-bg: #171010;
  --bg: #090909;
  --bg-2: #121212;
  --bg-3: #2e2e2e;
  --text: #b2b2b2;
  --text-muted: #656565;
  --border: #232323;
  --max-width: 1100px;
  --section-space: 80px;
}

* { box-sizing: border-box; }
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(to right, rgba(216, 91, 98, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(to bottom, rgba(216, 91, 98, 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% -10%, #2a1012 0%, #090909 55%);
  color: var(--text);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke: 0.25px currentColor;
  image-rendering: pixelated;
  overflow-x: hidden;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: grid;
  place-items: center;
  transition: opacity 240ms ease;
}
.loader.hide { opacity: 0; pointer-events: none; }
.loader-core { text-align: center; font-family: "Share Tech Mono", monospace; color: var(--primary-light); }
.loader-core { animation: float-up-soft 700ms cubic-bezier(0.22, 1, 0.36, 1) both; letter-spacing: 0.08em; }
.loader-dots { display: inline-flex; gap: 6px; margin-left: 8px; }
.loader-dots i { width: 6px; height: 6px; background: var(--primary); animation: dot-pulse 0.8s infinite; }
.loader-dots i:nth-child(2) { animation-delay: 0.2s; }
.loader-dots i:nth-child(3) { animation-delay: 0.4s; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-space) 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
}
.brand { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: "Silkscreen", monospace; font-size: 1rem; letter-spacing: 0.08em; }
.brand-wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.brand-wave i { width: 3px; background: var(--primary); animation: audio-wave-bounce 600ms steps(4) infinite; }
.brand-wave i:nth-child(1) { animation-delay: 0ms; }
.brand-wave i:nth-child(2) { animation-delay: 150ms; }
.brand-wave i:nth-child(3) { animation-delay: 300ms; }
.brand-wave i:nth-child(4) { animation-delay: 450ms; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; min-height: calc(100dvh - 84px); padding-top: 24px; }
.badge {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  padding: 2px 8px;
}
h1 {
  font-family: "Silkscreen", monospace;
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin: 18px 0 14px;
}
.hero-copy p { max-width: 540px; line-height: 1.7; }

.btn {
  text-decoration: none;
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
  font-family: "Silkscreen", monospace;
  font-size: 0.82rem;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  transition: all 0.16s ease-out;
}
.btn:hover { border-color: var(--bg-3); color: #fff; }
.btn-primary { border-color: var(--primary); color: var(--primary); }
.btn-primary:hover { background: var(--primary-bg); }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--primary); color: var(--primary-light); }

.cta-row { display: flex; gap: 12px; margin: 22px 0 0; flex-wrap: wrap; }
.proof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.proof-row div { border: 1px solid var(--border); background: #101010; padding: 12px; }
.proof-row strong { font-family: "Share Tech Mono", monospace; color: #fff; display: block; font-size: 0.76rem; letter-spacing: 0.04em; }
.proof-row span { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; display: block; margin-top: 6px; }

.phone-wrap { position: relative; display: grid; place-items: center; margin-top: -8px; }
.hero-copy,
.phone-wrap,
.card,
.step { min-width: 0; }
.ambient-glow { position: absolute; width: 380px; height: 380px; background: radial-gradient(circle, rgba(216, 91, 98, 0.24), transparent 65%); filter: blur(8px); }
.app-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 385 / 900;
  height: auto;
  border: 0;
  border-radius: 44px;
  opacity: 0.94;
  background: transparent;
  overflow: hidden;
  display: block;
  box-shadow: 0 0 120px rgba(216, 91, 98, 0.18);
}
.app-content { width: 100%; height: 100%; padding: 0; overflow: hidden; background: transparent; }
.app-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  outline: 0;
  background: #181818;
  border-radius: 44px;
  opacity: 0.94;
}

.section-title {
  font-family: "Silkscreen", monospace;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: #101010;
  border: 2px solid var(--border);
  padding: 24px;
  transition: all 0.12s ease-out;
}
.card:hover { border-color: var(--primary); background: var(--primary-bg); }
.pixel-icon { width: 28px; height: 28px; fill: var(--primary); image-rendering: pixelated; }
.card h3 { color: #fff; margin: 14px 0 8px; }
.card p { color: var(--text-muted); margin: 0; line-height: 1.6; }

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.section-copy { line-height: 1.7; max-width: 520px; }
.preview-panel {
  border: 2px solid var(--primary);
  box-shadow: inset 0 0 0 2px var(--bg), 0 0 0 2px var(--bg-3);
  background: #101010;
  padding: 20px;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.preview-panel img {
  width: 86px;
  height: 86px;
  border: 2px solid var(--border);
  background: #111;
}
.preview-panel p {
  margin: 0;
  color: #dedede;
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.04em;
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { border: 2px solid var(--primary); box-shadow: inset 0 0 0 2px var(--bg), 0 0 0 2px var(--bg-3); padding: 20px; }
.step span { display: inline-block; font-family: "Share Tech Mono", monospace; color: var(--primary-light); margin-bottom: 8px; }
.step p { margin: 0; color: #d1d1d1; }

.bottom-cta {
  position: sticky;
  bottom: 0;
  z-index: 15;
  background: rgba(9, 9, 9, 0.95);
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-footer { text-align: center; padding: 24px 16px 40px; border-top: 1px solid var(--border); color: var(--text-muted); }
.site-footer p { margin: 0 0 8px; color: #fff; font-family: "Silkscreen", monospace; }

.reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }

@keyframes audio-wave-bounce {
  0% { height: 4px; }
  33% { height: 12px; }
  66% { height: 8px; }
  100% { height: 4px; }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes float-up-soft {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 2px solid var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--primary-dark);
}

@media (max-width: 860px) {
  :root { --section-space: 56px; }
  .container { padding: 0 20px; }
  .hero-grid, .preview-grid, .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-wrap { order: 2; margin-top: 14px; }
  .app-frame { max-width: 260px; height: auto; }
  .proof-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { padding: 12px 16px; gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-name { font-size: 0.86rem; }
  .features-grid { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 14px; }
  .app-frame { border-radius: 34px; max-width: 210px; height: auto; }
  .app-content img { border-radius: 34px; }
  .proof-row { grid-template-columns: 1fr; }
  h1 { letter-spacing: 0.03em; }
  .cta-row { flex-direction: column; gap: 10px; }
  .cta-row .btn { width: 100%; }
  .bottom-cta { padding: 10px; gap: 8px; }
  .bottom-cta .btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
