/* Base */
:root {
  --bg: #0b0b0d;          /* near-black */
  --panel: #111113;       /* dark panel */
  --text: #f5f5f7;        /* Apple off-white */
  --muted: #a1a1a6;       /* muted gray */
  --primary: #ffffff;     /* white primary */
  --primary-ink: #0b0b0d; /* dark ink on white */
  --border: #1f1f22;      /* hairline border */
  /* Accent brand color */
  --accent: #22c55e;      /* green-500 */
  --accent-700: #16a34a;  /* green-600/700 for hover */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--border);
  color: var(--text); background: #141416; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn.small { padding: .55rem .8rem; font-size: .9rem; }
.btn:hover { transform: translateY(-1px); border-color: #27272a; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn.primary:hover { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.btn.outline { background: transparent; border: 1px solid #2a2a2e; color: var(--text); }
.btn.outline:hover { background: #171719; }
/* New: secondary button */
.btn.secondary { background: transparent; border: 1px dashed #2a2a2e; color: var(--text); }
.btn.secondary:hover { background: #171719; border-style: solid; }

/* Demo CTA */
.demo-btn, .demo-btn:link, .demo-btn:visited {
  background: var(--accent);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
.demo-btn:hover, .demo-btn:active, .demo-btn:focus, .demo-btn:focus-visible { color: #ffffff !important; text-decoration: none; }
.demo-btn:hover { background: var(--accent-700); transform: scale(1.03); box-shadow: 0 14px 36px rgba(34, 197, 94, 0.32); }
.demo-btn .icon { width: 18px; height: 18px; display: inline-block; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(11,11,13,.55); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .2px; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e5e5ea; color: #111113; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 5rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.sub { color: var(--muted); margin: 0 0 1.5rem; }
.hero-art { position: relative; }
.hero-art .callout { position: absolute; bottom: .6rem; left: .6rem; font-size: .9rem; background: rgba(0,0,0,.55); padding: .4rem .6rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); }
/* Photo styling */
.hero-art .hero-img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* New: badges and throughput */
.badges { margin-top: 1rem; }
.badge-line { display: flex; flex-wrap: wrap; gap: .5rem .5rem; align-items: center; margin-bottom: .4rem; }
.badge { display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; border: 1px solid var(--border); background: #121214; font-size: .85rem; color: var(--text); }
.dot { color: var(--muted); margin: 0 .2rem; }
.throughput { color: var(--text); font-weight: 600; margin: .4rem 0 0; }
.throughput .link { color: var(--muted); text-decoration: underline; }

.cta-row { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: center; }
.waitlist { display: flex; gap: .6rem; flex: 1 1 360px; }
.waitlist input { flex: 1; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: #141416; color: var(--text); outline: none; }
.waitlist input:focus { border-color: #2a2a2e; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.fineprint { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.center { text-align: center; }

/* Sections */
.section { padding: 4rem 0; border-top: 1px solid rgba(255,255,255,.06); }
.section h2 { font-size: 1.8rem; margin: 0 0 1.4rem; letter-spacing: .2px; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: #121214; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.plan { background: #121214; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; }
.plan-head { font-weight: 600; margin-bottom: .6rem; }
.plan ul { margin: 0 0 1rem 1.1rem; color: var(--muted); }
.plan-cta { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; }

/* New: specs table and bullets */
.specs { width: 100%; border-collapse: collapse; background: #121214; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.specs th, .specs td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--border); }
.specs th { width: 28%; color: var(--muted); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.bullets { margin: .2rem 0 0 1.1rem; color: var(--muted); }
.bullets li { margin: .2rem 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps li { display: flex; gap: .8rem; background: #121214; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: #1b1b1f; display: inline-grid; place-items: center; font-weight: 700; color: #e5e5ea; }

/* Quotes */
.quotes blockquote { margin: 0; background: #121214; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; color: var(--muted); }

/* FAQ */
.faq details { background: #121214; border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
/* New: simple QA block support */
.faq .qa h3 { margin: 1rem 0 .2rem; font-size: 1.05rem; }
.faq .qa p { margin: 0 0 .6rem; color: var(--muted); }
.note { margin-top: .6rem; color: var(--muted); font-size: .95rem; }

/* Open Source Section */
.opensource { padding: 4rem 0; background: linear-gradient(180deg, var(--bg) 0%, #0f0f11 50%, var(--bg) 100%); }
.opensource-header { text-align: center; margin-bottom: 3rem; }
.opensource-header h2 { margin-bottom: .8rem; }
.opensource-tagline { color: var(--muted); font-size: 1.1rem; }
.opensource-card { background: #121214; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; height: 100%; display: flex; flex-direction: column; }
.opensource-icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; padding: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.opensource-icon svg { width: 100%; height: 100%; color: white; }
.opensource-card h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.opensource-card p { color: var(--muted); margin-bottom: 1.5rem; flex: 1; }
.opensource-card .btn { margin-top: auto; }
.github-icon { width: 20px; height: 20px; margin-right: .5rem; }
.opensource-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.stat { text-align: center; }
.stat-label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-value { display: block; font-size: 1.1rem; font-weight: 600; color: var(--text); }

/* Engineering Showcase */
.engineering-showcase { margin-top: 4rem; background: #121214; border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; }
.engineering-showcase h3 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.architecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.arch-block { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.arch-icon { font-size: 2rem; margin-bottom: 1rem; text-align: center; }
.arch-block h4 { margin: 0 0 1rem; font-size: 1.1rem; color: var(--text); }
.tech-list { list-style: none; padding: 0; margin: 0; }
.tech-list li { padding: .5rem 0; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--border); }
.tech-list li:last-child { border-bottom: none; }

/* Code Preview */
.code-preview { background: #0d0d0f; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: #161618; border-bottom: 1px solid var(--border); }
.code-file { color: var(--text); font-weight: 500; }
.code-lang { color: var(--muted); font-size: .85rem; }
.code-preview pre { margin: 0; padding: 1.5rem; overflow-x: auto; }
.code-preview code { color: #a8e6cf; font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace; font-size: .9rem; line-height: 1.6; }

/* Team/Founders Section */
.team { padding: 4rem 0; }
.team h2 { text-align: center; margin-bottom: .8rem; }
.team-intro { text-align: center; color: var(--muted); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.founders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 700px; margin: 0 auto; }
.founder-card { background: #121214; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.founder-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.founder-photo { width: 120px; height: 120px; margin: 0 auto 1.2rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--border); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-card h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.founder-role { color: var(--muted); margin: 0 0 1rem; }
.linkedin-link { display: inline-flex; align-items: center; gap: .4rem; color: #0077b5; text-decoration: none; font-size: .9rem; transition: color .2s ease; }
.linkedin-link:hover { color: #0a66c2; }
.linkedin-icon { width: 18px; height: 18px; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 1rem 0; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: .5rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .founders-grid { grid-template-columns: 1fr; }
  .architecture-grid { grid-template-columns: 1fr; }
  .opensource-stats { grid-template-columns: 1fr; gap: .5rem; }
  .engineering-showcase { padding: 1.5rem; }
  .code-preview pre { font-size: .8rem; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #0f1523;
  color: var(--text);
  border: 1px solid var(--border);
  padding: .7rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
