/* ---- BASE ---- */
:root {
  --bg: #08080a;
  --surface: #0f0f12;
  --border: #1a1a1f;
  --text: #e4e4e0;
  --text-dim: #6b6b73;
  --text-faint: #3b3b42;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
}

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

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

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

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

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, backdrop-filter 0.5s;
}

nav.scrolled {
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.logo { display: inline-flex; text-decoration: none; }
.logo svg { display: block; }

.logo-eye {
  animation: blink 4s 1.5s infinite;
  transform-origin: center 90px;
}

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.05); }
  96% { transform: scaleY(1); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link:hover { color: var(--text); }

/* ---- BUTTONS ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: 11px 24px;
  border-radius: 100px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(228, 228, 224, 0.08);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::after {
  left: 160%;
}

/* ---- FOOTER ---- */
footer {
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-dim); }

/* ---- CONTENT PAGES (terms, privacy, etc.) ---- */
.page-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 120px;
  width: 100%;
}

main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

main .effective {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

main .intro {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

main hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

main h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  margin-top: 40px;
}

main p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

main strong {
  color: var(--text);
  font-weight: 500;
}

main ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

main ul li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

main ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
}

main a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}
main a:hover { color: var(--text-dim); }

main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

main th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

main td {
  color: var(--text-dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  vertical-align: top;
}

/* ---- GRAIN ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ---- DOWNLOAD BUTTONS ---- */
.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-appstore {
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  pointer-events: none;
  opacity: 0.55;
}
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.btn-appstore-label { font-size: 9px; font-weight: 400; letter-spacing: 0.01em; }
.btn-appstore-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }

.link-web {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.link-web:hover { color: var(--text); }
.link-web span {
  border-bottom: 1px solid var(--text-faint);
  padding-bottom: 1px;
  transition: border-color 0.3s;
}
.link-web:hover span { border-color: var(--text-dim); }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: #6d28d9;
  opacity: 0.04;
  top: 25%;
  left: 30%;
  animation: drift1 25s ease-in-out infinite;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: #b45309;
  opacity: 0.035;
  top: 35%;
  right: 25%;
  animation: drift2 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-25px, 20px); }
  66% { transform: translate(15px, -30px); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  position: relative;
  z-index: 2;
}

.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(32px);
  animation: revealLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .line:nth-child(1) { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.5s; }

.hero h1 em { font-style: italic; }

.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 340px;
  margin-top: 32px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: revealLine 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  margin-top: 44px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: revealLine 0.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta .btn-primary {
  font-size: 14px;
  padding: 14px 32px;
}

.scroll-line {
  position: absolute;
  bottom: 36px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-faint));
  opacity: 0;
  animation: revealLine 0.6s 1.8s forwards, float 2.5s 2.4s ease-in-out infinite;
}

@keyframes revealLine {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}

/* ---- DEMO ---- */
.demo {
  padding: 40px 24px 160px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.demo-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.demo-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(160deg, rgba(255,255,255,0.06), transparent 40%, transparent 60%, rgba(255,255,255,0.02));
  z-index: -1;
  transition: opacity 0.5s;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.demo-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.demo-status {
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.demo-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}

.demo-msg {
  font-size: 14px;
  line-height: 1.55;
  max-width: 85%;
}

.demo-msg.user {
  align-self: flex-end;
  color: var(--text);
}

.demo-msg.ai {
  align-self: flex-start;
  color: var(--text-dim);
}

.demo-msg.status {
  align-self: center;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.5s infinite;
}

.cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--text-dim);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- SECTIONS ---- */
.section {
  padding: 120px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 48px;
}

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

/* ---- STEPS ---- */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--text-faint);
  transition: color 0.3s;
}

.step:hover .step-num {
  color: var(--text-dim);
}

.step-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 440px;
}

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.4s;
}

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

.feature h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- PRICING ---- */
.pricing {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 36px;
}

.pricing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 32px;
}

.pricing-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pricing-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.pricing-point strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.pricing-point p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---- CTA ---- */
.cta {
  padding: 160px 24px 120px;
  text-align: center;
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta h2 em { font-style: italic; }

.cta p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 44px;
}

.cta .btn-primary {
  font-size: 14px;
  padding: 14px 34px;
}

/* ---- SUBSCRIBE ---- */
.subscribe {
  padding: 0 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.subscribe-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s;
}

.subscribe-form:focus-within { border-color: var(--text-faint); }

.subscribe-form input {
  flex: 1;
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: 10px 0 0 10px;
  outline: none;
}

.subscribe-form input::placeholder { color: var(--text-faint); }

.subscribe-form button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text-dim);
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
}
.subscribe-form button:hover { color: var(--text); }

.subscribe-success {
  font-size: 13px;
  color: var(--text-dim);
  display: none;
}

/* ---- ELEVENLABS GRANT ---- */
.elevenlabs {
  padding: 0 24px 80px;
  display: flex;
  justify-content: center;
}

.elevenlabs img {
  width: 120px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.elevenlabs img:hover {
  opacity: 0.8;
}

/* ---- 404 ---- */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(80px, 15vw, 160px);
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text-faint);
}

.not-found p {
  margin-bottom: 40px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  nav { padding: 20px 20px; }
  .nav-link { display: none; }
  main { padding: 100px 20px 80px; }
  .hero { padding: 100px 20px 80px; }
  .section { padding: 80px 20px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .step-num { font-size: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta { padding: 100px 20px 80px; }
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    text-align: center;
  }
}
