/* === INNERLY — Dark Premium Personality AI === */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --fg: #e8e6f0;
  --fg-muted: #8a879e;
  --fg-dim: #5a576e;
  --accent: #7c6aef;
  --accent-glow: rgba(124, 106, 239, 0.15);
  --accent-bright: #9b8aff;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(80px, 12vw, 140px);
}

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

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

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(124,106,239,0.3);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,106,239,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
  margin-bottom: 24px;
  font-weight: 500;
}

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

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero orbs */
.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,239,0.08), transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.orb:first-child {
  width: 300px;
  height: 300px;
  top: 15%;
  right: 10%;
}

.orb-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 8%;
  animation-delay: -3s;
  background: radial-gradient(circle, rgba(196,181,253,0.06), transparent 70%);
}

.orb-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 25%;
  animation-delay: -5s;
  background: radial-gradient(circle, rgba(124,106,239,0.05), transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* === SECTIONS SHARED === */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* === HOW SECTION === */
.how {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.step {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  transition: border-color 0.3s, background 0.3s;
}

.step:hover {
  border-color: rgba(124,106,239,0.2);
  background: var(--bg-card);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === ANALYSIS SECTION === */
.analysis {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.analysis-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: transform 0.3s, border-color 0.3s;
}

.analysis-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,106,239,0.25);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent-bright);
  margin-bottom: 16px;
  display: block;
}

.analysis-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.analysis-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === VOICE SECTION === */
.voice {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.voice-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.voice-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voice-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.vf-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.voice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 120px;
}

.wave-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
  opacity: 0.6;
}

.wave-bar:nth-child(1)  { height: 20%; animation-delay: 0s; }
.wave-bar:nth-child(2)  { height: 45%; animation-delay: 0.1s; }
.wave-bar:nth-child(3)  { height: 70%; animation-delay: 0.2s; }
.wave-bar:nth-child(4)  { height: 90%; animation-delay: 0.3s; }
.wave-bar:nth-child(5)  { height: 60%; animation-delay: 0.4s; }
.wave-bar:nth-child(6)  { height: 100%; animation-delay: 0.5s; }
.wave-bar:nth-child(7)  { height: 75%; animation-delay: 0.6s; }
.wave-bar:nth-child(8)  { height: 50%; animation-delay: 0.7s; }
.wave-bar:nth-child(9)  { height: 85%; animation-delay: 0.8s; }
.wave-bar:nth-child(10) { height: 40%; animation-delay: 0.9s; }
.wave-bar:nth-child(11) { height: 65%; animation-delay: 1.0s; }
.wave-bar:nth-child(12) { height: 30%; animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.4); opacity: 0.8; }
}

/* === CLOSING === */
.closing {
  position: relative;
  padding: var(--section-pad) 32px;
  text-align: center;
  overflow: hidden;
}

.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.closing-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,106,239,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-tagline { display: none; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  
  .analysis-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .voice-layout { grid-template-columns: 1fr; gap: 40px; }
  .voice-visual { order: -1; }

  .section-inner { padding: 0 20px; }
  .how, .analysis, .voice { padding: 60px 0; }
  .closing { padding: 60px 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
}