/* static/css/main.css */

:root {
  --polaris-navy: #06162f;
  --polaris-deep: #013e93;
  --polaris-blue: #1d8de4;
  --polaris-sky: #76c8fb;
  --polaris-aqua: #30adf4;
  --polaris-text: #dcecff;
  --polaris-muted: rgba(220, 236, 255, 0.72);
  --polaris-card: rgba(255, 255, 255, 0.075);
  --polaris-border: rgba(255, 255, 255, 0.16);
  --polaris-shadow: 0 30px 90px rgba(0, 20, 70, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--polaris-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(118, 200, 251, 0.28), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(29, 141, 228, 0.22), transparent 28%),
    radial-gradient(circle at 50% 45%, rgba(1, 62, 147, 0.28), transparent 42%),

    /* Bottom light */
    radial-gradient(ellipse at 50% 100%, rgba(118, 200, 251, 0.24), transparent 42%),
    radial-gradient(circle at 82% 96%, rgba(48, 173, 244, 0.16), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(29, 141, 228, 0.14), transparent 34%),

    linear-gradient(180deg, #041126 0%, #06162f 46%, #06162f 78%, #041126 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(118, 200, 251, 0.52) 0 1px, transparent 1.5px);
  background-position: 16px 28px, 80px 120px;
  background-size: 150px 150px, 230px 230px;
}

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

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-main {
  min-height: 70vh;
}

.navbar-glass {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 17, 38, 0.72);
  backdrop-filter: blur(18px);
}

.brand-logo {
  width: 42px;
  height: 42px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
}

.brand-wordmark {
  line-height: 1.05;
}

.brand-wordmark strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.brand-wordmark span {
  display: block;
  margin-top: 3px;
  color: var(--polaris-muted);
  font-size: 0.74rem;
}

.nav-link {
  color: rgba(220, 236, 255, 0.78) !important;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff !important;
}

.btn-polaris {
  --bs-btn-color: #041126;
  --bs-btn-bg: #76c8fb;
  --bs-btn-border-color: #76c8fb;
  --bs-btn-hover-color: #041126;
  --bs-btn-hover-bg: #b8e7ff;
  --bs-btn-hover-border-color: #b8e7ff;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(48, 173, 244, 0.25);
  font-weight: 700;
}

.btn-outline-glass {
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.btn-outline-glass:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button--primary {
  color: #041126;
  border-color: var(--polaris-sky);
  background: var(--polaris-sky);
}

.button--primary:hover {
  color: #041126;
  border-color: #b8e7ff;
  background: #b8e7ff;
}

.button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.065);
}

.button--secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

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

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  border-radius: 999px;
  color: rgba(220, 236, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

.language-switch a.is-active {
  color: #041126;
  background: var(--polaris-sky);
}

.section-padding {
  padding: 104px 0;
}

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-orb {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(118, 200, 251, 0.28);
  border-radius: 999px;
  color: #bfeaff;
  background: rgba(118, 200, 251, 0.095);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 920px;
  margin-top: 1.6rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.94;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #76c8fb 45%, #30adf4 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 760px;
  margin-top: 1.6rem;
  color: rgba(220, 236, 255, 0.78);
  font-size: clamp(1.1rem, 2.1vw, 1.38rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3.5rem;
}

.metric-card,
.glass-card,
.project-card,
.principle-item,
.quote-card {
  border: 1px solid var(--polaris-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(18px);
  box-shadow: var(--polaris-shadow);
}

.metric-card {
  min-height: 128px;
  padding: 1.15rem;
  border-radius: 22px;
}

.metric-card strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 0.65rem;
  color: var(--polaris-muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.section-kicker {
  margin-bottom: 0.9rem;
  color: var(--polaris-sky);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.02;
}

.section-lead {
  max-width: 820px;
  color: var(--polaris-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.soft-divider {
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, transparent, rgba(118, 200, 251, 0.28), transparent);
}

.ecosystem-panel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid rgba(118, 200, 251, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 46%, rgba(118, 200, 251, 0.2), transparent 14%),
    radial-gradient(circle at 50% 46%, rgba(29, 141, 228, 0.13), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(16px);
  box-shadow: var(--polaris-shadow);
}

.ecosystem-panel::before,
.ecosystem-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(118, 200, 251, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ecosystem-panel::before {
  width: 420px;
  height: 420px;
}

.ecosystem-panel::after {
  width: 650px;
  height: 650px;
  opacity: 0.55;
}

.ecosystem-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  padding: 1.2rem;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 22%),
    linear-gradient(135deg, rgba(48, 173, 244, 0.92), rgba(1, 62, 147, 0.92));
  box-shadow: 0 0 0 14px rgba(118, 200, 251, 0.06), 0 0 80px rgba(48, 173, 244, 0.42);
  transform: translate(-50%, -50%);
}

.ecosystem-core strong,
.ecosystem-core span {
  display: block;
}

.ecosystem-core strong {
  font-size: 1.24rem;
  line-height: 1.05;
}

.ecosystem-core span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
}

.eco-node {
  position: absolute;
  z-index: 4;
  width: 180px;
  min-height: 110px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(4, 17, 38, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.28);
}

.eco-node i,
.service-icon,
.principle-item i,
.quote-mark {
  color: var(--polaris-sky);
}

.eco-node i {
  font-size: 1.55rem;
}

.eco-node strong {
  display: block;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.eco-node span {
  color: var(--polaris-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.eco-node.crm {
  left: 7%;
  top: 12%;
}

.eco-node.marketplace {
  right: 7%;
  top: 15%;
}

.eco-node.custom {
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
}

.eco-node.project-a {
  left: 7%;
  bottom: 16%;
  opacity: 0.86;
}

.eco-node.project-b {
  right: 7%;
  bottom: 17%;
  opacity: 0.86;
}

.glass-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 315px;
  padding: 1.55rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.card-link:hover .service-card,
.card-link:focus-visible .service-card {
  border-color: rgba(118, 200, 251, 0.45);
  background: linear-gradient(180deg, rgba(118, 200, 251, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: 0 34px 95px rgba(48, 173, 244, 0.24);
  transform: translateY(-6px);
}

.card-link:focus-visible {
  border-radius: var(--radius-lg);
  outline: 3px solid rgba(118, 200, 251, 0.62);
  outline-offset: 5px;
}

.service-icon,
.quote-mark {
  display: grid;
  place-items: center;
  background: rgba(118, 200, 251, 0.13);
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(118, 200, 251, 0.22);
  border-radius: 20px;
  font-size: 1.75rem;
}

.service-card h3,
.project-card h3 {
  color: #fff;
  font-weight: 760;
  letter-spacing: 0;
}

.service-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
}

.service-card p,
.project-card p,
.quote-card p {
  color: var(--polaris-muted);
  line-height: 1.65;
}

.status-badge,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 750;
}

.status-badge {
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.43rem 0.72rem;
  border: 1px solid rgba(118, 200, 251, 0.22);
  color: #dff4ff;
  background: rgba(118, 200, 251, 0.08);
  font-size: 0.78rem;
}

.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(118, 200, 251, 0.55), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: stretch;
  margin-bottom: 2rem;
}

.timeline-dot {
  z-index: 3;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #041126;
  background: linear-gradient(135deg, #fff, #76c8fb);
  box-shadow: 0 0 0 12px rgba(118, 200, 251, 0.08), 0 0 45px rgba(118, 200, 251, 0.35);
  font-weight: 900;
}

.project-card {
  min-height: 210px;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.project-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pill {
  gap: 0.35rem;
  padding: 0.34rem 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.pill.success {
  border-color: rgba(90, 255, 180, 0.22);
  color: #c9ffe4;
  background: rgba(90, 255, 180, 0.08);
}

.pill.progress {
  border-color: rgba(118, 200, 251, 0.28);
  color: #d7f3ff;
  background: rgba(118, 200, 251, 0.1);
}

.principle-list {
  display: grid;
  gap: 1rem;
}

.principle-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
}

.principle-item i {
  flex: 0 0 auto;
  font-size: 1.65rem;
}

.principle-item strong {
  display: block;
  margin-bottom: 0.18rem;
  color: #fff;
}

.principle-item span {
  display: block;
  color: var(--polaris-muted);
  line-height: 1.5;
}

.quote-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 1.45rem;
  border-radius: var(--radius-lg);
}

.quote-mark {
  width: 50px;
  height: 50px;
  margin-bottom: 1.3rem;
  border-radius: 18px;
  font-size: 1.65rem;
}

.quote-card p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
}

.quote-person {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--polaris-muted);
  font-size: 0.92rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(118, 200, 251, 0.23);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 20%, rgba(118, 200, 251, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(1, 62, 147, 0.54), rgba(255, 255, 255, 0.07));
  box-shadow: var(--polaris-shadow);
}

.cta-panel__content {
  z-index: 1;
}

.content-page {
  padding: clamp(52px, 7vw, 90px) 0 78px;
}

.product-landing__hero {
  padding: clamp(64px, 8vw, 112px) 0 64px;
}

.product-landing__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 40px;
  align-items: center;
}

.product-landing h1 {
  max-width: 820px;
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1;
}

.product-landing__panel {
  display: grid;
  gap: 0.8rem;
  min-height: 320px;
  padding: 1.5rem;
  border: 1px solid rgba(118, 200, 251, 0.2);
  border-radius: var(--radius-xl);
  align-content: end;
  box-shadow: var(--polaris-shadow);
}

.product-landing__panel--image {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  align-content: stretch;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
}

.product-landing__panel-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.product-landing__panel-caption {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.35rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(4, 17, 38, 0.2), rgba(4, 17, 38, 0.78));
}

.product-landing__panel span,
.product-landing__panel strong {
  display: block;
}

.product-landing__panel span {
  color: var(--polaris-sky);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-landing__panel strong {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.product-landing__content {
  padding: 0 0 82px;
}

.content-page__inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.content-page h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0;
}

.generated-content {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: rgba(220, 236, 255, 0.82);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.72;
}

.generated-content h1,
.generated-content h2,
.generated-content h3 {
  color: #fff;
  letter-spacing: 0;
}

.generated-content h1 {
  font-size: 2rem;
}

.generated-content h2 {
  margin-top: 32px;
  font-size: 1.35rem;
}

.generated-content ul,
.generated-content ol {
  margin: 1rem 0 1.3rem;
  padding-left: 1.35rem;
}

.generated-content li {
  margin: 0.45rem 0;
  padding-left: 0.2rem;
  color: rgba(220, 236, 255, 0.86);
}

.generated-content li::marker {
  color: var(--polaris-sky);
}

.generated-content .legal-numbered {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  margin: 0.85rem 0;
}

.generated-content .legal-numbered__number {
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}

.generated-content .legal-numbered__text {
  min-width: 0;
}

.generated-content .legal-numbered--level-0 {
  margin-top: 1.35rem;
  color: #fff;
}

.generated-content .legal-numbered--level-0 .legal-numbered__number,
.generated-content .legal-numbered--level-0 .legal-numbered__text {
  font-weight: 800;
}

.draft-notice {
  display: grid;
  gap: 1rem;
}

.draft-notice h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
}

.draft-notice .button {
  width: fit-content;
  margin-top: 0.5rem;
}

.generated-content table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 1.6rem 0;
  overflow-x: auto;
  border: 1px solid rgba(118, 200, 251, 0.22);
  border-radius: 16px;
  border-spacing: 0;
  border-collapse: separate;
  background: rgba(4, 17, 38, 0.38);
  table-layout: fixed;
}

.generated-content thead {
  background: rgba(118, 200, 251, 0.13);
}

.generated-content th,
.generated-content td {
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(118, 200, 251, 0.16);
  border-bottom: 1px solid rgba(118, 200, 251, 0.16);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.generated-content th {
  color: #fff;
  font-weight: 800;
}

.generated-content td {
  color: rgba(220, 236, 255, 0.82);
}

.generated-content tr > :last-child {
  border-right: 0;
}

.generated-content tbody tr:last-child td {
  border-bottom: 0;
}

.generated-content a {
  color: var(--polaris-sky);
  font-weight: 760;
}

.generated-content .button--primary {
  color: #041126;
}

.generated-content .button--primary:hover {
  color: #041126;
}

.legal-back-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--polaris-sky);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.terms-selector-page__inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.terms-selector-page h1 {
  max-width: 780px;
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 1.02;
}

.terms-selector-page__intro {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--polaris-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.terms-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.terms-selector-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--polaris-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--polaris-shadow);
}

.terms-selector-card--public {
  background:
    radial-gradient(circle at 12% 0%, rgba(118, 200, 251, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
}

.terms-selector-card--saas {
  border-color: rgba(118, 200, 251, 0.28);
  background:
    radial-gradient(circle at 88% 8%, rgba(118, 200, 251, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(1, 62, 147, 0.5), rgba(255, 255, 255, 0.07));
}

.terms-selector-card__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(118, 200, 251, 0.24);
  border-radius: 999px;
  color: #dff4ff;
  background: rgba(118, 200, 251, 0.09);
  font-size: 0.78rem;
  font-weight: 850;
}

.terms-selector-card h2 {
  margin: 1.25rem 0 0.85rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.08;
}

.terms-selector-card p {
  color: rgba(220, 236, 255, 0.78);
  line-height: 1.7;
}

.terms-selector-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.content-page--home-contact {
  padding-top: 0;
}

.contact-form-section {
  margin-top: 32px;
}

.contact-form-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(118, 200, 251, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(118, 200, 251, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.055);
}

.contact-form-panel__intro {
  max-width: 720px;
  margin-bottom: 1.3rem;
}

.contact-form-panel__intro h2 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.contact-form-panel__intro p:not(.eyebrow),
.contact-form__field label,
.contact-form__privacy,
.contact-form__message {
  color: rgba(220, 236, 255, 0.84);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form__field {
  display: grid;
  gap: 0.42rem;
}

.contact-form__field label {
  font-size: 0.95rem;
  font-weight: 760;
}

.contact-form__control {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(118, 200, 251, 0.22);
  border-radius: 14px;
  color: #fff;
  background: rgba(3, 14, 33, 0.62);
  outline: none;
}

.contact-form__control:focus {
  border-color: rgba(118, 200, 251, 0.78);
  box-shadow: 0 0 0 3px rgba(118, 200, 251, 0.14);
}

textarea.contact-form__control {
  resize: vertical;
}

.contact-form__privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  font-size: 0.95rem;
}

.contact-form__privacy a {
  color: var(--polaris-sky);
  font-weight: 800;
}

.contact-form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--polaris-sky);
}

.contact-form__submit {
  justify-self: start;
  border: 0;
}

.contact-form__error,
.contact-form__errors {
  margin: 0;
  color: #ffcfdf;
  font-size: 0.9rem;
}

.contact-form__messages {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(118, 200, 251, 0.28);
  border-radius: 14px;
  background: rgba(118, 200, 251, 0.09);
}

.contact-form__message {
  margin: 0;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 1100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(118, 200, 251, 0.24);
  border-radius: 22px;
  color: var(--polaris-muted);
  background:
    radial-gradient(circle at 8% 0%, rgba(118, 200, 251, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(4, 17, 38, 0.96), rgba(3, 8, 20, 0.96));
  box-shadow:
    0 26px 80px rgba(0, 20, 70, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__copy {
  display: grid;
  gap: 6px;
}

.cookie-banner__copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.cookie-banner p {
  max-width: 700px;
  margin: 0;
  color: rgba(220, 236, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.58;
}

.cookie-banner a {
  color: var(--polaris-sky);
  font-weight: 780;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner a:hover {
  color: #b8e7ff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(340px, 100%);
}

.cookie-banner__actions form {
  margin: 0;
}

.cookie-banner__primary-action {
  min-width: 170px;
  min-height: 44px;
  box-shadow: 0 16px 38px rgba(48, 173, 244, 0.22);
}

.cookie-banner__text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0;
  border: 0;
  color: rgba(220, 236, 255, 0.72);
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.cookie-banner__text-action:hover {
  color: #fff;
}

.cookie-banner__text-action:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner__primary-action:focus-visible {
  outline: 3px solid rgba(118, 200, 251, 0.62);
  outline-offset: 4px;
}

.cookie-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.35rem;
  border: 1px solid var(--polaris-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 0%, rgba(118, 200, 251, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--polaris-shadow);
}

.cookie-settings-panel h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.cookie-settings-panel p {
  margin: 0;
  color: var(--polaris-muted);
  line-height: 1.65;
}

.cookie-settings-panel__state {
  display: grid;
  gap: 0.25rem;
  min-width: 180px;
  padding: 0.9rem;
  border: 1px solid rgba(118, 200, 251, 0.22);
  border-radius: 18px;
  background: rgba(118, 200, 251, 0.08);
}

.cookie-settings-panel__state span {
  color: var(--polaris-muted);
  font-size: 0.82rem;
}

.cookie-settings-panel__state strong {
  color: #fff;
  font-size: 1rem;
}

.cookie-settings-panel__options {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.cookie-option__content {
  min-width: 0;
}

.cookie-option__content strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #fff;
  font-size: 1rem;
}

.cookie-option__content p {
  color: rgba(220, 236, 255, 0.72);
  font-size: 0.94rem;
}

.cookie-option__form {
  margin: 0;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 112px;
  min-height: 44px;
  padding: 0.35rem 0.42rem 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(220, 236, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.cookie-switch:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.095);
}

.cookie-switch:focus-visible {
  outline: 3px solid rgba(118, 200, 251, 0.62);
  outline-offset: 4px;
}

.cookie-switch__label {
  white-space: nowrap;
  font-size: 0.88rem;
}

.cookie-switch__track {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.cookie-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    background-color 160ms ease;
}

.cookie-switch.is-on {
  color: #dff4ff;
  border-color: rgba(118, 200, 251, 0.34);
  background: rgba(118, 200, 251, 0.1);
  box-shadow: 0 14px 34px rgba(48, 173, 244, 0.12);
}

.cookie-switch.is-on .cookie-switch__track {
  background: var(--polaris-sky);
  box-shadow: 0 0 24px rgba(118, 200, 251, 0.28);
}

.cookie-switch.is-on .cookie-switch__thumb {
  background: #041126;
  transform: translateX(24px);
}

.cookie-switch--locked {
  cursor: not-allowed;
  opacity: 0.95;
}

.cookie-switch--locked:hover {
  color: #dff4ff;
  border-color: rgba(118, 200, 251, 0.34);
  background: rgba(118, 200, 251, 0.1);
}

.site-footer {
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 236, 255, 0.66);
}

.site-footer__company,
.site-footer__column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(2, minmax(160px, 0.55fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.site-footer__brand-column {
  display: grid;
  gap: 1rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__company {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 280px;
  line-height: 1.5;
}

.site-footer__column {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__column h2 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.site-footer a {
  color: var(--polaris-sky);
  font-weight: 760;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 72px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .product-landing__hero-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-panel {
    display: grid;
    gap: 0.85rem;
    min-height: auto;
    padding: 1rem;
  }

  .ecosystem-panel::before,
  .ecosystem-panel::after {
    display: none;
  }

  .ecosystem-core,
  .eco-node,
  .eco-node.crm,
  .eco-node.marketplace,
  .eco-node.custom,
  .eco-node.project-a,
  .eco-node.project-b {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    transform: none;
  }

  .ecosystem-core {
    min-height: 130px;
    height: auto;
    border-radius: 28px;
  }

  .timeline::before {
    left: 27px;
  }

  .timeline-item {
    grid-template-columns: 54px 1fr;
    gap: 1rem;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-card-wrap {
    grid-column: 2;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 72px 0;
  }

  .hero-title {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .generated-content {
    padding: 20px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .terms-selector-grid {
    grid-template-columns: 1fr;
  }

  .terms-selector-card {
    min-height: auto;
  }

  .generated-content .legal-numbered {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    column-gap: 0.75rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
    min-width: 0;
  }

  .cookie-banner__actions form {
    width: 100%;
  }

  .cookie-banner__primary-action {
    width: 100%;
  }

  .cookie-banner__text-action {
    width: 100%;
    margin-top: 2px;
  }

  .cookie-settings-panel {
    grid-template-columns: 1fr;
  }

  .cookie-settings-panel__state {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-option__form {
    width: 100%;
  }

  .cookie-switch {
    width: 100%;
  }

  .site-footer__brand-column,
  .site-footer__brand,
  .site-footer__company,
  .site-footer__column {
    justify-content: center;
    text-align: center;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__brand-column,
  .site-footer__column {
    align-items: center;
  }

  .site-footer__company {
    align-items: center;
    max-width: none;
  }
}
