:root {
  --bg-page: #0a0a0c;
  --bg-surface: #121215;
  --bg-card: #17171c;
  --gold: #f5b700;
  --gold-bright: #ffc82c;
  --gold-dim: rgba(245, 183, 0, 0.12);
  --text-main: #f4f4f5;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(245, 183, 0, 0.35);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 18%, rgba(245, 183, 0, 0.08), transparent 42%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 85%);
  pointer-events: none;
  z-index: -1;
}

.accent {
  color: var(--gold);
}

/* Navbar */
.navbar {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-links a:hover,
.nav-links a.accent {
  color: var(--gold);
}

/* Main Layout */
main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background-color: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--gold);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--gold);
  color: #0a0a0c;
  box-shadow: 0 6px 22px rgba(245, 183, 0, 0.22);
}

.btn-primary:hover {
  background-color: var(--gold-bright);
  box-shadow: 0 8px 26px rgba(245, 183, 0, 0.34);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

/* Terminal Card */
.hero-card {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: inline-flex;
  gap: 0.45rem;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3f3f46;
}

.window-dots span:first-child {
  background-color: var(--gold);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.code-block {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.prompt {
  color: var(--gold);
  font-weight: 600;
}

.output {
  color: #ffffff;
  font-weight: 600;
}

.key {
  color: var(--gold-bright);
}

.str {
  color: #d4d4d8;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background-color: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Demos Grid */
.demos {
  margin-bottom: 4rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h1,
.section-head h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(245, 183, 0, 0.1);
}

.demo-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.demo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.demo-card:hover .demo-thumb img {
  transform: scale(1.03);
}

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
}

.demo-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.demo-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
}

.demo-link {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.feature-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .features,
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
