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

:root {
  --bg: #191919;
  --bg-elevated: #1f1f1f;
  --bg-card: #232323;
  --fg: #F5F0EB;
  --fg-muted: #a09a93;
  --fg-subtle: #6b6560;
  --accent: #c8b89e;
  --accent-bright: #e0d5c3;
  --border: #2e2e2e;
  --border-hover: #444;
  --radius-pill: 999px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-width: 1120px;
  --transition: 200ms ease;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav__brand mark {
  background: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover {
  color: var(--fg);
  background: var(--bg-elevated);
}

.nav__cta {
  padding: 8px 20px !important;
  background: var(--fg) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--accent-bright) !important;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(200, 184, 158, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(245, 240, 235, 0.12);
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ===== Tabs Section ===== */
.tabs-section {
  padding: 80px 0;
}

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

.tabs-section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.tabs-section__header p {
  color: var(--fg-muted);
  font-size: 1.0625rem;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  padding: 4px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.tabs-nav__btn {
  flex: 1;
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.tabs-nav__btn.active {
  background: var(--fg);
  color: var(--bg);
}

.tabs-nav__btn:not(.active):hover {
  color: var(--fg);
}

.tab-panel {
  display: none;
  animation: fadeIn 300ms ease;
}

.tab-panel.active {
  display: block;
}

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

.tab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}

.tab-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.tab-card__code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--fg-muted);
  overflow-x: auto;
}

.tab-card__code .prompt {
  color: var(--accent);
}

.tab-card__code .cmd {
  color: var(--fg);
}

.tab-card__code .flag {
  color: #7dd3fc;
}

.tab-card__code .comment {
  color: var(--fg-subtle);
}

.tab-card__desc {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ===== Features Grid ===== */
.features {
  padding: 80px 0;
}

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

.features__header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.features__header p {
  color: var(--fg-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

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

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(200, 184, 158, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--fg-muted);
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--fg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

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

  .nav__links {
    display: none;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .tabs-nav {
    max-width: 100%;
  }

  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
