/* ============================================================
   StoneMonkey · Beta Landing
   Design language: Stokt-inspired bold editorial × StoneMonkey dark chalk
   ============================================================ */

:root {
  --bg: #0e0e0f;
  --bg-raised: #1a1a1c;
  --bg-stone: #232326;
  --chalk: #f2f0e6;
  --chalk-dim: rgba(242, 240, 230, 0.58);
  --chalk-faint: rgba(242, 240, 230, 0.32);
  --orange: #fa581a;
  --orange-hot: #ff6b2b;
  --gold: #e0ab3d;
  --line: rgba(242, 240, 230, 0.12);
  --font-display: "Archivo", "Noto Sans SC", -apple-system, sans-serif;
  --font-serif: "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--chalk);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::selection { background: var(--orange); color: var(--bg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-pill { border-radius: 999px; }
.btn-lg { padding: 18px 34px; font-size: 15px; }
.btn-primary {
  background: var(--orange); color: var(--bg);
  box-shadow: 0 6px 24px rgba(250, 88, 26, 0.35);
}
.btn-primary:hover {
  background: var(--orange-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(250, 88, 26, 0.5);
}
.btn-ghost {
  background: transparent; color: var(--chalk);
  border-color: var(--chalk);
}
.btn-ghost:hover {
  background: var(--chalk); color: var(--bg);
  transform: translateY(-2px);
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(14,14,15,0.9), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(14,14,15,0.85);
  border-bottom-color: var(--line);
  padding: 12px 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 18px; letter-spacing: 0.02em;
}
.nav-logo img {
  width: 32px; height: 32px; border-radius: 8px;
}
.nav-logo .accent { color: var(--orange); }
.nav-links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: var(--chalk-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--orange);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: 12px; }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 11px; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 140px 6vw 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(250, 88, 26, 0.18) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  border: 1px solid rgba(250, 88, 26, 0.4);
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(250, 88, 26, 0.08);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 32px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  display: inline-block;
  font-style: italic;
  animation: riseIn 1s var(--ease-out) backwards;
}
.hero-title .line:nth-child(1) em { animation-delay: 0.05s; }
.hero-title .line:nth-child(2) em { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) em { animation-delay: 0.25s; }
.hero-title .line:nth-child(4) em { animation-delay: 0.35s; }

.hero-title .hollow {
  color: transparent;
  -webkit-text-stroke: 2px var(--chalk);
  text-stroke: 2px var(--chalk);
}
.hero-title .accent { color: var(--orange); }

@keyframes riseIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--chalk-dim);
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: var(--font-serif);
}
.hero-sub strong {
  color: var(--chalk);
  font-weight: 700;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.hero-device {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  transform: rotate(3deg);
  transition: transform 0.6s var(--ease-out);
}
.hero-device:hover { transform: rotate(0deg) scale(1.02); }

.device-frame {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a2d, #151517);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.device-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
}
.device-shadow {
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 40px;
  background: radial-gradient(ellipse, rgba(250, 88, 26, 0.3), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--chalk-faint);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
    text-align: center;
  }
  .hero-inner { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-device { transform: rotate(0); margin-top: 20px; }
  .hero-scroll { display: none; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--orange);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  transform: rotate(-1deg);
  margin: 40px -2vw;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(250, 88, 26, 0.25);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span { padding-right: 48px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 80px 0;
}
.stat {
  background: var(--bg);
  padding: 60px 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(56px, 6vw, 84px);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--chalk-dim);
  line-height: 1.5;
}

/* ============ FEATURES ============ */
.features {
  padding: 80px 6vw;
  max-width: 1400px;
  margin: 0 auto;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature-reverse .feature-text { order: 2; }
.feature-reverse .feature-media { order: 1; }

.feature-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.feature-title em {
  font-style: normal;
  color: var(--orange);
}
.feature-desc {
  font-size: 17px;
  color: var(--chalk-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.feature-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--chalk);
}
.feature-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--orange);
  font-weight: 700;
}

.feature-media {
  display: flex; justify-content: center;
}
.feature-media .device-frame {
  width: min(300px, 70vw);
}

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0;
  }
  .feature-reverse .feature-text { order: 1; }
  .feature-reverse .feature-media { order: 2; }
}

/* ============ SCREENS ============ */
.screens {
  padding: 120px 6vw;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto; margin-right: auto;
}
.section-title em {
  font-style: normal;
  color: var(--orange);
}
.screens-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.screen {
  text-align: center;
  transition: transform 0.4s var(--ease-out);
}
.screen:hover { transform: translateY(-8px); }
.screen .device-frame {
  width: 100%;
  margin-bottom: 16px;
}
.screen p {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--chalk-dim);
  text-transform: uppercase;
}

/* ============ BETA ============ */
.beta {
  padding: 140px 6vw;
  position: relative;
  background:
    radial-gradient(circle at 20% 50%, rgba(250, 88, 26, 0.08), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(224, 171, 61, 0.05), transparent 50%);
}
.beta-card {
  max-width: 720px;
  margin: 0 auto 100px;
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.beta-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.beta-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--orange);
  margin-bottom: 24px;
}
.beta-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  margin-bottom: 20px;
}
.beta-title .accent { color: var(--orange); }
.beta-desc {
  font-size: 16px;
  color: var(--chalk-dim);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

.beta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.beta-form input {
  flex: 1;
  padding: 16px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--chalk);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s;
}
.beta-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(250, 88, 26, 0.15);
}
.beta-form input::placeholder { color: var(--chalk-faint); }

.beta-alt {
  font-size: 14px;
  color: var(--chalk-dim);
}
.beta-alt a {
  color: var(--orange);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.beta-alt a:hover { border-bottom-color: var(--orange); }

.beta-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 32px 24px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(250, 88, 26, 0.3);
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--chalk-dim);
}

@media (max-width: 640px) {
  .beta-card { padding: 60px 32px; }
  .beta-form { flex-direction: column; }
  .beta-form .btn { justify-content: center; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 6vw 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.footer-brand img {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.footer-tag {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--chalk-dim);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--chalk-dim);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--chalk); }
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--chalk-faint);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
