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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card2: #161616;
  --border: #222222;
  --border-light: #2a2a2a;
  --orange: #f97316;
  --orange-dark: #ea6c0a;
  --orange-glow: rgba(249, 115, 22, 0.15);
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --green: #22c55e;
  --blue: #3b82f6;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }

.hidden { display: none !important; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center;
}
.nav-container { display: flex; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; gap: 2rem; }
.nav-logo { font-size: 1rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; text-transform: uppercase; }
.logo-dot { color: var(--orange); }
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 2rem; }
.nav-actions-auth { display: flex; align-items: center; gap: 0.75rem; margin-left: 2rem; }
.nav-user-badge { font-size: 0.75rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--orange); padding: 0.2rem 0.6rem; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 2px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: all 0.2s; font-family: var(--font); }
.btn-primary { background: var(--orange); color: #000; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.72rem; }

/* Grid background */
.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; overflow: hidden; }
.hero-container { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge { display: inline-block; background: transparent; border: 1px solid var(--orange); color: var(--orange); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 2px; margin-bottom: 2rem; }
.hero-title { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.hero-title-orange { color: var(--orange); }
.hero-title-outline { -webkit-text-stroke: 2px rgba(255,255,255,0.2); color: transparent; }
.hero-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats-section { padding: 0 2rem 6rem; }
.stats-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); background: var(--bg-card); }
.stat-item { padding: 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 0.5rem; }
.stat-pct { color: var(--orange); }
.stat-ms { color: var(--orange); font-size: 1.5rem; }
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }

/* Sections */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 3rem; }

/* Integration */
.integration-section { padding: 6rem 2rem; }
.code-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.code-panel { background: var(--bg-card); }
.code-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); }
.code-panel-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.code-tabs { display: flex; gap: 0.25rem; }
.code-tab { background: transparent; border: none; color: var(--text-dim); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; cursor: pointer; font-family: var(--font); border-bottom: 2px solid transparent; transition: all 0.2s; }
.code-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.code-block { padding: 1.5rem; font-family: var(--mono); font-size: 0.78rem; line-height: 1.8; overflow-x: auto; min-height: 200px; max-width: 100%; box-sizing: border-box; white-space: pre; word-break: normal; }
.response-status { font-size: 0.72rem; font-weight: 600; }
.response-status { color: var(--green); }

/* Code colors */
.c-comment { color: #6b7280; }
.c-kw { color: #c084fc; }
.c-str { color: #86efac; }
.c-bool { color: #fb923c; }
.c-key { color: #93c5fd; }
.c-brace { color: #fbbf24; }

/* How it works */
.howto-section { padding: 6rem 2rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.step-card { background: var(--bg-card); padding: 2rem 1.5rem; }
.step-number { display: block; font-size: 2rem; font-weight: 900; color: var(--text-dim); margin-bottom: 1rem; font-family: var(--mono); }
.step-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* Pricing */
.pricing-section { padding: 6rem 2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pricing-card { background: var(--bg-card); padding: 2rem 1.5rem; position: relative; display: flex; flex-direction: column; gap: 1rem; }
.pricing-card.featured { background: var(--bg-card2); border-left: 2px solid var(--orange); border-right: 2px solid var(--orange); }
.plan-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #000; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.2rem 0.75rem; }
.plan-tier { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.plan-name { font-size: 2.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.plan-rp { font-size: 1rem; font-weight: 600; }
.plan-tagline { font-size: 0.78rem; color: var(--text-muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; margin-bottom: 0.5rem; }
.plan-features li { font-size: 0.82rem; color: var(--text-muted); padding-left: 1rem; position: relative; }
.plan-features li::before { content: '+'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.pricing-card.featured .plan-features li::before { color: var(--orange); }

/* CTA */
.cta-section { padding: 4rem 2rem 6rem; }
.cta-container { max-width: 1200px; margin: 0 auto; border: 1px solid var(--border); background: var(--bg-card); padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-desc { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.5rem; }
.cta-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.footer-links { display: flex; gap: 2rem; }
.footer-link { color: var(--text-dim); text-decoration: none; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.footer-link:hover { color: var(--text); }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }

/* Auth Modal */
.auth-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.auth-modal { background: #111; border: 1px solid var(--border-light); border-radius: 4px; width: 100%; max-width: 400px; overflow: hidden; }
.auth-modal-header { padding: 1.5rem 1.5rem 1rem; position: relative; }
.auth-logo { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.5px; }
.auth-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.auth-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.25rem; }
.auth-close:hover { color: var(--text); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.auth-tab { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.75rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--font); transition: all 0.2s; }
.auth-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.auth-content { padding: 1.5rem; }
.tab-panel { display: flex; flex-direction: column; gap: 0.75rem; }
.form-group { display: flex; flex-direction: column; }
.form-input { background: #0a0a0a; border: 1px solid var(--border-light); color: var(--text); padding: 0.75rem 1rem; border-radius: 2px; font-size: 0.88rem; font-family: var(--font); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--text-dim); }
.auth-footer-text { font-size: 0.72rem; color: var(--text-dim); text-align: center; line-height: 1.5; margin-top: 0.5rem; }
.auth-message { font-size: 0.8rem; padding: 0.5rem 0.75rem; border-radius: 2px; display: none; }
.auth-message.error { display: block; background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.auth-message.success { display: block; background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.auth-message.info { display: block; background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* Guest panel */
.guest-icon-area { text-align: center; padding: 1rem 0; }
.guest-flash-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.guest-icon-area h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.guest-icon-area p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.guest-dots { display: flex; gap: 0.4rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-light); }
.dot.active { background: var(--orange); }

/* Responsive */
@media (max-width: 1024px) {
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .code-preview { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-actions, .nav-actions-auth { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { font-size: 0.7rem; padding: 0.4rem 0.75rem; }

  /* Hero */
  .hero { padding: 5rem 1.25rem 3rem; min-height: auto; }
  .hero-badge { font-size: 0.65rem; margin-bottom: 1.25rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); margin-bottom: 1rem; }
  .hero-title-outline { -webkit-text-stroke: 1.5px rgba(255,255,255,0.2); }
  .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.75rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 0.6rem; }
  .hero-buttons .btn-lg { padding: 0.65rem 1.5rem; font-size: 0.78rem; width: 100%; max-width: 280px; text-align: center; justify-content: center; }

  /* Stats */
  .stats-section { padding: 0 1.25rem 3rem; }
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.25rem 1rem; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .stat-number { font-size: 1.75rem; }
  .stat-ms { font-size: 1.1rem; }

  /* Sections */
  .section-container { padding: 0 1.25rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .integration-section { padding: 3rem 1.25rem; }
  .howto-section { padding: 3rem 1.25rem; }
  .pricing-section { padding: 3rem 1.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .code-preview { grid-template-columns: 1fr; overflow: hidden; }
  .code-panel { overflow: hidden; min-width: 0; }
  .code-block { font-size: 0.68rem; line-height: 1.65; padding: 1rem; min-height: 160px; }

  /* CTA */
  .cta-section { padding: 2.5rem 1.25rem 3rem; }
  .cta-container { flex-direction: column; text-align: center; padding: 1.75rem 1.25rem; }
  .cta-title { font-size: 1.5rem; }
  .cta-buttons { justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
  .cta-buttons .btn-lg { padding: 0.65rem 1.25rem; font-size: 0.78rem; }

  /* Footer */
  .footer { padding: 1.5rem 1.25rem; }
  .footer-container { flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
  .footer-links { gap: 1.25rem; }

  /* Auth modal */
  .auth-modal { margin: 0 1rem; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 0.875rem; height: 52px; }
  .nav-logo { font-size: 0.9rem; }

  /* Hero */
  .hero { padding: 4.5rem 1rem 2.5rem; }
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .hero-subtitle { font-size: 0.82rem; }
  .hero-buttons .btn-lg { max-width: 100%; }

  /* Stats */
  .stats-section { padding: 0 1rem 2.5rem; }
  .stat-item { padding: 1rem 0.75rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-ms { font-size: 1rem; }
  .stat-label { font-size: 0.65rem; }

  /* Steps */
  .step-card { padding: 1.5rem 1.25rem; }
  .step-number { font-size: 1.5rem; }

  /* Pricing */
  .pricing-card { padding: 1.5rem 1.25rem; }
  .plan-name { font-size: 2rem; }

  /* Section */
  .section-desc { font-size: 0.82rem; margin-bottom: 2rem; }

  /* Integration code block */
  .integration-section { padding: 2.5rem 1rem; }
  .code-block { font-size: 0.6rem; line-height: 1.55; padding: 0.875rem 0.75rem; min-height: 140px; }
  .code-panel-header { padding: 0.5rem 0.75rem; }
  .code-tab { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
}
