/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg-0: #04060f;
  --bg-1: #050510;
  --bg-2: #080e22;
  --bg-3: #0F0A1F;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e6e9f5;
  --text-mute: #b8c4e8;
  --text-dim: #64748b;
  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #7c3aed;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
  --shadow-1: 0 10px 40px -10px rgba(99, 102, 241, 0.35);
  --shadow-2: 0 20px 60px -20px rgba(6, 182, 212, 0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; top: -40px; left: 12px;
  background: var(--accent-1); color: #fff;
  padding: 8px 12px; border-radius: 6px;
  z-index: 1000; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

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

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.85);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  display: inline-flex;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  align-items: center; justify-content: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name-llc {
  font-weight: 500;
  color: var(--text-mute);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-mute);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.primary-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.primary-nav .nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 8px 16px;
  margin-left: 8px;
  box-shadow: var(--shadow-1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.hero-glow-1 {
  top: -10%; left: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 65%);
}
.hero-glow-2 {
  bottom: -20%; right: -10%;
  width: 580px; height: 580px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 65%);
}

.hero-inner { position: relative; max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0.06); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-mute);
  max-width: 680px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(99, 102, 241, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  margin: 0;
  list-style: none;
  max-width: 720px;
}
.hero-meta li {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta strong {
  font-size: 12px; font-weight: 500;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta span {
  font-size: 14.5px; color: var(--text);
  font-weight: 500;
}

/* ===== Section base ===== */
.section {
  padding: 110px 0;
  position: relative;
}
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head-center { margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mute);
  margin: 0;
  max-width: 580px;
}
.section-head-center .section-sub { margin: 0 auto; }

/* ===== About ===== */
.about { background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.7;
}
.about-copy p:last-child { margin-bottom: 0; }

.about-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0.4;
  z-index: -1;
}
.about-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin: 0 0 18px;
}
.about-card-list {
  margin: 0;
  display: grid;
  gap: 14px;
}
.about-card-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.about-card-list div:last-child { border-bottom: none; padding-bottom: 0; }
.about-card-list dt {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}
.about-card-list dd {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
}

/* ===== Products ===== */
.products { background: var(--bg-1); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
}
.product-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--grad);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover::after { opacity: 0.8; }

.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--grad-soft);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.product-icon svg { width: 28px; height: 28px; }

.product-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.product-card p {
  color: var(--text-mute);
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.product-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.product-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Capabilities ===== */
.capabilities {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.cap-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-grid li {
  background: var(--bg-0);
  padding: 32px 28px;
  transition: background 0.25s ease;
}
.cap-grid li:hover { background: var(--bg-2); }
.cap-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 18px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.08);
}
.cap-grid h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cap-grid p {
  color: var(--text-mute);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.55;
}

/* ===== Why ===== */
.why { background: var(--bg-0); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.why-item {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease, background 0.25s ease;
}
.why-item:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.04); }
.why-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 18px;
}
.why-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.why-item p {
  color: var(--text-mute);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 60%),
    var(--bg-1);
  text-align: center;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  margin: 16px 0 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.contact-email:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}
.contact-email svg { width: 16px; height: 16px; color: var(--accent-2); }
.contact-email-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.contact-email-value {
  color: var(--text);
}
.contact-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 14px;
}
.footer-nav {
  display: flex; gap: 22px;
}
.footer-nav a {
  color: var(--text-mute);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding: 90px 0 70px; }
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .cap-grid { grid-template-columns: 1fr; }

  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav a {
    padding: 12px 14px;
    font-size: 15px;
  }
  .primary-nav .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
