/* ============================================================
   AEION — Website Styles
   Design System + Layout + Components
   ============================================================ */

/* ─── Custom Properties ───────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary: #0d0f14;
  --bg-secondary: #141720;
  --bg-footer: #0a0c10;
  --bg-code: #111318;

  /* Text */
  --text-primary: #f4f6f9;
  --text-secondary: #a8b0c0;
  --text-muted: #6b7280;

  /* Accent (red) */
  --accent: #ce2b39;
  --accent-hover: #b5111c;

  /* Accent (indigo) */
  /*
  --accent:       #11527E;
  --accent-hover: #0A3D5C;
  */

  /* Borders */
  --border-subtle: #1f2430;
  --border-strong: #2a2f3a;

  /* Typography */
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', monospace;

  /* Layout */
  --max-width: 1160px;
  --nav-height: 72px;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

/* ─── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure the [hidden] attribute always wins over display rules
   set elsewhere in the stylesheet (e.g. display:flex on modals). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--space-xl) 0;
}

/* ─── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-top: 1.25rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  outline: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.btn--xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.9375rem 1.875rem;
  font-size: 1rem;
}

/* ─── Header / Nav ────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.header.scrolled {
  border-bottom-color: var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 2.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  color: var(--text-primary);
}
.nav__logo:hover {
  opacity: 0.85;
}

/* logo-wordmark text removed — wordmark is part of the SVG path */

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav__links a:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  gap: 1rem;
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: var(--space-xl);
  background: var(--bg-primary);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero__headline {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Hero architecture mini-diagram */
.hero__diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch-mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 340px;
}

.arch-mini__node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.arch-mini__node--accent {
  border-color: rgba(206, 43, 57, 0.5);
  /*border-color: rgba(17, 82, 126, 0.5);*/
  background: rgba(91, 92, 255, 0.07);
}

.arch-mini__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.arch-mini__node--accent .arch-mini__label {
  color: var(--accent);
}

.arch-mini__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.arch-mini__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
  gap: 2px;
}

.arch-mini__connector-line {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

.arch-mini__connector-arrow {
  font-size: 10px;
  color: var(--border-strong);
  line-height: 1;
  margin-top: -2px;
}

/* ─── Problem Section ─────────────────────────────────────── */
.problem {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem__inner {
  max-width: 680px;
  margin: 0 auto;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: border-color 0.15s ease;
}
.problem__item:hover {
  border-color: var(--border-strong);
}

.problem__item-prefix {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.7;
}

/* ─── Solution Section ────────────────────────────────────── */
.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.solution__features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.feature-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.feature-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Architecture Section ────────────────────────────────── */
.architecture {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.architecture__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.architecture__note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 1.75rem;
  line-height: 1.65;
}

.arch-toggle-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
  display: flex;
}

.arch-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px;
}

.arch-toggle__btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-toggle__btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.arch-toggle__btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arch-node {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.125rem 1.625rem;
  text-align: center;
}

.arch-node--highlight {
  /*border-color: rgba(17, 82, 126, 0.45);*/
  border-color: rgba(206, 43, 57, 0.45);
  background: rgba(91, 92, 255, 0.05);
}

.arch-node__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}
.arch-node--highlight .arch-node__label {
  color: var(--accent);
}

.arch-node__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
  letter-spacing: 0.04em;
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

.arch-connector__line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--border-subtle), var(--border-strong));
}

.arch-connector__arrow {
  color: var(--border-strong);
  font-size: 10px;
  line-height: 1;
  margin-top: -1px;
}

/* ─── Core Capabilities ───────────────────────────────────── */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.cap-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.cap-card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.013);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.cap-card__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.8;
}

.cap-card h3 {
  margin-bottom: 0.75rem;
}

.cap-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ─── Showcase Section ────────────────────────────────────── */
.showcase {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6rem 0;
  overflow: hidden;
}

/* ─── Carousel ────────────────────────────────────────────── */
.carousel {
  margin-top: 4rem;
  position: relative;
  width: 100%;
}

.carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel__btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel__btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--accent);
}

.carousel__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel__indicators {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.showcase__item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .showcase__item {
    flex-direction: row;
    gap: 4rem;
  }
  .showcase__image-wrapper {
    flex: 3;
  }
  .showcase__legend {
    flex: 2;
  }
}

.showcase__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: var(--bg-code);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  width: 100%;
}

.showcase__image-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(var(--accent-rgb, 107, 114, 128), 0.15);
}

.showcase__image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: zoom-in;
}

.showcase__legend {
  padding: 1rem 0;
}

.showcase__legend h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.showcase__legend p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1.125rem;
}

/* ─── Security Section ────────────────────────────────────── */
.security {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.security__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.security__list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.security__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.0625rem 1.375rem;
  background: var(--bg-primary);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s ease;
}
.security__item:last-child {
  border-bottom: none;
}
.security__item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.security__item-mark {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.75;
}

/* ─── Use Cases ───────────────────────────────────────────── */
.use-cases__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.use-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.use-tag:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.use-tag__prefix {
  color: var(--accent);
  opacity: 0.6;
}

/* ─── Philosophy Section ──────────────────────────────────── */
.philosophy {
  background: var(--bg-primary);
}

.philosophy__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__lines {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.philosophy__line {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.philosophy__line em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.philosophy__divider {
  width: 1px;
  height: 2rem;
  background: var(--border-subtle);
  margin: 0 auto;
}

/* ─── Pricing Section ─────────────────────────────────────── */
.pricing {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing__inner {
  text-align: center;
}

.pricing__inner .section-intro {
  margin: 1.25rem auto 0;
}

.pricing__toggle-container {
  display: flex;
  justify-content: center;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto 3rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
}

.billing-toggle__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-toggle__label.active {
  color: var(--text-primary);
}

.billing-toggle__badge {
  background: rgba(206, 43, 57, 0.15);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Base Grid */
.pricing__grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  text-align: left;
}

.saas-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.desktop-grid {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* Card */
.pricing-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--border-strong);
}

.pricing-card--popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(206, 43, 57, 0.05) 0%, var(--bg-secondary) 100%);
}

.pricing-card--popular:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(206, 43, 57, 0.12);
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__header {
  margin-bottom: 2rem;
}

.pricing-card__header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items:baseline;
}

.pricing-card__period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-card__features {
  margin-bottom: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-card__features .check {
  color: var(--accent);
  font-weight: 600;
}

.btn--full {
  width: 100%;
}

/* Desktop Grid Layout Variant */
.pricing-card--enterprise .pricing-card__body-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .saas-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card--enterprise .pricing-card__body-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ─── Contact Us Section ────────────────────────────────── */
.contact-us {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-us__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-us__inner .section-intro {
  margin: 1.25rem auto 0;
}

.access-form {
  margin-top: 3rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

/* logo-wordmark text removed — wordmark is part of the SVG path */

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer__links a:hover {
  color: var(--text-primary);
}

.footer__legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── Scroll Fade-in ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__inner,
  .solution__inner,
  .architecture__inner,
  .security__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__diagram {
    display: none;
  }

  .capabilities__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .nav__links {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 5rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__links {
    gap: 1.25rem;
  }
}

/* ─── Footer: cookie preferences button ──────────────────── */
.footer__cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.footer__cookie-link:hover {
  color: var(--text-primary);
}

/* ─── Cookie Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Ghost variant — text-only button for "Manage Preferences" */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn--ghost:hover {
  color: var(--text-primary);
  background: transparent;
  border-color: transparent;
}

/* ─── Cookie Modal ────────────────────────────────────────── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-modal__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.cookie-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.cookie-modal__close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.cookie-modal__body {
  padding: 0.5rem 0;
  flex: 1;
}

/* ─── Cookie Categories ───────────────────────────────────── */
.cookie-category {
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-category__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cookie-category__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cookie-category__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cookie-category__badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.1rem;
  white-space: nowrap;
}

/* ─── Toggle Switch ───────────────────────────────────────── */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 0.1rem;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 22px;
  transition: background 0.2s ease;
}

.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
  transform: translateX(18px);
  background: #ffffff;
}

.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Cookie Modal Footer ─────────────────────────────────── */
.cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.125rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-modal__footer {
    flex-direction: column-reverse;
    gap: 0.625rem;
  }

  .cookie-modal__footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Image Modal & Interactions ──────────────────────────── */
.showcase__image-wrapper img {
  cursor: zoom-in;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal:not([hidden]) {
  visibility: visible;
}

.image-modal.visible {
  opacity: 1;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-modal__content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.visible .image-modal__content {
  transform: scale(1);
}

.image-modal__content img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: zoom-out;
}

.image-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__close:hover {
  opacity: 1;
}
