@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --bg: #FAFAF7;
  --bg-dark: #141311;
  --text: #1A1A18;
  --text-light: #96938C;
  --text-on-dark: #FAFAF7;
  --accent: #E8513D;
  --accent-hover: #D4422F;
  --accent-soft: #FFF0ED;
  --border: #E6E3DC;
  --card-bg: #FFFFFF;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav__logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav__logo-mark svg { width: 16px; height: 16px; }
.nav__links { display: flex; align-items: center; gap: 2.5rem; }
.nav__link {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  text-decoration: none; opacity: 0.7; transition: opacity 0.2s;
}
.nav__link:hover { opacity: 1; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem; font-weight: 500;
  border-radius: 100px; text-decoration: none;
  transition: all 0.25s ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(232,81,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(232,81,61,0.15);
  border-radius: 100px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent);
  margin-bottom: 2.5rem;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 900px;
  margin-bottom: 2rem;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 400;
}
.hero__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: white;
  font-family: var(--sans);
  font-size: 1rem; font-weight: 500;
  border: none; border-radius: 100px;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232,81,61,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232,81,61,0.35);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem; font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* ===== DEMO VISUAL ===== */
.demo {
  padding: 0 0 8rem;
}
.demo__window {
  background: var(--bg-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.demo__toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.demo__dot:nth-child(1) { background: #FF5F57; }
.demo__dot:nth-child(2) { background: #FEBC2E; }
.demo__dot:nth-child(3) { background: #28C840; }
.demo__toolbar-title {
  flex: 1; text-align: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
  margin-right: 36px;
}
.demo__body { padding: 2.5rem; min-height: 320px; }
.demo__messages { display: flex; flex-direction: column; gap: 1.25rem; }
.demo__msg {
  display: flex; gap: 1rem;
  opacity: 0; animation: msgIn 0.5s ease forwards;
}
.demo__msg:nth-child(1) { animation-delay: 0.3s; }
.demo__msg:nth-child(2) { animation-delay: 1.2s; }
.demo__msg:nth-child(3) { animation-delay: 2.1s; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo__msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
}
.demo__msg-avatar.user { background: rgba(232,81,61,0.2); color: var(--accent); }
.demo__msg-avatar.claude { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.demo__msg-bubble {
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 500px;
}
.demo__msg.user .demo__msg-bubble {
  background: rgba(232,81,61,0.12);
  color: rgba(255,255,255,0.9);
}
.demo__msg.claude .demo__msg-bubble {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}
.demo__msg-url {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--accent); font-weight: 500;
}
.demo__msg-url::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px;
  background: #28C840; border-radius: 50%;
}

/* ===== SECTION SHARED ===== */
section { padding: 7rem 0; }
.section-label {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 540px;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.steps { padding: 7rem 0; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.step {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: all 0.35s ease;
  position: relative;
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.step__number {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}
.step__title {
  font-family: var(--serif);
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.step__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== USE CASES ===== */
.usecases { padding: 7rem 0; }
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.usecase {
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.usecase:hover {
  border-color: rgba(232,81,61,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}
.usecase__icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}
.usecase__title {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.usecase__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== FEATURES ===== */
.features {
  padding: 7rem 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.features .section-label { color: var(--accent); }
.features .section-subtitle { color: rgba(255,255,255,0.45); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.feature {
  padding: 2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s ease;
}
.feature:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.feature__icon {
  width: 40px; height: 40px;
  background: rgba(232,81,61,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.feature__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.feature__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  padding: 8rem 0;
  text-align: center;
}
.cta .section-title {
  max-width: 700px;
  margin: 0 auto 1rem;
}
.cta .section-subtitle {
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
}
.cta__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: flex; align-items: center; justify-content: space-between;
}
.footer__copy {
  font-size: 0.85rem; color: var(--text-light);
}
.footer__links { display: flex; gap: 2rem; }
.footer__link {
  font-size: 0.85rem; color: var(--text-light);
  text-decoration: none; transition: color 0.2s;
}
.footer__link:hover { color: var(--text); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .steps__grid, .features__grid { grid-template-columns: 1fr; }
  .usecases__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero__title { font-size: clamp(2.5rem, 8vw, 3.5rem); }
}
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .footer .container { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { justify-content: center; }
  .cta__actions { flex-direction: column; align-items: center; }
}
