/* ===== Design Tokens ===== */
:root {
  --bg: #000000;
  --surface: #111111;
  --accent: #FF5500;
  --accent-hover: #E64B00;
  --accent-glow: rgba(255, 85, 0, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --text-disabled: #7C7C7C;
  --divider: #1F1F1F;
  --z2: #3B82F6;
  --z6: #EF4444;

  --radius-card: 12px;
  --radius-btn: 28px;
  --btn-height: 56px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-disabled); border-radius: 4px; }

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #C850C0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius-btn);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #C850C0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  padding-left: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  background: var(--accent);
  color: #000000 !important;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--accent-hover);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

/* ===== Waitlist Form ===== */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  min-height: var(--btn-height);
  border: 1px solid var(--divider);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-disabled);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  min-height: var(--btn-height);
  padding: 16px 32px;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--accent-hover);
}

.waitlist-form button:active {
  transform: scale(0.97);
}

.waitlist-note {
  font-size: 0.85rem;
  color: var(--text-disabled);
  position: relative;
  z-index: 1;
}

/* ===== Hero Phones ===== */
.hero__phones {
  margin: 64px auto 0;
  display: flex;
  gap: 32px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.screenshot-placeholder {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--text-disabled);
  font-size: 0.9rem;
  overflow: hidden;
  position: relative;
}

.screenshot-placeholder--phone {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  border-width: 2px;
}

.screenshot-placeholder__icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.screenshot-placeholder__label {
  font-weight: 500;
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin: 0 auto;
}

/* ===== Pillars (Why) ===== */
.pillars {
  border-top: 1px solid var(--divider);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.pillar-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.pillar-card__icon--privacy { background: rgba(255, 85, 0, 0.15); }
.pillar-card__icon--training { background: rgba(34, 197, 94, 0.15); }
.pillar-card__icon--offline { background: rgba(59, 130, 246, 0.15); }

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Feature Blocks ===== */
.features {
  border-top: 1px solid var(--divider);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}

.feature-block + .feature-block {
  border-top: 1px solid var(--divider);
}

.feature-block--reverse {
  direction: rtl;
}

.feature-block--reverse > * {
  direction: ltr;
}

.feature-block:has(.feature-block__img) {
  position: relative;
}

.feature-block:has(.feature-block__img)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.35;
}

.feature-block__visual {
  display: flex;
  justify-content: center;
}

.feature-block__img {
  max-width: 75%;
  height: auto;
  border-radius: 12px;
}

.feature-block__text .section-desc {
  margin-top: 0;
}

/* ===== Mockup Images ===== */
.mockup-img {
  width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* ===== Coming Soon Phone Placeholder ===== */
.phone-frame--soon {
  width: 280px;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #1a1a1a;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 3px #0a0a0a;
}

.phone-frame__coming-soon {
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CTA Section ===== */
.cta {
  border-top: 1px solid var(--divider);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

.cta .section-title {
  position: relative;
  z-index: 1;
}

.cta .section-desc {
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

/* ===== Success Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #C850C0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 24px;
}

.modal__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal__text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.modal__bonus {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.modal__btn {
  height: var(--btn-height);
  padding: 0 48px;
  background: var(--accent);
  color: #000000;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.modal__btn:hover {
  background: var(--accent-hover);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--divider);
  padding: 40px 0;
}

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

.footer__copy {
  color: var(--text-disabled);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .feature-block--reverse {
    direction: ltr;
  }

  .feature-block__text .section-desc {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--divider);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"] {
    width: 100%;
  }

  .waitlist-form button {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .feature-block {
    padding: 60px 0;
  }

  .screenshot-placeholder--phone {
    width: 240px;
  }

  .mockup-img {
    width: 240px;
  }

  .phone-frame--soon {
    width: 240px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 72px 0;
  }
}
