@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --bg: #0f1513;
  --bg-2: #18211d;
  --accent: #f2a14a;
  --accent-2: #e46d5a;
  --mint: #69d2b4;
  --text: #f5f0e9;
  --muted: #b9b2a7;
  --card: #121b18;
  --stroke: #2a3632;
  --shadow: rgba(5, 6, 8, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, #1e2c26 0%, transparent 60%),
    radial-gradient(900px 500px at 80% 10%, #2d1f1a 0%, transparent 55%),
    linear-gradient(140deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -30vh -20vw;
  background: radial-gradient(circle at 60% 40%, rgba(105, 210, 180, 0.12), transparent 55%),
    radial-gradient(circle at 40% 30%, rgba(242, 161, 74, 0.12), transparent 50%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(9, 13, 12, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 72px clamp(20px, 6vw, 90px) 56px;
}

.hero-text h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  margin: 12px 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--mint);
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #14100d;
  box-shadow: 0 12px 30px rgba(228, 109, 90, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--text);
}

.hero-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-header {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 12px;
}

pre {
  margin: 0 0 18px;
  padding: 16px;
  background: #0b100f;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: #fbd9b2;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(105, 210, 180, 0.12);
  color: var(--mint);
  font-size: 0.8rem;
  border: 1px solid rgba(105, 210, 180, 0.35);
}

.section-title {
  padding: 0 clamp(20px, 6vw, 90px);
}

.section-title h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
  margin-top: 0;
}

.features {
  padding: 40px 0 20px;
}

.best-practices {
  padding: 30px 0 10px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 24px clamp(20px, 6vw, 90px);
}

.feature {
  background: rgba(18, 27, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: 16px;
  transition: transform 0.25s ease, border 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 161, 74, 0.4);
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.usage {
  padding: 30px 0 20px;
}

.usage-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 24px clamp(20px, 6vw, 90px);
}

.usage-card {
  background: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.demo {
  padding: 30px 0 70px;
}

.demo-card {
  margin: 20px clamp(20px, 6vw, 90px) 0;
  background: rgba(12, 18, 16, 0.8);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo video {
  width: 100%;
  border-radius: 14px;
  max-width: 360px;
  aspect-ratio: 9/20;
}

.footer {
  padding: 26px clamp(20px, 6vw, 90px) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

.hero, .feature, .usage-card, .demo-card {
  animation: float-in 0.8s ease both;
}

.feature:nth-child(2) {
  animation-delay: 0.05s;
}

.feature:nth-child(3) {
  animation-delay: 0.1s;
}

.feature:nth-child(4) {
  animation-delay: 0.15s;
}

.feature:nth-child(5) {
  animation-delay: 0.2s;
}

.feature:nth-child(6) {
  animation-delay: 0.25s;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
