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

:root {
  --bg:       #0a0a0c;
  --bg2:      #131009;
  --surface:  #1c1810;
  --border:   #2a2a35;
  --coral:    #d4553a;
  --coral-l:  #e87055;
  --coral-bg: rgba(212,85,58,0.12);
  --sage:     #6a8a48;
  --sage-l:   #7fa356;
  --slate:    #4a7499;
  --slate-l:  #5a8db8;
  --lcd-green:#7a8a50;
  --lcd-blue: #4a6580;
  --amber:    #f5a623;
  --text:     #f0ead8;
  --muted:    #6b6b80;
  --warm:     #c8b898;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* subtle warm noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.9))
          drop-shadow(0 0 3px rgba(255,255,255,0.6));
}

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.nav-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: var(--coral);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-store:hover { background: var(--coral-l); transform: translateY(-1px); }
.btn-store .soon {
  background: rgba(255,255,255,0.25);
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 2rem 5rem;
  overflow: hidden;
}

/* warm radial bg glow */
.hero::after {
  content: '';
  position: absolute;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(212,85,58,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--coral-bg);
  border: 1px solid rgba(212,85,58,0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
}

h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

h1 em {
  font-style: normal;
  color: var(--coral);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--warm);
  max-width: 520px;
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  background: var(--coral);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--coral-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,85,58,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: transparent;
  color: var(--warm);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--warm); color: var(--text); }

/* ── FLOATING SCREENSHOTS ────────────────────────── */
.hero-screenshots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.float-shot {
  position: absolute;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.5s ease;
}

.float-shot img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

/* Positioning + sizing for each shot */
.float-shot.s1 { top: 8%; left: 5%; width: 90px; transform: rotate(-8deg); }
.float-shot.s2 { top: 12%; right: 8%; width: 140px; transform: rotate(6deg); }
.float-shot.s3 { bottom: 15%; left: 10%; width: 110px; transform: rotate(4deg); }
.float-shot.s4 { bottom: 20%; right: 5%; width: 95px; transform: rotate(-5deg); }
.float-shot.s5 { top: 40%; left: 3%; width: 85px; transform: rotate(12deg); }
.float-shot.s6 { top: 45%; right: 2%; width: 120px; transform: rotate(-10deg); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.float-shot:nth-child(odd)  { animation: float 6s ease-in-out infinite; }
.float-shot:nth-child(even) { animation: float 8s ease-in-out infinite 1s; }

/* ── SECTION SCAFFOLDING ─────────────────────────── */
section {
  padding: 6rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: var(--coral-bg);
  border: 1px solid rgba(212,85,58,0.25);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--warm);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── SCREENSHOTS LAYOUT (Dual Carousels) ─────────── */
.shot-layout {
  display: flex;
  gap: 5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: pointer;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Watch carousel: fitted border like phone */
.carousel.watch {
  width: 198px;
  height: 242px;
  border-radius: 28px;
}

.carousel.watch .carousel-track {
  border-radius: 28px;
  overflow: hidden;
}

.carousel.watch .carousel-item img {
  object-fit: contain;
  background: #000;
}

/* iPhone carousel: standard phone frame */
.carousel.iphone {
  width: 280px;
  height: 600px;
  border-radius: 36px;
}

/* Responsive */
@media (max-width: 768px) {
  .shot-layout {
    gap: 3rem;
  }
  .carousel.watch {
    width: 200px;
    height: 240px;
  }
  .carousel.iphone {
    width: 240px;
    height: 520px;
  }
}

@media (max-width: 480px) {
  .shot-layout {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ── FEATURES ─────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(212,85,58,0.3);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--warm);
  line-height: 1.65;
}

/* ── COLORS SECTION ──────────────────────────────── */
.color-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-chip {
  width: 52px; height: 52px;
  border-radius: 14px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.2),
    0 6px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
}
.color-chip:hover { transform: scale(1.1) translateY(-3px); }
.color-chip::after {
  content: attr(title);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto 6rem;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(212,85,58,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-banner p  { color: var(--warm); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.9))
          drop-shadow(0 0 4px rgba(255,255,255,0.5));
  opacity: 0.9;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--warm);
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.social-btn:hover { border-color: var(--coral); color: var(--text); }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.social-icon:hover { border-color: var(--coral); color: var(--text); transform: translateY(-2px); }

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
}

/* ── FULL-WIDTH SECTION WRAPPER ──────────────────── */
.full-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.full-section > .inner { max-width: 1120px; margin: 0 auto; }

/* ── HAMBURGER ────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 501;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10,10,12,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 499;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--warm);
  text-decoration: none;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.mobile-menu a:hover {
  color: var(--text);
  background: var(--coral-bg);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-link { display: none; }
  .btn-store { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }

  h1 { font-size: 2.4rem; }
  section { padding: 4rem 1.25rem; }
  .full-section { padding: 4rem 1.25rem; }
  .hero { padding: 100px 1.25rem 3rem; min-height: auto; }
  .hero-screenshots { opacity: 0.25; }
  .float-shot.s1, .float-shot.s5 { display: none; }

  .features { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.25rem; }
  .card h3 { font-size: 0.9rem; }
  .card p { font-size: 0.8rem; }

  .color-strip { gap: 0.6rem; justify-content: center; }
  .color-chip { width: 38px; height: 38px; border-radius: 10px; }
  .color-chip::after { font-size: 0; }

  .section-sub { font-size: 0.9rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { gap: 0.625rem; }
  .btn-primary, .btn-ghost { font-size: 0.85rem; padding: 0.7rem 1.25rem; }

  .cta-banner { padding: 2.5rem 1.25rem; }
  .social-row { gap: 0.5rem; }
  .social-btn { font-size: 0.7rem; padding: 0.4rem 0.75rem; }

  .carousel.iphone { width: 220px; height: 475px; border-radius: 28px; }
  .carousel.watch { width: 160px; height: 196px; border-radius: 22px; }
}

/* ── GUIDE PAGE ────────────────────────────────── */
.guide-layout {
  display: flex;
  gap: 0;
  min-height: 100vh;
  padding-top: 60px;
}

.guide-sidebar {
  position: sticky;
  top: 60px;
  width: 260px;
  min-width: 260px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.guide-sidebar a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.15rem;
  transition: color 0.15s, background 0.15s;
}

.guide-sidebar a:hover { color: var(--text); }
.guide-sidebar a.active {
  color: var(--coral);
  background: var(--coral-bg);
}

.guide-sidebar .toc-sub {
  padding-left: 1rem;
  font-size: 0.75rem;
}

.guide-content {
  flex: 1;
  max-width: 820px;
  padding: 3rem 3rem 6rem;
}

.guide-content h2 {
  scroll-margin-top: 80px;
  margin-top: 3rem;
}

.guide-content h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 80px;
}

.guide-content h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--warm);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.guide-content p {
  color: var(--warm);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.guide-content ul, .guide-content ol {
  color: var(--warm);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.guide-content li {
  margin-bottom: 0.3rem;
}

.guide-content pre {
  background: #1a2a1a;
  border: 1px solid #2a3a2a;
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  line-height: 1.4;
  color: #7a8a50;
}

.guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.guide-content th {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
}

.guide-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  color: var(--warm);
}

.guide-content tr:hover td {
  background: rgba(212,85,58,0.04);
}

.guide-content code {
  font-family: 'VT323', monospace;
  font-size: 1.05em;
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--coral-l);
}

.guide-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.guide-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.guide-screenshot {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  max-width: 280px;
  margin: 1.5rem 0;
}

.guide-screenshot.watch {
  max-width: 180px;
}

.guide-mobile-toggle {
  display: none;
  position: sticky;
  top: 60px;
  z-index: 100;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--warm);
  cursor: pointer;
  border: none;
}

.guide-mobile-toggle::after {
  content: ' ▾';
}

@media (max-width: 900px) {
  .guide-sidebar {
    display: none;
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 60vh;
    z-index: 99;
    border-right: none;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .guide-sidebar.open { display: block; }
  .guide-mobile-toggle { display: block; }
  .guide-content { padding: 2rem 1.25rem 4rem; }
}
