/* ===== Tokens ===== */
:root {
  --bg: #0b0c0f;
  --bg-alt: #111318;
  --surface: #161920;
  --border: #252a33;
  --text: #e9ebef;
  --muted: #9aa1ad;
  --accent: #ffb547;
  --accent-2: #ff7a3d;
  --radius: 14px;
  --maxw: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #14100a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255, 150, 60, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.92rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}
.hero-glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 160, 60, 0.22), rgba(255, 120, 60, 0.06) 45%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.lead {
  max-width: 640px;
  margin-top: 1.5rem;
  font-size: 1.12rem;
  color: var(--muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 600px; margin-bottom: 2.5rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.pillar h3 { margin: 1.2rem 0 0.6rem; font-size: 1.4rem; }
.pillar p { color: var(--muted); }
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.25);
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product:hover { border-color: rgba(255, 181, 71, 0.45); transform: translateY(-3px); }
.product-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.product-tag { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.product h3 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.product p { color: var(--muted); flex: 1; }

.status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-live { background: rgba(80, 200, 120, 0.12); color: #6ee59a; }
.status-dev { background: rgba(100, 160, 255, 0.12); color: #8db8ff; }
.status-paused { background: rgba(255, 181, 71, 0.12); color: var(--accent); }

.chips { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
}

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 2rem; }
.cap { background: var(--bg); padding: 2rem; transition: background 0.2s ease; }
.cap:hover { background: var(--surface); }
.cap h3 { margin-bottom: 0.5rem; }
.cap p { color: var(--muted); font-size: 0.95rem; }

/* Process */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.steps li { border-top: 2px solid var(--border); padding-top: 1.4rem; }
.step-num { font-family: var(--font-head); color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.steps h3 { margin: 0.5rem 0; font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-copy p { color: var(--muted); max-width: 440px; }
.contact-email { margin-top: 1.8rem; }
.contact-email a { color: var(--accent); font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; border-bottom: 1px solid rgba(255, 181, 71, 0.35); }
.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.88rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.88rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.legal { color: var(--muted); font-size: 0.8rem; text-align: right; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 24px 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal { text-align: left; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .pillar, .product, .cap, .contact-form { padding: 1.5rem; }
}
