:root {
  /* Brand accent — change these four to recolor the site (keep favicon.svg fill in sync with --accent) */
  --accent: #12c4b0;
  --accent-dark: #0ea392;
  --accent-hover: #3ad6c4;
  --accent-soft: rgba(18, 196, 176, 0.14);

  --navy: #0b1d36;
  --navy-mid: #122844;
  --navy-light: #1a3a5c;
  --gold: #e8c56b;
  --ink: #152033;
  --muted: #5b6b7c;
  --line: #e4eaf1;
  --paper: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 29, 54, 0.12);
  --radius: 16px;
  --max: 1160px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --brand: "Comfortaa", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 29, 54, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.logo {
  color: var(--white);
}

.logo .wordmark-amli {
  font-size: 2.35rem;
}

.logo .wordmark-media {
  font-size: 1.08rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 0.82;
  font-family: var(--brand);
  text-transform: lowercase;
}

.wordmark-amli {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.wordmark-media {
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 9px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 10%, var(--accent-soft), transparent 32%),
    radial-gradient(circle at 10% 80%, rgba(232, 197, 107, 0.12), transparent 28%),
    linear-gradient(160deg, #081525 0%, var(--navy) 48%, #163556 100%);
  color: var(--white);
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  margin: 0 0 16px;
}

.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card h3 {
  margin: 0 0 18px;
  font-family: var(--display);
}

.stack {
  display: grid;
  gap: 12px;
}

.stack-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(8, 21, 37, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.ai-stage {
  position: relative;
  min-height: 420px;
  background: transparent;
  border: 0;
  overflow: visible;
}

.ai-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(18, 196, 176, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ai-orbit-a {
  width: 210px;
  height: 210px;
  animation: ai-spin 18s linear infinite;
  border-style: dashed;
}

.ai-orbit-b {
  width: 290px;
  height: 290px;
  animation: ai-spin 28s linear infinite reverse;
}

.ai-orbit-c {
  width: 360px;
  height: 360px;
  opacity: 0.45;
  animation: ai-spin 40s linear infinite;
}

.ai-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: 0;
  left: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.ai-net {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  color: rgba(18, 196, 176, 0.45);
}

.ai-links path {
  stroke-dasharray: 8 10;
  animation: ai-dash 6s linear infinite;
}

.ai-nodes circle {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
  transform-origin: center;
  transform-box: fill-box;
}

.ai-nodes .n1 { animation: ai-node 2.2s ease-in-out infinite; }
.ai-nodes .n2 { animation: ai-node 2.4s ease-in-out infinite 0.2s; }
.ai-nodes .n3 { animation: ai-node 2.1s ease-in-out infinite 0.4s; }
.ai-nodes .n4 { animation: ai-node 2.6s ease-in-out infinite 0.1s; }
.ai-nodes .n5 { animation: ai-node 2.3s ease-in-out infinite 0.5s; }
.ai-nodes .n6 { animation: ai-node 2.5s ease-in-out infinite 0.3s; }
.ai-nodes .n7 { animation: ai-node 2.2s ease-in-out infinite 0.6s; }
.ai-nodes .n8 { animation: ai-node 2.4s ease-in-out infinite 0.15s; }
.ai-nodes .n9 { animation: ai-node 2s ease-in-out infinite 0.35s; }
.ai-nodes .n10 { animation: ai-node 2.7s ease-in-out infinite 0.45s; }

.ai-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 180px 168px;
  animation: ai-ring 3.2s ease-out infinite;
}

.ai-pulse.delay {
  animation-delay: 1.6s;
}

.ai-core {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2aefe0, var(--accent) 45%, #0a3a38);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 0 40px rgba(18, 196, 176, 0.45);
  animation: ai-glow 3s ease-in-out infinite;
}

.ai-core-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.ai-core-sub {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(11, 29, 54, 0.75);
}

.ai-tag {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(8, 21, 37, 0.78);
  border: 1px solid rgba(18, 196, 176, 0.35);
  color: var(--accent);
  padding: 5px 9px;
  border-radius: 999px;
  animation: ai-float 4s ease-in-out infinite;
}

.ai-tag.t1 { top: 18%; left: 6%; }
.ai-tag.t2 { top: 22%; right: 4%; animation-delay: 0.6s; }
.ai-tag.t3 { bottom: 22%; left: 4%; animation-delay: 1.1s; }
.ai-tag.t4 { bottom: 18%; right: 6%; animation-delay: 1.7s; }

@keyframes ai-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ai-dash {
  to { stroke-dashoffset: -80; }
}

@keyframes ai-node {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes ai-ring {
  0% { transform: scale(0.75); opacity: 0.5; }
  100% { transform: scale(2.15); opacity: 0; }
}

@keyframes ai-glow {
  0%, 100% { box-shadow: 0 0 28px rgba(18, 196, 176, 0.35); }
  50% { box-shadow: 0 0 52px rgba(18, 196, 176, 0.7); }
}

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

@media (prefers-reduced-motion: reduce) {
  .ai-orbit,
  .ai-links path,
  .ai-nodes circle,
  .ai-pulse,
  .ai-core,
  .ai-tag {
    animation: none;
  }
}

/* Stats */
.stats {
  background: var(--white);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--navy);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
section {
  padding: 88px 0;
}

.section-kicker {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 8px 0 12px;
  color: var(--navy);
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  font-size: 1.15rem;
  color: var(--navy-mid);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(11, 29, 54, 0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  color: var(--navy);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.alt {
  background: var(--paper);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  background: var(--accent-soft);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.logo-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 72px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--navy-light);
  text-align: center;
  padding: 10px;
  font-size: 0.82rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy), #1c4a72);
  color: var(--white);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.page-hero {
  background: linear-gradient(160deg, #081525, var(--navy) 60%);
  color: var(--white);
  padding: 64px 0;
}

.page-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 36px 48px;
  align-items: start;
}

.form {
  position: relative;
  display: grid;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-wide {
  width: 100%;
  max-width: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  padding: 28px;
}

.form-wide .form-full,
.form-wide .form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.form-error {
  color: #b42318;
}

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

label {
  font-weight: 700;
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #f4f6f8;
}

.form-wide input,
.form-wide select {
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-wide textarea {
  min-height: 110px;
  background: var(--white);
}

.contact-meta {
  display: grid;
  gap: 16px;
}

.contact-item strong {
  display: block;
  color: var(--navy);
}

footer {
  background:
    radial-gradient(circle at 20% 30%, rgba(18, 196, 176, 0.08), transparent 28%),
    linear-gradient(180deg, #12161c 0%, #0b0e12 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='180' viewBox='0 0 220 180' fill='none'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M40 110l30-18 30 18v36l-30 18-30-18z'/%3E%3Cpath d='M70 92v36'/%3E%3Cpath d='M40 110l30 18 30-18'/%3E%3Cpath d='M140 40l24-14 24 14v28l-24 14-24-14z'/%3E%3Cpath d='M164 26v28'/%3E%3Cpath d='M140 40l24 14 24-14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 220px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
}

.footer-brand {
  display: block;
  margin: 0 auto 32px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}

.footer-brand .wordmark-amli {
  font-size: 2rem;
}

.footer-brand .wordmark-media {
  font-size: 0.9rem;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-contact-block {
  margin-left: auto;
  flex: 0 0 280px;
  width: 280px;
  text-align: left;
}

footer h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-cols p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 36ch;
}

.footer-agreements {
  display: grid;
  gap: 12px;
  padding-top: 28px;
}

.footer-agreements a {
  color: #fff;
  font-weight: 600;
}

.footer-agreements a::before {
  content: "›";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 800;
}

footer a:hover {
  color: var(--accent);
}

.footer-contact {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.footer-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 18px;
  font-size: 0.82rem;
}

.footer-bar-inner > p:first-child {
  margin: 0;
}

.footer-bar-inner span {
  color: var(--accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0b1d36;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

footer .footer-social a:hover {
  background: var(--accent);
  color: var(--navy);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-legal {
  margin: 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a {
  color: inherit;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 6px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-card .thumb {
  display: block;
  height: 160px;
  border-radius: 12px;
  margin: -8px -8px 16px;
  overflow: hidden;
  background: var(--navy-mid);
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h3 a:hover,
.article a {
  color: var(--accent-dark);
}

.article {
  max-width: 760px;
}

.article h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--navy);
}

.article-figure {
  margin: 0 0 28px;
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.article p,
.article li {
  color: #334155;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.jump-nav a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.88rem;
}

.jump-nav a:hover {
  background: var(--accent);
  color: var(--navy);
}

.integ {
  scroll-margin-top: 96px;
}

.list {
  margin: 0 0 16px;
  padding-left: 18px;
}

.list li {
  margin: 8px 0;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
}

.code-block {
  background: #081525;
  color: #d7e6f2;
  border-radius: 14px;
  padding: 16px 18px;
  overflow: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card .thumb {
  display: block;
  height: 160px;
  border-radius: 12px;
  margin: -8px -8px 16px;
  overflow: hidden;
  background: var(--navy-mid);
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 6px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  background: var(--paper);
  flex-shrink: 0;
}

.team-card h3 {
  margin-top: 16px;
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.team-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 88px;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px 24px;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .contact-layout,
  .cards,
  .team-grid,
  .stats-grid,
  .footer-cols,
  .cta-band,
  .logo-wall,
  .blog-head {
    grid-template-columns: 1fr;
  }

  .ai-stage {
    min-height: 340px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .footer-bar-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-cols {
    flex-direction: column;
  }

  .footer-contact-block {
    margin-left: 0;
    flex: none;
    width: auto;
  }

  .footer-legal {
    text-align: center;
  }
}

.cookie-dialog {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: min(380px, calc(100vw - 32px));
  visibility: hidden;
  opacity: 0;
  transform: translate3d(12px, 36px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.55s;
}

.cookie-dialog.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.cookie-card {
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  padding: 22px 22px 18px;
}

.cookie-card h2 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
}

.cookie-card > p {
  margin: 0 0 18px;
  color: #4a4a4a;
  font-size: 0.86rem;
  line-height: 1.55;
}

.cookie-card > p a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.cookie-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-btn-ghost {
  background: #ececec;
  color: #111;
}

.cookie-btn-ghost:hover {
  background: #e0e0e0;
}

.cookie-btn-solid {
  background: #111;
  color: #fff;
}

.cookie-btn-solid:hover {
  background: #2a2a2a;
}

.cookie-btn-full {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 0.88rem;
}

.cookie-view-detail {
  animation: cookie-detail-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookie-detail-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.cookie-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.cookie-row strong {
  display: block;
  font-size: 0.92rem;
  color: #111;
}

.cookie-row span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 400;
}

.cookie-switch {
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #d8d8d8;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-switch.is-on {
  background: #111;
}

.cookie-switch.is-on::after {
  transform: translateX(18px);
}

.cookie-switch.is-locked,
.cookie-switch:disabled {
  cursor: default;
  opacity: 1;
}

@media (max-width: 480px) {
  .cookie-dialog {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  .cookie-dialog,
  .cookie-dialog.is-open,
  .cookie-view-detail,
  .cookie-switch,
  .cookie-switch::after {
    transition: none;
    animation: none;
    transform: none;
  }
}

.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.jump-nav a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.88rem;
}
.jump-nav a:hover { background: var(--accent); color: var(--navy); }
.integ { scroll-margin-top: 96px; }
.list { margin: 0 0 16px; padding-left: 18px; }
.list li { margin: 8px 0; }
.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
}
.code-block {
  background: #081525;
  color: #d7e6f2;
  border-radius: 14px;
  padding: 16px 18px;
  overflow: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
}
.blog-card { display: flex; flex-direction: column; min-height: 100%; }
.blog-card .thumb {
  display: block;
  height: 160px;
  border-radius: 12px;
  margin: -8px -8px 16px;
  overflow: hidden;
  background: var(--navy-mid);
}
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--navy), #1c4a72); color: #fff; border-radius: 24px; padding: 48px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 12px 20px; font-weight: 700; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; background: var(--paper); padding: 1px 6px; border-radius: 6px; }
.page-hero .code-block, .integ code { background: rgba(255,255,255,.08); color: inherit; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 29, 54, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.logo-mark { width: 34px; height: 34px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.page-hero { background: linear-gradient(160deg, #081525, var(--navy) 60%); color: #fff; padding: 64px 0; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.78); }
.page-hero h1 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.12; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; }
.section-kicker { color: var(--accent-dark); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.section-title { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.12; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 12px; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 24px rgba(11,29,54,.04); }
.footer-cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-contact-block { margin-left: auto; flex: 0 0 280px; width: 280px; }
.btn-primary { background: var(--accent); color: var(--navy); }
.legal-doc {
  max-width: 760px;
  padding-bottom: 48px;
}
.legal-doc h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 32px 0 10px;
  color: var(--navy);
}
.legal-doc h3 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
  color: var(--navy);
}
.legal-doc p,
.legal-doc li {
  color: var(--muted);
  line-height: 1.65;
}
.legal-doc ul,
.legal-doc ol {
  margin: 0 0 16px;
  padding-left: 18px;
}
.legal-doc li {
  margin: 6px 0;
}
.legal-doc .legal-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.agreement-wrap {
  background: var(--paper);
  padding: 48px 0 72px;
}
.agreement-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 44px 48px;
}
.agreement-card .agreement-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--navy);
}
@media (max-width: 700px) {
  .agreement-card {
    padding: 24px 20px 32px;
  }

  .form-wide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .cards, .team-grid, .footer-grid, .footer-cols, .cta-band, .split, .contact-layout { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
