/* ==========================================================================
   OrthoTune Landing Page Styles
   Simple, elegant, robust
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Theme
   -------------------------------------------------------------------------- */

:root {
  /* Colors - Light mode */
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;

  /* Sizing */
  --max-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --border: #262626;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

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

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 250, 0.8);
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(10, 10, 10, 0.8);
  }
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero .accent {
  color: var(--accent);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow);
}

.cta-button:active {
  transform: translateY(0);
}

.apple-icon {
  width: 20px;
  height: 20px;
}

.price {
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Preview Section
   -------------------------------------------------------------------------- */

.preview {
  display: flex;
  justify-content: center;
  padding: 3rem 0 5rem;
}

.window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red {
  background: #ff5f57;
}
.window-dot.yellow {
  background: #ffbd2e;
}
.window-dot.green {
  background: #28ca41;
}

.tuner-preview {
  padding: 2rem;
  text-align: center;
}

.note {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.meter {
  margin-bottom: 1.5rem;
}

.meter-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.meter-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: left 0.3s ease;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.in-tune-label {
  color: var(--accent);
}

.frequency {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.status {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  display: inline-block;
}

.status.in-tune {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.feature:hover {
  background: var(--bg-secondary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* --------------------------------------------------------------------------
   Tunings Section
   -------------------------------------------------------------------------- */

.tunings {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.tunings h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.tuning-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tuning-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tuning-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Final CTA Section
   -------------------------------------------------------------------------- */

.final-cta {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.final-cta .price {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* --------------------------------------------------------------------------
   Privacy Page Specific
   -------------------------------------------------------------------------- */

.privacy-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  max-width: 680px;
}

.privacy-page .back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  transition: color var(--transition);
}

.privacy-page .back-link:hover {
  color: var(--accent);
}

.privacy-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.privacy-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.privacy-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.privacy-page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.privacy-page ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-page li {
  margin-bottom: 0.5rem;
}

.privacy-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-page a:hover {
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  main {
    padding: 0 1.5rem;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .window {
    max-width: 280px;
  }

  .note {
    font-size: 3rem;
  }
}
