:root {
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #516076;
  --line: rgba(0, 82, 204, 0.12);
  --primary: #007bff;
  --primary-deep: #0052cc;
  --primary-bright: #00c8ff;
  --shadow: 0 30px 80px rgba(14, 60, 140, 0.14);
  --radius: 28px;
  --container: min(1200px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 200, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 82, 204, 0.12), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #ffffff 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, rgba(0, 123, 255, 0.95), rgba(0, 200, 255, 0.9));
  color: #fff;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
}

.topbar-inner p {
  margin: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(0, 82, 204, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-bright));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 26px rgba(0, 82, 204, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: #14325d;
  font-weight: 600;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a.is-active::after,
.nav-cta::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 14px 30px rgba(0, 82, 204, 0.22);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 82, 204, 0.1);
  background: #fff;
  border-radius: 14px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-deep);
}

.hero,
.page-hero {
  overflow: hidden;
}

.hero {
  padding: 72px 0 56px;
}

.hero-grid,
.featured-grid,
.split-grid,
.story-wrap,
.page-hero-grid,
.contact-page-grid,
.contact-strip-grid,
.two-up,
.narrow-grid {
  display: grid;
  gap: 36px;
}

.hero-grid,
.page-hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(0, 123, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 12ch;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 18px 40px rgba(0, 82, 204, 0.26);
}

.button-secondary {
  color: var(--primary-deep);
  border-color: rgba(0, 82, 204, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li,
.contact-card,
.panel,
.taxonomy-card,
.category-card,
.product-panel,
.feature-band,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-metrics li {
  padding: 20px 22px;
  border-radius: 24px;
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
  color: var(--text);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.glass-card {
  position: absolute;
  right: 0;
  bottom: 24px;
  max-width: 300px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(0, 67, 157, 0.18);
}

.glass-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.glass-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.floating-card {
  animation: float 4.6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  padding: 44px 0 88px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 720px;
}

.feature-band {
  padding: 34px;
  border-radius: 36px;
}

.alt-band {
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.05), rgba(0, 82, 204, 0.03));
}

.featured-grid,
.split-grid,
.story-wrap,
.contact-strip-grid,
.contact-page-grid,
.two-up,
.narrow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.category-grid,
.simple-card-grid,
.taxonomy-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-card-grid,
.taxonomy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.taxonomy-card,
.panel,
.product-panel,
.contact-form {
  border-radius: 28px;
  padding: 28px;
}

.category-card {
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 123, 255, 0.25);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-deep);
  font-weight: 700;
}

.text-link::after {
  content: "→";
}

.story-slider {
  display: grid;
  gap: 18px;
}

.story-slider img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.taxonomy-card ul,
.footer-list,
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-card li,
.footer-list li,
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.taxonomy-card li:last-child,
.footer-list li:last-child,
.info-list li:last-child {
  border-bottom: 0;
}

.contact-strip {
  padding-top: 18px;
}

.contact-card {
  padding: 28px;
  border-radius: 28px;
}

.contact-card a {
  display: block;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.page-hero {
  padding: 68px 0 26px;
}

.compact-hero {
  padding-bottom: 8px;
}

.page-hero h1 {
  max-width: 14ch;
}

.panel-wide {
  max-width: 100%;
}

.stack-grid {
  display: grid;
  gap: 24px;
}

.product-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.product-panel img {
  width: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, #f4f9ff, #ffffff);
}

.detail-hero {
  padding: 72px 0 48px;
}

.detail-hero-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.detail-hero-image,
.detail-image-card {
  border-radius: 32px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(0, 123, 255, 0.09), rgba(0, 200, 255, 0.16));
  box-shadow: var(--shadow);
}

.detail-hero-image img,
.detail-image-card img {
  width: 100%;
  border-radius: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.spec-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(14, 60, 140, 0.08);
}

.spec-card strong,
.spec-card span {
  display: block;
}

.spec-card strong {
  color: var(--primary-deep);
  font-size: 22px;
}

.spec-card span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.detail-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 16px 18px 16px 44px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: var(--primary);
  font-weight: 800;
}

.category-hero {
  padding-bottom: 20px;
}

.category-feature {
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
  border: 1px solid var(--line);
}

@media (max-width: 820px) {
  .detail-hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 82, 204, 0.14);
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.contact-info-stack {
  display: grid;
  gap: 22px;
}

.map-panel {
  overflow: hidden;
}

.map-visual {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  margin: 16px 0 18px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 200, 255, 0.22));
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.7;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, var(--primary) 30% 100%);
  box-shadow: 0 0 0 14px rgba(0, 123, 255, 0.18);
}

.footer {
  padding: 32px 0 16px;
  background: #f6faff;
  border-top: 1px solid rgba(0, 82, 204, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(0, 82, 204, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-card-grid,
  .taxonomy-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-panel {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 28px, 1200px);
  }

  .topbar-inner,
  .hero-grid,
  .page-hero-grid,
  .featured-grid,
  .split-grid,
  .story-wrap,
  .contact-strip-grid,
  .contact-page-grid,
  .two-up,
  .narrow-grid,
  .footer-grid,
  .product-panel {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 82, 204, 0.1);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a::after {
    display: none;
  }

  .nav-wrap {
    position: relative;
    min-height: 76px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    max-width: none;
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-metrics,
  .category-grid,
  .simple-card-grid,
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .feature-band {
    padding: 22px;
  }

  .glass-card {
    position: static;
    margin-top: 18px;
    max-width: none;
  }
}
