/* Design tokens */
:root {
  --bg:           #0B0D12;
  --surface:      #151922;
  --text:         #E7EAF0;
  --muted:        #9AA3B2;
  --accent:       #FF612B;
  --accent-hover: #FF7A4D;
  --hairline:     rgba(255, 255, 255, 0.08);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w:        1080px;
  --gutter:       24px;
}

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

/* Base */
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

/* Page-load fade */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__inner > * {
  animation: fade-up 0.55s ease both;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { animation: none; }
}

/* Container */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.nav__brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  background: var(--accent);
  color: #0B0D12;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

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

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
}

/* Features */
.features {
  padding-block: 80px;
  border-top: 1px solid var(--hairline);
}

.features__header {
  text-align: center;
  margin-bottom: 48px;
}

.features h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.features__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 44ch;
  margin-inline: auto;
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.card__icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 97, 43, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* Responsive */
@media (max-width: 720px) {
  .hero {
    padding-block: 48px;
  }

  .features {
    padding-block: 48px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav__links {
    gap: 16px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
