/* Typography */
:root {
  --bg: #e6f2ff; /* light blue background */
  --panel: #ffffff; /* light panels */
  --text: #0b1a2b; /* dark text */
  --muted: #5b6b80; /* muted on light */
  --brand: #2a7de1; /* blue */
  --accent: #3cc6f0; /* cyan */
  --border: #cfe0ff; /* light blue border */
  --shadow: 0 10px 30px rgba(10, 30, 60, 0.12);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Sofia Sans Semi Condensed", "Averia Libre", Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #eaf4ff 0%, #e1f0ff 100%);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

/* Layout */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
}
.brand-text {
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 18px;
  background-image: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 8px rgba(42, 125, 225, 0.15);
  transition: letter-spacing 0.2s ease, transform 0.2s ease,
    text-shadow 0.2s ease, filter 0.2s ease;
}
.brand:hover .brand-text {
  letter-spacing: 0.8px;
  transform: translateY(-1px);
  background-image: linear-gradient(135deg, #9b5cff, #ff6ec7);
  text-shadow: 0 4px 18px rgba(155, 92, 255, 0.35),
    0 2px 8px rgba(255, 110, 199, 0.35);
  filter: saturate(1.2);
}

@media (max-width: 700px) {
  .brand-text {
    font-size: 16px;
  }
}
.main-nav .nav-toggle {
  display: none;
}
.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--muted);
  text-decoration: none;
}
.nav-list a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 28px;
}
.hero-inner {
  padding: 48px;
  background: radial-gradient(
      1200px 600px at 20% -10%,
      rgba(42, 125, 225, 0.1),
      transparent
    ),
    radial-gradient(
      1200px 600px at 80% 0%,
      rgba(60, 198, 240, 0.1),
      transparent
    ),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
}
.subtitle {
  color: var(--muted);
  margin-bottom: 22px;
}

.section {
  padding: 48px 0;
}
.section-alt {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-emphasis {
  background: linear-gradient(
    180deg,
    rgba(60, 198, 240, 0.1),
    rgba(42, 125, 225, 0.1)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
/* New layouts for rewritten sections */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.pillar h3 {
  margin-top: 0;
}
.pillar ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.step-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #081018;
  font-weight: 700;
  border: none;
}
.step h3 {
  margin: 2px 0 6px;
}

/* Stats bar in hero */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.stat .value {
  font-weight: 700;
  font-size: 18px;
}
.stat .label {
  color: var(--muted);
  font-size: 13px;
}

/* Architecture redesigned */
.arch-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.arch-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      100% 100% at 50% 0%,
      rgba(114, 241, 184, 0.12),
      transparent 60%
    ),
    radial-gradient(
      100% 100% at 0% 100%,
      rgba(93, 211, 255, 0.12),
      transparent 60%
    );
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.arch-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(114, 241, 184, 0.5);
}
.arch-card h3 {
  margin: 0 0 6px;
}
.arch-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.icon-list {
  padding-left: 18px;
}
.icon-list li {
  margin-bottom: 10px;
}

/* Media */
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.section-media {
  margin: 14px 0 6px;
}
.hero-media img {
  border: none;
}
.media-constrained {
  max-width: 720px;
  margin: 0 auto;
}
.about-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Timeline layout for use-cases */
.timeline {
  position: relative;
  margin: 8px 0;
  padding-left: 28px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin: 16px 0 18px;
  padding-left: 8px;
}
.timeline-badge {
  position: absolute;
  left: -2px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #081018;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.timeline-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.timeline-content h3 {
  margin: 0 0 6px;
}
.timeline-content .icon-list {
  margin: 8px 0 0;
}

/* Background image for use-cases section */
.use-cases-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.use-cases-bg:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
}
.use-cases-bg > .container {
  position: relative;
  z-index: 1;
}

.download-form {
  max-width: 520px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
label {
  color: var(--muted);
  font-size: 14px;
}
input[type="text"],
input[type="email"] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.download-form.was-validated input:invalid {
  border-color: #ff5c5c;
  box-shadow: 0 0 0 2px rgba(255, 92, 92, 0.15);
}
.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.checkbox-row label {
  color: var(--text);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #081018;
  font-weight: 600;
  border: none;
}
.button.ghost {
  background: transparent;
}
.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.8);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-copy {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(680px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.cookie-banner.is-hidden {
  display: none;
}
.cookie-actions {
  display: flex;
  gap: 8px;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #081018;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-2px);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
.modal.show {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.modal-dialog {
  position: relative;
  margin: 10vh auto 0;
  width: min(560px, 92%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.modal-dialog h3 {
  margin-top: 0;
}
/* lock scroll when modal open */
body.modal-open { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-media {
    margin-top: 8px;
  }
}

@media (max-width: 700px) {
  .main-nav .nav-toggle {
    display: inline-flex;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 10px;
  }
  .nav-list {
    display: none;
    position: absolute;
    right: 4%;
    top: 58px;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
  }
  .nav-list.show {
    display: flex;
  }
  .hero h1 {
    font-size: 30px;
  }
  .subtitle {
    font-size: 14px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .hero .button {
    width: 100%;
  }
}
