/* TunedAI — landing + legal shared styles
   Derived from the canonical design system (Tuned Blue gradient on warm near-black,
   liquid glass surfaces, morning bloom default). */

:root {
  --canvas: #0A0A12;
  --canvas-deep: #08080F;

  --glass-fill: rgba(255, 255, 255, 0.04);
  --glass-fill-strong: rgba(255, 255, 255, 0.08);
  --glass-fill-accent: rgba(91, 143, 249, 0.10);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-accent: rgba(91, 143, 249, 0.30);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 30%);

  --text-primary: #F4F4F8;
  --text-secondary: rgba(244, 244, 248, 0.55);
  --text-tertiary: rgba(244, 244, 248, 0.35);
  --text-on-accent: #FFFFFF;

  --tuned-gradient: linear-gradient(135deg, #5B8FF9 0%, #7B6FF0 100%);
  --tuned-gradient-vertical: linear-gradient(180deg, #5B8FF9 0%, #7B6FF0 100%);
  --tuned-text: #7B9BFF;
  --tuned-glow: rgba(107, 127, 244, 0.40);

  --radius-card-hero: 32px;
  --radius-card: 24px;
  --radius-card-small: 20px;
  --radius-thumb: 14px;

  --gap-screen: 20px;
  --gap-section: 64px;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Morning bloom — default. Single radial behind all content. */
body::before {
  content: "";
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 80vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(91, 143, 249, 0.12), rgba(10, 10, 18, 0) 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: bloom-breath 8s ease-in-out infinite;
}

@keyframes bloom-breath {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .wave-bar { animation: none !important; }
}

/* Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gap-screen);
}

.container-wide {
  max-width: 960px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: 44px;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

@media (max-width: 480px) {
  h1 { font-size: 36px; letter-spacing: -0.8px; }
}

h2 {
  font-size: 28px;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.20;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

p.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0.85;
}

a {
  color: var(--tuned-text);
  text-decoration: none;
  transition: opacity 200ms ease;
}

a:hover { opacity: 0.75; }

a:focus-visible {
  outline: 2px solid var(--tuned-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  padding: 24px var(--gap-screen);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.wordmark:hover { opacity: 1; }

.wordmark .mark {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(107, 127, 244, 0.28));
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 48px 0 80px;
  text-align: center;
}

.hero h1 {
  margin-top: 32px;
  margin-bottom: 20px;
}

.hero .lead {
  max-width: 520px;
  margin: 0 auto 40px;
}

.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 9999px;
  background: var(--tuned-gradient);
  color: var(--text-on-accent);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 40px var(--tuned-glow);
  transition: transform 150ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

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

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 9999px;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 0.5px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease;
}

.btn-secondary:hover {
  background: var(--glass-fill-strong);
  opacity: 1;
}

/* Waveform mark */
.waveform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 96px;
}

.wave-bar {
  width: 6px;
  border-radius: 9999px;
  background: var(--tuned-gradient-vertical);
  box-shadow: 0 0 12px var(--tuned-glow);
  transform-origin: center;
  animation: wave-pulse 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 28px; animation-delay: 0s;    }
.wave-bar:nth-child(2) { height: 56px; animation-delay: 0.10s; }
.wave-bar:nth-child(3) { height: 88px; animation-delay: 0.20s; }
.wave-bar:nth-child(4) { height: 96px; animation-delay: 0.30s; }
.wave-bar:nth-child(5) { height: 72px; animation-delay: 0.40s; }
.wave-bar:nth-child(6) { height: 44px; animation-delay: 0.50s; }
.wave-bar:nth-child(7) { height: 32px; animation-delay: 0.60s; }

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(1);   opacity: 1; }
  50%      { transform: scaleY(0.5); opacity: 0.8; }
}

/* Feature grid */
.features {
  padding: 24px 0 80px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  backdrop-filter: blur(60px) saturate(180%);
  border: 0.5px solid var(--glass-border);
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: var(--glass-sheen);
  pointer-events: none;
}

.feature .icon {
  width: 32px;
  height: 32px;
  color: var(--tuned-text);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 15px;
  line-height: 1.45;
}

/* Legal pages */
.legal-page {
  padding: 32px 0 96px;
}

.legal-page .eyebrow {
  margin-bottom: 12px;
}

.legal-page h1 {
  font-size: 36px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page li::marker {
  color: var(--text-tertiary);
}

.legal-page .panel {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius-card-small);
  background: var(--glass-fill-accent);
  border: 0.5px solid var(--glass-border-accent);
  font-size: 15px;
}

.legal-page .panel p { color: var(--text-primary); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px var(--gap-screen) 48px;
  max-width: 960px;
  margin: 0 auto;
  border-top: 0.5px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}
