/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter/Inter-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --bg: #09090b;
  --bg-subtle: #18181b;
  --primary: #e4e4e7;
  --secondary: #9f9fa9;
  --text: var(--primary);
  --text-muted: var(--secondary);
  --border: #27272a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
}

p {
  color: var(--text-muted);
}

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

a:focus-visible {
  outline: 2px dashed var(--text);
  outline-offset: 2px;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed var(--border);
}

body.menu-open nav {
  background: #09090b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* Hamburger to X animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 101;
  padding: 24px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
  transition: color 0.2s ease;
}

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

.mobile-cta {
  margin-top: auto;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px dashed var(--text);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--text-muted);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 24px;
}

.word-highlight {
  display: inline-block;
  padding: 1px 3px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.word-highlight.active {
  background-color: var(--text);
  color: var(--bg-subtle);
}

.hero-subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Sections */
section {
  padding: 120px 0;
}

.section-divider {
  border-top: 2px dashed var(--border);
}

/* How it Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.step {
  position: relative;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9375rem;
}

kbd {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  border: 2px dashed var(--border);
  color: var(--text);
}

/* Features */
.feature {
  max-width: 640px;
}

.feature-center {
  max-width: 100%;
  text-align: center;
}

.feature h2 {
  margin-bottom: 16px;
}

.feature p {
  font-size: 1.125rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.features-grid .step {
  padding: 24px 0;
}

/* App Icons */
.app-icons-marquee {
  overflow: hidden;
  margin-top: 32px;
  position: relative;
  width: 100%;
}

.app-icons-marquee::before,
.app-icons-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.app-icons-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.app-icons-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.app-icons-track {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  will-change: transform;
  align-items: center;
  width: fit-content;
}

.app-icons-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.app-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-icon img {
  filter: grayscale(100%);
  height: 24px;
  width: 24px;
  background-color: var(--bg-subtle);
  transition: all 0.2s ease;
  border-radius: 4px;
}

.app-icon:hover {
  color: var(--text);
}

.app-icon:hover img {
  filter: grayscale(0%);
}

/* Pricing */
.pricing-section {
  border-top: 2px dashed var(--border);
  padding: 120px 0;
}

.pricing-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.pricing-subheading {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 64px;
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  border: 2px dashed var(--border);
}

.pricing-header {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 32px;
  border-bottom: 2px dashed var(--border);
}

.pricing-info {
  flex: 1;
}

.pricing-plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-plan-paid {
  position: relative;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.plan-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.pricing-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-cta-note {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: pointer;
}

.pricing-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-subtle);
  border: 2px dashed var(--border);
  transition: 0.2s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text);
  transition: 0.2s;
}

.pricing-toggle input:focus-visible+.toggle-slider {
  outline: 2px dashed var(--text);
  outline-offset: 2px;
}

.pricing-toggle input:checked+.toggle-slider {
  background-color: var(--text);
  border-color: var(--text);
}

.pricing-toggle input:checked+.toggle-slider:before {
  transform: translateX(24px);
  background-color: var(--bg);
}

.pricing-features {
  padding: 0 48px;
  list-style: none;
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--text);
  stroke: currentColor;
}

.pricing-cta-wrapper {
  padding: 48px;
  border-top: 2px dashed var(--border);
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* FAQ */
.faq-section {
  padding: 120px 0;
  border-top: 2px dashed var(--border);
}

.faq-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  color: var(--text);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 2px dashed var(--border);
}

.faq-item:first-child {
  border-top: 2px dashed var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--text-muted);
}

.faq-answer {
  padding: 0 0 24px 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta-section {
  padding: 120px 0;
  border-top: 2px dashed var(--border);
}

.cta {
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 24px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Footer */
footer {
  min-height: 64px;
  padding: 24px 0;
  border-top: 2px dashed var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-brand:focus-visible {
  outline: 2px dashed var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand-pronunciation {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-info a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.footer-info a:focus-visible {
  outline: 2px dashed var(--text);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .steps {
    gap: 40px;
    margin-top: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }

  .features-grid .step {
    padding: 0;
  }

  footer {
    min-height: 64px;
    padding: 20px 0;
  }

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

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

  .pricing-section {
    padding: 80px 0;
  }

  .pricing-heading {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .pricing-subheading {
    font-size: 1rem;
    margin-bottom: 48px;
  }

  .pricing-card {
    margin: 0 auto;
    max-width: calc(100% - 32px);
  }

  .pricing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px;
    margin-bottom: 0;
  }

  .pricing-features {
    padding: 24px;
    margin-bottom: 0;
  }

  .pricing-cta-wrapper {
    padding: 32px 24px;
  }

  .pricing-toggle-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .plan-price {
    font-size: 2rem;
  }

  /* FAQ Mobile */
  .faq-section {
    padding: 80px 0;
  }

  .faq-heading {
    font-size: 2rem;
    margin-bottom: 48px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 20px 0;
  }

  .faq-answer {
    padding-bottom: 20px;
  }

  /* Mobile Navigation */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --text-muted: #d4d4d8;
    --border: #52525b;
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  z-index: 1000;
  font-weight: 500;
}

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