/* =============================================
   Guitar Teacher — Landing Page Styles
   Apple-inspired, dark, elegant
   ============================================= */

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

:root {
  --bg:        #000000;
  --bg-subtle: #0a0a0a;
  --surface:   #111111;
  --surface-2: #1a1a1a;
  --border:    #222222;
  --text:      #f5f5f7;
  --text-secondary: #86868b;
  --accent:    #2997ff;
  --accent-hover: #0077ed;
  --accent-glow: rgba(41, 151, 255, 0.15);
  --purple:    #bf5af2;
  --green:     #30d158;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:    14px;
  --radius-sm: 10px;
  --max-width: 1120px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

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

.nav-logo-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.nav-cta:hover { color: #5ac8fa; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(41, 151, 255, 0.3);
}

.btn-ghost:hover {
  background: var(--accent-glow);
  border-color: rgba(41, 151, 255, 0.5);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 320px;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(41, 151, 255, 0.2);
  border-radius: 980px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Device Mockup --- */
.hero-visual {
  flex: 1;
  min-width: 300px;
  max-width: 520px;
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 120px var(--accent-glow);
}

.device-screen {
  padding: 2px;
}

.mock-ui {
  background: #0d0d0d;
  border-radius: 18px;
  overflow: hidden;
}

.mock-header {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.mock-dot:first-child { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-body {
  padding: 24px 20px 28px;
}

.mock-chord-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.mock-chord {
  flex: 1;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--border);
}

.mock-chord-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.mock-fretboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-fret {
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  position: relative;
}

.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.d1 { left: 20%; background: var(--accent); }
.d2 { left: 60%; background: var(--accent); }
.d3 { left: 40%; background: var(--accent); }
.d4 { left: 10%; background: var(--purple); }
.d5 { left: 50%; background: var(--purple); }
.d6 { left: 70%; background: var(--purple); }
.d7 { left: 30%; background: var(--green); }
.d8 { left: 70%; background: var(--green); }
.d9 { left: 15%; background: var(--green); }

.mock-progress {
  height: 4px;
  background: #1a1a1a;
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.mock-progress-bar {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 4px;
  animation: progressPulse 3s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { width: 55%; }
  50% { width: 75%; }
}

.mock-waveform {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 48px;
}

.wave-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--accent), var(--purple));
  border-radius: 3px;
  opacity: 0.6;
  animation: waveAnim 1.5s ease-in-out infinite alternate;
}

.wave-bar:nth-child(odd) { animation-delay: 0.2s; }
.wave-bar:nth-child(3n) { animation-delay: 0.5s; }
.wave-bar:nth-child(4n) { animation-delay: 0.7s; }

@keyframes waveAnim {
  0%   { transform: scaleY(0.7); }
  100% { transform: scaleY(1); }
}

/* --- Ticker --- */
.ticker {
  padding: 20px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 20s linear infinite;
  width: max-content;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.ticker-dot { color: var(--accent); }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Features --- */
.features {
  padding: 140px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--accent-glow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

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

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

/* --- Pull Quote --- */
.quote-section {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.pull-quote {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text);
  font-style: italic;
}

.quote-mark {
  color: var(--accent);
  font-style: normal;
}

/* --- Devices/Platforms Section --- */
.devices-section {
  padding: 140px 0;
}

.platform-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.25s, color 0.25s;
}

.platform-badge svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color 0.25s;
}

.platform-badge:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.platform-badge:hover svg { color: var(--text); }

/* --- Signup Section --- */
.signup-section {
  padding: 140px 0;
  background: var(--bg-subtle);
}

.signup-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 980px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

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

.form-row input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
  padding: 14px 28px;
  min-width: 160px;
}

.btn-loader { display: none; }

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: inline-flex; }

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.form-success {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 24px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-weight: 500;
  display: none;
}

.form-success.show {
  display: flex;
}

.form-error {
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  border-radius: var(--radius-sm);
  color: #ff453a;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-error.show {
  display: block;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer-logo .nav-logo-icon {
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 24px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #555;
}

/* --- Animations / Reveal --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 60px;
    gap: 48px;
  }

  .hero-content { max-width: 100%; }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-visual { max-width: 100%; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .feature-card { text-align: center; }

  .feature-icon { margin: 0 auto 20px; }

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

  .btn-submit {
    width: 100%;
  }

  .platform-badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.25rem;
  }

  .section-headline {
    font-size: 1.75rem;
  }

  .pull-quote {
    font-size: 1.15rem;
  }
}
