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

:root {
  --bg: #09090b;
  --bg-card: #111113;
  --bg-elevated: #18181b;
  --bg-code: #0d1117;
  --border: #27272a;
  --border-subtle: #1c1c1f;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-dim: rgba(99,102,241,0.1);
  --accent-border: rgba(99,102,241,0.25);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code, pre { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* ── Navigation ── */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo .accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 7px 18px; border-radius: var(--radius-sm);
  font-weight: 500; transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

/* ── Hero ── */
.hero { padding: 16px 0 16px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: #a5b4fc; padding: 5px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  max-width: 820px; margin: 0 auto 16px;
}
.hero h1 .highlight { color: var(--accent); }
.hero .sub {
  font-size: 1rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 24px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 0.925rem; font-weight: 500;
  transition: background 0.15s, transform 0.1s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 0.925rem; font-weight: 500;
  transition: border-color 0.15s, background 0.15s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--text-muted); background: var(--bg-elevated); }

/* Hero code block */
.hero-code {
  margin: 16px auto 0; max-width: 540px;
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  text-align: left;
}
.code-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }
.code-filename { font-size: 0.78rem; color: var(--text-dim); margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.code-body { padding: 20px 24px; }
.code-body pre { font-size: 0.85rem; line-height: 1.75; }
.c-comment { color: #6b7280; }
.c-kw { color: #c084fc; }
.c-fn { color: #60a5fa; }
.c-var { color: #fafafa; }
.c-str { color: #86efac; }
.c-paren { color: #a1a1aa; }

/* ── Tech bar ── */
.tech-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.tech-bar-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tech-bar-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.tech-list { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; align-items: center; }
.tech-item { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.tech-sep { color: var(--text-dim); }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.2;
}
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ── Feature cards ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ── Capabilities two-column ── */
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cap-group h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cap-list { list-style: none; }
.cap-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
}
.cap-list li:last-child { border-bottom: none; }
.cap-check { color: var(--accent); flex-shrink: 0; margin-top: 2px; font-size: 0.85rem; }
.cap-title { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.cap-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }

/* ── Demo CTA ── */
.demo-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 72px 40px; text-align: center;
}
.demo-wrap h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.demo-wrap .sub { max-width: 480px; margin: 0 auto 40px; }
.demo-code {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  text-align: left; max-width: 520px; margin: 0 auto 32px;
}
.demo-code pre { font-size: 0.85rem; line-height: 1.85; }
.c-prompt { color: var(--accent); user-select: none; }
.c-cmd { color: var(--text); }
.demo-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 12px; }

/* ── Pricing page ── */
.pricing-hero { padding: 80px 0 64px; text-align: center; }
.pricing-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.pricing-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto; font-size: 1.05rem; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; position: relative;
}
.pricing-card.featured { border-color: var(--accent); background: var(--bg-elevated); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 4px 18px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.plan-tier { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.plan-price { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; margin-bottom: 32px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.9rem; color: var(--text-muted);
}
.plan-features li .chk { color: var(--green); flex-shrink: 0; }
.plan-cta-btn {
  display: block; text-align: center;
  padding: 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.925rem;
  transition: background 0.15s, border-color 0.15s;
}
.plan-cta-btn.primary { background: var(--accent); color: white; }
.plan-cta-btn.primary:hover { background: var(--accent-hover); }
.plan-cta-btn.secondary { border: 1px solid var(--border); color: var(--text); }
.plan-cta-btn.secondary:hover { border-color: var(--text-muted); background: var(--bg-elevated); }

.pro-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; }
.pro-detail h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.pro-detail .sub { margin-bottom: 40px; }
.pro-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pro-cat h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.pro-cat ul { list-style: none; }
.pro-cat li { font-size: 0.875rem; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border-subtle); display: flex; gap: 8px; align-items: flex-start; }
.pro-cat li:last-child { border-bottom: none; }
.pro-cat li .chk { color: var(--green); flex-shrink: 0; }

/* ── Contact page ── */
.contact-hero { padding: 80px 0 48px; text-align: center; }
.contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 16px; }
.contact-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-bottom: 96px; }
.contact-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.contact-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.contact-links { list-style: none; }
.contact-links li { margin-bottom: 12px; }
.contact-links a { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; transition: color 0.15s; }
.contact-links a:hover { color: var(--text); }

.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 0.9rem; color: var(--text); font-family: inherit;
  transition: border-color 0.15s; outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
select option { background: var(--bg-elevated); }
textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.form-submit:hover { background: var(--accent-hover); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border-subtle); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.footer-logo .accent { color: var(--accent); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── Showcase / UI gallery ── */
.showcase-hero { padding: 72px 0 8px; text-align: center; }
.showcase-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; max-width: 820px; margin: 0 auto 16px; }
.showcase-hero h1 .highlight { color: var(--accent); }
.showcase-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

/* sticky section sub-nav */
.subnav {
  position: sticky; top: 60px; z-index: 90;
  background: rgba(9,9,11,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.subnav-inner { max-width: 1100px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.subnav a {
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.subnav a:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg-elevated); }

.showcase-section { padding: 64px 0; border-top: 1px solid var(--border-subtle); }
.showcase-section .section-header { margin-bottom: 40px; }

/* feature shot grid */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery.one { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }
.ui-shot {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.ui-shot:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.ui-shot .shot-frame {
  background: var(--bg); border-bottom: 1px solid var(--border-subtle);
  cursor: zoom-in; overflow: hidden;
}
.ui-shot .shot-frame img { display: block; width: 100%; }
.ui-shot .shot-body { padding: 20px 22px 22px; }
.ui-shot .shot-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.ui-shot h4 { font-size: 1.05rem; font-weight: 600; margin: 6px 0 8px; }
.ui-shot p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* charts grid */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.chart-tile {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  transition: border-color 0.2s, transform 0.15s;
}
.chart-tile:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.chart-tile img { display: block; width: 100%; background: var(--bg); }
.chart-tile span { display: block; padding: 8px 10px; font-size: 0.78rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border-subtle); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 32px;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(4px); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 92vh; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(0,0,0,0.7); }

/* homepage UI teaser strip */
.ui-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; }
.ui-teaser-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .gallery, .gallery.one { grid-template-columns: 1fr; }
  .ui-teaser-grid { grid-template-columns: 1fr; }
  .subnav { top: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr; gap: 32px; }
  .demo-wrap { padding: 48px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pro-categories { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
