:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --text: #11151a;
  --muted: #5f6b78;
  --line: rgba(17, 21, 26, 0.1);
  --line-strong: rgba(17, 21, 26, 0.18);
  --accent: #315d87;
  --accent-2: #5f86ad;
  --dark: #0f1720;
  --dark-2: #18222e;
  --shadow: 0 18px 40px rgba(15, 23, 32, 0.09);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1220px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8fafb 0%, #f2f5f8 100%);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4, h5 { margin: 0 0 1rem; line-height: 1.05; letter-spacing: -0.03em; }
h1, h2, .display { font-family: "Space Grotesk", Inter, sans-serif; }
h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.35rem; }
small, .eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 700;
}

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.section { padding: 5.8rem 0; }
.section-sm { padding: 4rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.dark-card {
  background: linear-gradient(180deg, rgba(24,34,46,.96), rgba(15,23,32,.98));
  color: #eaf0f5;
  border: 1px solid rgba(255,255,255,.08);
}
.dark-card p, .dark-card li { color: rgba(234,240,245,.72); }
.muted { color: var(--muted); }
.lead { font-size: 1.14rem; max-width: 60ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  font-weight: 700;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.btn-secondary { background: transparent; border-color: var(--line-strong); }
.btn-accent { background: var(--accent); color: #fff; }
.link-arrow::after { content: "→"; margin-left: .55rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.7rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(248,250,251,.74);
  border-bottom: 1px solid rgba(17, 21, 26, 0.06);
}
.topbar {
  font-size: .87rem;
  border-bottom: 1px solid rgba(17, 21, 26, 0.06);
  background: rgba(255,255,255,.72);
}
.topbar .container,
.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .container { padding: .7rem 0; }
.header-main .container { padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .85rem; font-weight: 800; }
.brand img { width: 168px; height: auto; }
.nav-toggle { display: none; background: transparent; border: 0; padding: .2rem; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0;
}
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.1rem; padding: 0; margin: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a { font-weight: 600; color: #1b2430; }
.main-nav a:hover { color: var(--accent); }

.mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 1rem);
  transform: translateX(-50%) translateY(10px);
  width: min(860px, 90vw);
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 50px rgba(15,23,32,.14);
  padding: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1rem; }
.mega-column { padding: .5rem; }
.mega-column ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .65rem; }
.mega-feature {
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(150deg, #edf3f8, #ffffff);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .5;
}
.hero::before { width: 350px; height: 350px; background: rgba(49,93,135,.12); top: 2rem; right: -6rem; }
.hero::after { width: 290px; height: 290px; background: rgba(95,134,173,.12); left: -5rem; bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero-panel {
  position: relative;
  min-height: 520px;
  background: linear-gradient(180deg, #ffffff, #edf2f6);
  border-radius: 34px;
  border: 1px solid rgba(17, 21, 26, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel.image-hero {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #d8dee4, #f6f8fa 55%, #c7d2dc);
}
.hero-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-panel .mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(49,93,135,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(49,93,135,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 86%);
}
.product-stack { position: absolute; inset: 0; display: grid; place-items: center; }
.device-card {
  position: absolute;
  width: clamp(180px, 24vw, 300px);
  aspect-ratio: 10 / 18;
  border-radius: 34px;
  border: 1px solid rgba(17,21,26,.1);
  background: linear-gradient(180deg, #0f1720, #243546 45%, #6d7e8f 100%);
  box-shadow: 0 25px 40px rgba(15, 23, 32, 0.16);
}
.device-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
}
.device-card.primary { transform: translate(-10%, 0) rotate(-9deg); }
.device-card.secondary { width: clamp(200px, 27vw, 320px); transform: translate(20%, 6%) rotate(8deg); background: linear-gradient(180deg, #315d87, #18222e 70%, #e7edf2); }
.device-card.tertiary {
  width: clamp(150px, 18vw, 220px); aspect-ratio: 16 / 10; border-radius: 24px;
  transform: translate(5%, 78%) rotate(-6deg); background: linear-gradient(180deg, #dbe5ee, #97adc4);
}
.panel-tag {
  position: absolute;
  padding: .7rem .9rem;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.tag-top { top: 1.3rem; left: 1.3rem; }
.tag-right { right: 1.2rem; top: 7rem; }
.tag-bottom { left: 1.3rem; bottom: 1.2rem; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.metric {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
}
.metric strong { display: block; font-size: 1.4rem; margin-bottom: .25rem; }

.section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
.section-heading p { max-width: 55ch; }

.feature-card, .category-card, .industry-card, .timeline-card {
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover, .category-card:hover, .industry-card:hover, .timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(15,23,32,.12);
}
.icon-box {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 16px; background: linear-gradient(180deg, #eaf1f7, #ffffff); border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.icon-box svg { width: 26px; height: 26px; stroke: var(--accent); }

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.5rem;
  align-items: stretch;
}
.image-shell {
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #dfe7ee, #f8fafc 55%, #bccfe2);
  position: relative;
}
.image-shell.product-photo-shell {
  background: linear-gradient(140deg, #d5dbe1, #edf2f5 48%, #c2ccd6);
}
.image-shell.product-photo-shell::before,
.image-shell.product-photo-shell::after {
  content: none;
}
.section-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.image-shell::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(49,93,135,.18), transparent 25%), linear-gradient(140deg, transparent 35%, rgba(255,255,255,.65) 60%, transparent 72%);
}
.image-shell.device-lab::after {
  content: "";
  position: absolute; inset: 12% 14% auto auto;
  width: 54%; height: 58%;
  border-radius: 26px;
  background: linear-gradient(180deg, #11151a, #233243 50%, #6784a1);
  box-shadow: -22px 18px 0 rgba(255,255,255,.45), -50px 44px 0 rgba(15,23,32,.12);
}
.image-shell.workspace::after {
  content: "";
  position: absolute; inset: auto 10% 14% 12%;
  height: 34%; border-radius: 24px;
  background: linear-gradient(90deg, #1a2632, #4c6c8e, #d9e5ef);
  box-shadow: 0 -120px 0 0 rgba(255,255,255,.46);
}

.category-card .mock-shot {
  height: 220px;
  border-radius: 22px;
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
  background: linear-gradient(145deg, #f3f6f9, #e0e7ee 50%, #a4bad0 100%);
  position: relative;
  overflow: hidden;
}
.category-card .category-photo {
  height: 220px;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
  padding: 1rem;
  background: linear-gradient(145deg, #f7fafc, #edf2f6 52%, #d6e0e8);
}
.category-card .mock-shot::before,
.category-card .mock-shot::after {
  content: "";
  position: absolute;
  border-radius: 22px;
}
.category-card .mock-shot::before {
  width: 42%; aspect-ratio: 10 / 18; left: 18%; top: 10%;
  background: linear-gradient(180deg, #1a2530, #3d5973 70%, #d9e3ec);
}
.category-card .mock-shot::after {
  width: 36%; aspect-ratio: 10 / 18; right: 10%; top: 18%;
  background: linear-gradient(180deg, #315d87, #223244 70%, #f5f7f9);
  transform: rotate(8deg);
}
.list-clean { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .65rem; }
.list-clean li { padding-left: 1rem; position: relative; color: var(--muted); }
.list-clean li::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); left: 0; top: .7em; }

.band {
  border-radius: 34px;
  padding: 2rem;
  background: linear-gradient(135deg, #0f1720, #18222e 45%, #315d87 130%);
  color: #eef3f7;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.band p, .band li { color: rgba(238,243,247,.78); }
.band-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; align-items: center; }

.cta-box {
  background: linear-gradient(180deg, #ffffff, #eff4f7);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 4.3rem 0 2.5rem;
}
.breadcrumbs { font-size: .94rem; color: var(--muted); margin-bottom: 1rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.page-visual { min-height: 360px; }

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.info-cell {
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.68);
}

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact-card a { color: var(--accent); }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .5rem; font-weight: 600; }
input, textarea, select {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: var(--text);
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(49,93,135,.18); border-color: var(--accent); }

.site-footer {
  background: #0f1720;
  color: #eef3f7;
  padding-top: 3rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 1.5rem; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(238,243,247,.74); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding: 1.2rem 0; font-size: .92rem; }
.footer-bottom a {
  color: rgba(238,243,247,.86);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.badge-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.badge {
  padding: .55rem .85rem; border-radius: 999px; font-size: .86rem;
  border: 1px solid var(--line); background: rgba(255,255,255,.76);
}
.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card h3 {
  margin-top: 1.3rem;
  margin-bottom: .75rem;
  font-size: 1.08rem;
}
.legal-card p:last-child,
.legal-card ul:last-child { margin-bottom: 0; }

@media (max-width: 1080px) {
  .hero-grid,
  .split-panel,
  .page-hero-grid,
  .contact-grid,
  .band-grid,
  .footer-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .info-table {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 84px 1rem auto 1rem;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li { width: 100%; }
  .mega {
    position: static; transform: none; width: 100%; opacity: 1; visibility: visible; display: none; margin-top: .8rem;
  }
  .has-mega:hover .mega, .has-mega:focus-within .mega { transform: none; }
  .has-mega.open .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .hero-grid,
  .split-panel,
  .page-hero-grid,
  .contact-grid,
  .metrics,
  .band-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .info-table,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 420px; }
  .brand img { width: 145px; }
  .topbar .container { flex-direction: column; align-items: start; }
}
