/* ---------- Tokens ---------- */
:root {
  --bg: #08090d;
  --bg-elevated: #0d0f15;
  --surface: #13151c;
  --surface-hover: #181b24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #f4f5f7;
  --text-secondary: #9aa1ae;
  --text-tertiary: #6b7280;
  --accent-1: #7c6cf0;
  --accent-2: #4fd1e5;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-lg: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --maxw: 1160px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-1); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Reveal animation ---------- */
/* Scoped under .js (set by an inline script in <head>) so content stays
   visible by default if JavaScript fails to load or run. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent-gradient); color: #0a0b0f; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-gradient); color: #0a0b0f;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.logo-word { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s ease; }
.nav a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: transparent; border: 1px solid var(--border-strong); border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; width: 16px; margin: 0 auto; background: var(--text-primary); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; overflow: hidden; text-align: center; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none;
}
.hero-glow-1 { width: 520px; height: 520px; top: -220px; left: 50%; transform: translateX(-70%); background: rgba(124, 108, 240, 0.35); }
.hero-glow-2 { width: 420px; height: 420px; top: -160px; right: 50%; transform: translateX(70%); background: rgba(79, 209, 229, 0.25); }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--accent-2);
  font-family: var(--font-mono);
}
.hero h1 { font-size: 56px; line-height: 1.08; margin-bottom: 22px; }
.hero .lede { font-size: 18px; line-height: 1.65; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.tag-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag-row li {
  font-size: 13px; color: var(--text-tertiary); padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 34px; margin: 14px 0 16px; }
.section-head p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }

.grid { display: grid; gap: 20px; }
.products-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.product-card { display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.product-card h3 { font-size: 20px; margin-bottom: 6px; }
.product-tagline { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.product-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 20px; flex-grow: 1; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.status i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.status-live { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.status-live i { background: #34d399; }
.status-building { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.status-building i { background: #fbbf24; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.tech-tags li {
  font-size: 12px; color: var(--text-tertiary); padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono);
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--text-primary); border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto;
}
.card-link span { transition: transform 0.2s ease; }
.card-link:hover span { transform: translate(2px, -2px); }
.card-link-disabled { color: var(--text-tertiary); cursor: default; }

.service-card h3 { font-size: 17px; margin: 4px 0 10px; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(124, 108, 240, 0.14); color: var(--accent-1);
}

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: var(--maxw); }
.process-list li { padding: 28px 24px; border-left: 2px solid var(--border); }
.process-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); font-weight: 700; }
.process-list h3 { font-size: 17px; margin: 12px 0 8px; }
.process-list p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-section { overflow: hidden; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-copy h2 { font-size: 36px; margin: 14px 0 16px; }
.contact-copy p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
.contact-email { display: inline-block; font-size: 18px; font-weight: 700; color: var(--accent-2); border-bottom: 1px solid currentColor; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text-primary); font-family: var(--font-sans); font-size: 14px; resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-2); }
.form-note { font-size: 12px; color: var(--text-tertiary); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--text-tertiary); font-size: 14px; margin-top: 12px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 16px; }
.footer-col a, .footer-disabled { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text-primary); }
.footer-disabled { color: var(--text-tertiary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px; font-size: 13px; color: var(--text-tertiary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px;
  }
  .hero { padding: 88px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .products-grid, .services-grid, .process-list { grid-template-columns: 1fr; }
  .process-list li { border-left: none; border-top: 2px solid var(--border); padding: 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
