/* === Design Tokens === */
:root {
  --bg: #0A0A09;
  --bg-light: #1A1A18;
  --accent: #F5C518;
  --text: #F5F5F0;
  --text-muted: #aaaaaa;
  --text-dim: #666666;
  --text-xdim: #555555;
  --sep: #1E1E1C;
  --border: #333333;
  --surface: #141412;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 120% 140% at 50% 30%, #1A1A18 0%, #0A0A09 100%),
    linear-gradient(0deg, #18160E06 0%, transparent 50%, #18160E08 100%);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border-width: 1.5px;
}

.brand-wokky {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.brand-tokky {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  border: 1.5px solid var(--accent);
  border-radius: 28px;
  padding: 12px 24px;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

/* === Shared === */
.tag {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
}

.sep {
  height: 1px;
  background: var(--sep);
  width: 100%;
}

.sep-v {
  width: 1px;
  background: var(--sep);
  align-self: stretch;
  flex-shrink: 0;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.05;
}

.section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Hero === */
.hero {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 60px 80px 80px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 618px;
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1 span {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
}

.h1-white {
  color: var(--text);
}

.h1-gold {
  color: var(--accent);
}

.btn-mobile-text {
  display: none;
}

.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 32px;
  border-radius: 28px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  font-size: 16px;
  letter-spacing: 2px;
  padding: 16px 40px;
}

.link-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.link-secondary:hover {
  color: var(--text);
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 48px;
  flex: 1;
  justify-content: center;
}

.qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-box {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.qr-box-lg {
  width: 160px;
  height: 160px;
  font-size: 32px;
}

.qr-label {
  font-size: 13px;
  color: #888;
}

.phone-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-casing {
  width: 280px;
  height: 572px;
  background: #000;
  border-radius: 44px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 44px;
}

.dynamic-island {
  width: 90px;
  height: 28px;
  background: #111;
  border-radius: 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

/* === Features === */
.features {
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.features .tag {
  margin-bottom: -36px;
}

/* Desktop: single row of all 4 with vertical seps */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.feature-row {
  display: flex;
  gap: 40px;
  width: 100%;
}

.feature-sep-h {
  display: none;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  color: var(--accent);
  stroke: var(--accent);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Desktop: feature rows side by side in a single row */
@media (min-width: 769px) {
  .feature-grid {
    flex-direction: row;
    gap: 40px;
  }

  .feature-row {
    flex: 1;
  }

  .feature-sep-h {
    display: none;
  }
}

/* === How It Works === */
.how-it-works {
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.how-it-works .tag {
  margin-bottom: -36px;
}

.steps-row {
  display: flex;
  gap: 40px;
  width: 100%;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-sep {
  width: 1px;
  background: var(--sep);
  align-self: stretch;
  flex-shrink: 0;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Dial icon */
.step-icon {
  width: 64px;
  height: 64px;
  position: relative;
  flex-shrink: 0;
}

.dial-outer {
  position: absolute;
  top: 4px; left: 4px;
  width: 55px; height: 55px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.dial-knob {
  position: absolute;
  top: 11px; left: 11px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #444 0%, #222 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.dial-marker {
  position: absolute;
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
  top: 39px; left: 42px;
  transform: rotate(45deg);
}

.dial-notch {
  position: absolute;
  width: 2px; height: 6px;
  background: #888;
  border-radius: 1px;
}

.dial-notch.n0   { top: 1px;  left: 31px; }
.dial-notch.n90  { top: 31px; right: 1px; transform: rotate(90deg); }
.dial-notch.n180 { bottom: 1px; left: 31px; }
.dial-notch.n270 { top: 31px; left: 1px; transform: rotate(90deg); }
.dial-notch.n45  { top: 9px;  right: 9px; transform: rotate(45deg); }
.dial-notch.n135 { bottom: 9px; right: 9px; transform: rotate(-45deg); }
.dial-notch.n225 { bottom: 9px; left: 9px; transform: rotate(45deg); }
.dial-notch.n315 { top: 9px;  left: 9px; transform: rotate(-45deg); }
.dial-notch.gold { background: var(--accent); }

/* PTT Button icon */
.ptt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptt-outer {
  position: absolute;
  top: 2px; left: 2px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #3A2E00;
  border: 1.5px solid #8A6A08;
}

.ptt-inner {
  position: absolute;
  top: 10px; left: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #D4AA10 0%, #A88008 100%);
}

.ptt-icon {
  position: absolute;
  top: 22px; left: 22px;
  color: var(--bg);
  stroke: var(--bg);
}

/* Speaker icon */
.speaker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-outer {
  position: absolute;
  top: 4px; left: 4px;
  width: 55px; height: 55px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.speaker-body {
  position: absolute;
  top: 10px; left: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #2A2A28 0%, #1A1A18 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.speaker-mid {
  position: absolute;
  top: 15px; left: 15px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0.75px solid var(--border);
}

.speaker-inner {
  position: absolute;
  top: 20px; left: 20px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0.75px solid var(--border);
}

.speaker-cone {
  position: absolute;
  top: 24px; left: 24px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #3A3A38 0%, #222220 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.speaker-cap {
  position: absolute;
  top: 28px; left: 28px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, #C49A0E 100%);
  box-shadow: 0 0 3px rgba(245, 197, 24, 0.2);
}

/* === CTA Section === */
.cta-section {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-headline {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 600px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* === Footer === */
.footer {
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-brand .brand-wokky,
.footer-brand .brand-tokky {
  font-size: 16px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-xdim);
}

/* ============================================
   MOBILE (max-width: 768px)
   Matches Pencil mobile mockup exactly
   ============================================ */
@media (max-width: 768px) {
  /* --- Nav --- */
  .nav {
    padding: 16px 20px;
  }

  .nav-right {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border-width: 1px;
  }

  .brand-wokky,
  .brand-tokky {
    font-size: 16px;
  }

  /* --- Hero --- */
  .hero {
    flex-direction: column;
    padding: 32px 20px 48px;
    gap: 32px;
  }

  .hero-left {
    max-width: 100%;
    gap: 32px;
  }

  h1 span {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .subtitle {
    max-width: 100%;
  }

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

  .btn-desktop-text {
    display: none;
  }

  .btn-mobile-text {
    display: inline;
  }

  .cta-row .btn-primary {
    justify-content: center;
    font-size: 16px;
    letter-spacing: 2px;
    padding: 16px;
  }

  .cta-row .link-secondary {
    display: none;
  }

  .hero-right {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
  }

  /* Hide QR in hero on mobile */
  .hero-qr {
    display: none;
  }

  .phone-casing {
    width: 240px;
    height: 490px;
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 38px;
  }

  .dynamic-island {
    width: 80px;
    height: 24px;
    border-radius: 12px;
    top: 10px;
  }

  /* --- Features --- */
  .features {
    padding: 48px 20px;
    gap: 32px;
  }

  .features .tag {
    margin-bottom: -20px;
  }

  .section-title {
    font-size: 36px;
  }

  /* 2x2 grid with separators */
  .feature-grid {
    flex-direction: column;
    gap: 0;
  }

  .feature-row {
    gap: 20px;
  }

  .feature-sep-h {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0;
  }

  .feature-sep-h::before,
  .feature-sep-h::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sep);
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 16px;
  }

  /* --- How It Works --- */
  .how-it-works {
    padding: 48px 20px;
    gap: 32px;
  }

  .how-it-works .tag {
    margin-bottom: -20px;
  }

  .how-it-works .section-title {
    font-size: 40px;
  }

  .steps-row {
    flex-direction: column;
    gap: 24px;
  }

  /* Steps: horizontal layout per step (icon left, text right) */
  .step {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  /* Separator becomes horizontal line between steps */
  .step-sep {
    width: 100%;
    height: 1px;
    background: var(--sep);
  }

  .step h3 {
    font-size: 16px;
  }

  .step p {
    font-size: 15px;
  }

  /* --- CTA --- */
  .cta-section {
    padding: 48px 20px;
    gap: 24px;
  }

  .cta-headline {
    font-size: 40px;
  }

  .cta-sub {
    font-size: 16px;
  }

  /* Hide QR in CTA on mobile */
  .cta-qr {
    display: none;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 16px;
  }

  /* --- Footer --- */
  .footer {
    padding: 32px 20px;
    gap: 20px;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-left {
    gap: 8px;
  }

  /* No icon in mobile footer */
  .footer-brand .nav-icon {
    display: none;
  }

  .footer-right {
    flex-wrap: wrap;
    gap: 20px;
  }
}
