/* FARROX AI — Premium Enterprise Theme */
:root {
  --bg: #020617;
  --bg-elevated: #0b1224;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-hover: rgba(30, 41, 59, 0.65);
  --border: rgba(148, 163, 184, 0.14);
  --border-hover: rgba(56, 189, 248, 0.35);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --heading: #f8fafc;
  --brand: #002058;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --indigo: #6366f1;
  --glow: rgba(56, 189, 248, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

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

/* Background effects */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 211, 238, 0.08), transparent 45%),
    var(--bg);
  animation: gradientShift 18s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(8deg); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.bg-glow--1 { width: 480px; height: 480px; top: -120px; right: -80px; background: var(--cyan); }
.bg-glow--2 { width: 360px; height: 360px; bottom: 10%; left: -100px; background: var(--indigo); animation-delay: -6s; }

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.08); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
}

.logo img { height: 30px; width: auto; display: block; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
}

.lang-switch__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__link:hover { color: var(--heading); }

.lang-switch__link.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.lang-switch__sep {
  color: var(--border);
  font-size: 0.65rem;
  user-select: none;
}

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

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover { color: var(--heading); }

.nav-cta {
  padding: 8px 18px !important;
  border-radius: 999px;
  border: 1px solid var(--border-hover) !important;
  color: var(--cyan) !important;
  background: rgba(34, 211, 238, 0.06);
}

.nav-cta:hover {
  background: rgba(34, 211, 238, 0.12) !important;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-glow {
  color: #020617;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.35);
}

.btn-glow:hover {
  box-shadow: 0 0 48px rgba(56, 189, 248, 0.55);
  color: #020617;
}

.btn-ghost {
  color: var(--heading);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #020617;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 100px 0 88px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.pill--outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--heading);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats div { margin: 0; }

.hero-stat--trust dt {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat--trust dd {
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stats dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-stats dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--cyan);
}

.glass-panel, .glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.hero-panel {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

.network-graph svg { width: 100%; height: auto; margin-bottom: 16px; opacity: 0.9; }

.hero-panel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
}

.hero-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
  margin: 0 0 20px;
}

.check-list, .mini-list, .capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li, .mini-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.check-list li:first-child, .mini-list li:first-child { border-top: none; }

.check-list li::before, .mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--glow);
}

/* Trust band */
.trust-band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 36, 0.45);
}

.trust-band__intro {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.trust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.trust-metric-tile {
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.trust-metric-tile:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.08);
}

.trust-metric-tile__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.trust-metric-tile__value--accent {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.65rem;
}

.trust-metric-tile__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-band__inner {
  display: block;
}

.trust-metric { flex-shrink: 0; }

.trust-metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-metric__label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.trust-band__copy {
  flex: 1;
  min-width: min(100%, 320px);
  margin: 0;
  padding-left: 32px;
  border-left: 2px solid rgba(56, 189, 248, 0.25);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Brand story */
.brand-story {
  padding: 0 0 64px;
  margin-top: -8px;
}

.brand-story__card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.brand-story__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0.8;
}

.brand-story__mark {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

.brand-story__origin {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-story__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-story__content .section-label {
  margin-bottom: 10px;
}

.brand-story__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 640px;
}

.brand-story__text strong {
  color: var(--heading);
  font-weight: 600;
}

/* Partnership */
.partnership {
  padding: 0 0 64px;
  margin-top: -48px;
}

.partnership__card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.partnership__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0.8;
}

.partnership__mark {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 32px;
  border-right: 1px solid var(--border);
}

.partnership__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--heading);
}

.partnership__content .section-label {
  margin-bottom: 0;
}

.partnership__lead {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.partnership__lead strong {
  color: var(--heading);
  font-weight: 600;
}

.partnership__text {
  margin: 0 0 20px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}

.partnership__pillars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.partnership__pillars li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.partnership__pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.legal-lang.lang-switch {
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
}

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: rgba(11, 18, 36, 0.5); }

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glass-card { padding: 28px 26px; }

.card-icon {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.glass-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--heading);
  margin: 0 0 10px;
}

.glass-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Product cards */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card-link:hover .product-card {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.08);
}

.product-card__visual {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.product-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85), transparent 60%);
}

.product-card__visual--platform {
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.35), transparent 50%),
    linear-gradient(135deg, #0c1929, #1e1b4b);
}

.product-card__visual--api {
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.3), transparent 45%),
    linear-gradient(135deg, #0f172a, #134e4a);
}

.product-card__visual--shop {
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.35), transparent 50%),
    linear-gradient(135deg, #0b1224, #312e81);
}

.product-card__domain {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.product-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--heading);
  margin: 0 0 10px;
}

.product-card__body p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
}

.product-card-link:hover .link-arrow { color: var(--blue); }

/* AI section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.capability-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.capability-list li:first-child { border-top: none; }
.capability-list strong { color: var(--heading); font-weight: 600; }

.ai-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
}

.ai-metric {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border);
  text-align: center;
}

.ai-metric__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
}

.ai-metric__lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Security */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.security-item {
  display: flex;
  gap: 18px;
  padding: 24px;
}

.security-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid var(--border);
}

.security-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--heading);
}

.security-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.security-item a { color: var(--blue); }

/* Architecture stack */
.architecture-section { padding-top: 0; }

.architecture-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.architecture-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.4);
}

.architecture-layer {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.architecture-layer:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.1);
}

.architecture-layer + .architecture-layer {
  margin-top: 12px;
}

.architecture-layer::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--cyan);
  opacity: 0.6;
  z-index: 1;
}

.architecture-layer:last-child::after { display: none; }

.architecture-layer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.architecture-layer h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
}

.architecture-layer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.architecture-layer--highlight {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.8);
}

.architecture-aside {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.architecture-aside h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
  margin: 0 0 16px;
}

.architecture-flow-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.architecture-flow-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.architecture-flow-list li:first-child { border-top: none; }

.architecture-flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.architecture-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.architecture-domains span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.architecture-tech-note {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Product screenshots — two-tier: card (-card.png) + full (lightbox) */
.product-card__visual--screenshot {
  padding: 0;
  overflow: hidden;
  background: #0b1224;
  aspect-ratio: 16 / 9;
  height: auto;
}

.product-card__visual--screenshot::after {
  display: none;
}

.product-card__visual--screenshot .screenshot-frame {
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.screenshot-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0b1224;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.screenshot-frame--mini {
  padding-top: 18px;
  position: relative;
  background: #0f172a;
}

.screenshot-frame--mini::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border);
}

.screenshot-frame--mini::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 10px 0 0 #eab308, 20px 0 0 #22c55e;
}

.screenshot-frame--browser {
  padding-top: 28px;
  position: relative;
}

.screenshot-frame--browser::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
}

.screenshot-frame--browser::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 14px 0 0 #eab308, 28px 0 0 #22c55e;
}

.screenshot-frame__body {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-frame__body--dark {
  background: #0f172a;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.product-page-visual .screenshot-frame__body {
  aspect-ratio: 16 / 10;
  max-height: none;
}

.product-page-visual .screenshot-frame {
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  cursor: pointer;
}

.screenshot-expand:hover {
  color: var(--blue);
}

.case-study-card__media {
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0b1224;
}

.case-study-card__media .screenshot-frame {
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.case-study-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.case-study-card:hover .case-study-card__media img {
  transform: none;
}

.case-study-hero .screenshot-frame {
  width: 100%;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: 100%;
}

.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--heading);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  border-color: var(--border-hover);
  color: var(--cyan);
}

.lightbox__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1224;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox__figure img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 48px);
  object-fit: contain;
  background: #0f172a;
}

.lightbox__caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Case studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.case-study-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card__body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--heading);
}

.case-study-card__body p {
  margin: 0 0 16px;
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-study-page { padding: 40px 0 96px; }

.case-study-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.case-study-block {
  margin-bottom: 48px;
  max-width: 820px;
}

.case-study-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--heading);
  margin: 0 0 16px;
}

.case-study-block p,
.case-study-block li {
  color: var(--text-muted);
  line-height: 1.7;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-study-results li {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.9rem;
}

.referenzen-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Infrastructure (legacy, kept for compatibility) */
.infra-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 8px;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.infra-node {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
  min-width: 140px;
}

.infra-node--highlight {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.infra-node span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.infra-node small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.infra-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  opacity: 0.5;
}

.infra-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Use cases */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Contact */
.section-contact {
  padding-bottom: 112px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  padding: 32px;
}

.contact-company {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 12px;
}

.contact-card p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-card a { color: var(--cyan); }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo img { height: 26px; opacity: 0.9; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--heading); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

@media (min-width: 901px) {
  .footer-copy { width: auto; margin-top: 0; text-align: right; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--delay { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }

/* ─── Product detail pages ─── */
.product-page { padding: 40px 0 96px; }

.product-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-back:hover { color: var(--cyan); }

.product-page-header { max-width: 720px; margin-bottom: 48px; }

.product-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  color: var(--heading);
  margin: 0 0 16px;
}

.product-page-intro {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-page-domain {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
}

.product-gallery { margin-bottom: 56px; }

.product-page-visual { margin-bottom: 56px; }

.product-page-visual figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.product-gallery__hero {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-gallery__hero img {
  display: block;
  width: 100%;
  height: auto;
}

.product-gallery__hero figcaption,
.product-gallery__grid figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.product-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-gallery__grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-gallery__grid img { display: block; width: 100%; height: auto; }

.product-gallery__hero--phone {
  max-width: 320px;
  margin: 0 auto 20px;
  border-radius: 28px;
  padding: 10px;
}

.product-detail-section { margin-bottom: 48px; max-width: 900px; }

.product-detail-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--heading);
  margin: 0 0 16px;
}

.product-detail-section > p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-detail-card {
  padding: 22px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-detail-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.08);
}

.product-detail-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--heading);
}

.product-detail-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Legacy product showcase (if used) */
.product-showcase-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.product-showcase-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-showcase-media img { display: block; width: 100%; height: auto; }

.product-showcase-content h3 {
  font-family: var(--font-display);
  color: var(--heading);
}

.product-features li {
  color: var(--text-muted);
  border-top-color: var(--border);
}

.product-features li::before { background: var(--cyan); }

.product-url { color: var(--text-muted); }
.product-url a { color: var(--cyan); }

/* ─── Legal pages ─── */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.legal-brand img { height: 36px; }

.legal-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(16px);
}

.legal-card h1 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--heading);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  color: var(--heading);
}

.legal-card p, .legal-card li { color: var(--text-muted); }

.legal-meta { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }

.legal-back { text-align: center; margin-top: 24px; font-size: 0.875rem; }
.legal-back a { color: var(--text-muted); }
.legal-back a:hover { color: var(--cyan); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .product-cards,
  .split-section,
  .security-grid,
  .usecase-grid,
  .contact-grid,
  .product-detail-grid,
  .product-gallery__grid,
  .product-showcase-item {
    grid-template-columns: 1fr;
  }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .trust-metrics-grid { grid-template-columns: repeat(2, 1fr); }

  .architecture-layout,
  .case-studies-grid,
  .referenzen-index-grid,
  .case-study-hero,
  .case-study-results {
    grid-template-columns: 1fr;
  }

  .trust-band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .trust-band__copy {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .brand-story__card,
  .partnership__card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .partnership__mark {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .brand-story__mark {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .lang-switch { margin-right: 8px; }

  .hero { padding-top: 72px; min-height: auto; }

  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(2, 6, 23, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child { border-bottom: none; }

  .nav-cta { text-align: center; margin-top: 8px; }

  .infra-flow { flex-direction: column; }
  .infra-arrow { transform: rotate(90deg); }

  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-gradient, .bg-glow, .reveal { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Hero video ─── */
.hero-video__frame {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0b1224;
}

.hero-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.hero-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(2, 6, 23, 0.75);
  color: var(--cyan);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.hero-video__play:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.05);
}

.hero-video__frame.is-playing .hero-video__play {
  display: none;
}

.hero-video__caption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Demo page ─── */
.demo-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-tabs__btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.demo-tabs__btn:hover,
.demo-tabs__btn.is-active {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.08);
}

.demo-panel__points {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.demo-panel__points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-panel__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.nav a.is-active {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .demo-hero__grid {
    grid-template-columns: 1fr;
  }
}
