/* Septagon AI Systems, mobile first. Breakpoints: 560, 640, 900, 960px. */

:root {
  --paper: #f5f7fb;
  --surface: #ffffff;
  --sunk: #ebeff6;
  --ink: #0f172a;
  --ink-2: #44506a;
  --ink-3: #5f6b85;
  --line: #dfe4ee;
  --line-strong: #c6cedc;

  /* From the logo: the badge's indigo border and the cyan "AI". */
  --indigo: #5b5fd6;
  --indigo-hover: #4a4ec4;
  --indigo-text: #4b4fc9;
  --cyan: #46d6f7;
  --cyan-text: #0a78a8;
  --amber: #f5b544;

  --navy: #0a1022;
  --navy-2: #121a33;
  --navy-line: rgba(255, 255, 255, 0.1);
  --on-navy: #eef2fb;
  --on-navy-2: #a9b3cc;

  --icon-tile: #0f2c40;
  --error: #b42318;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -14px rgba(15, 23, 42, 0.16);
  --header-h: 68px;
  --heptagon: polygon(50% 100%, 9.9% 80.2%, 0% 35.7%, 27.7% 0%, 72.3% 0%, 100% 35.7%, 90.1% 80.2%);

  --font-sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020;
    --surface: #121a2e;
    --sunk: #080c18;
    --ink: #eef2fb;
    --ink-2: #b6bfd4;
    --ink-3: #8c96ae;
    --line: #222b42;
    --line-strong: #323d58;

    --indigo-text: #a3a6f5;
    --cyan-text: #5fd6f5;

    --navy: #060a16;
    --navy-2: #10172b;

    --icon-tile: #18304a;
    --error: #ff9c92;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    color-scheme: dark;
  }
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); }

:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Typography ------------------------------------------------------------ */

h1 {
  font-size: clamp(2.25rem, 1.45rem + 3.6vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.3vw, 2.875rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-2);
  max-width: 62ch;
}

/* Section label with a small heptagon, the shape of the logo badge. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--indigo);
  clip-path: var(--heptagon);
}
.eyebrow-on-dark { color: var(--cyan); }

/* Buttons --------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.button:hover .icon { transform: translateX(2px); }

.button-primary { background: var(--indigo); color: #fff; }
.button-primary:hover { background: var(--indigo-hover); }

.button-ghost { border-color: rgba(255, 255, 255, 0.26); color: var(--on-navy); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.42); }

.button-small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }

.button[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 34, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--navy-line);
  color: var(--on-navy);
}

.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand { display: inline-flex; color: #fff; margin-right: auto; border-radius: 6px; text-decoration: none; }

/* The logo: text plus badge, sized with font-size. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-badge { width: 1.5em; height: 1.5em; }
.logo-sub { position: relative; top: 0.2em; font-size: 0.64em; font-weight: 600; }
@media (min-width: 960px) { .site-header .logo { font-size: 22px; } }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-navy);
  cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
.nav-toggle .icon-close,
.site-header[data-open] .nav-toggle .icon-open { display: none; }
.site-header[data-open] .nav-toggle .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px 20px 20px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
.site-header[data-open] .site-nav { display: block; }

.site-nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--navy-line);
  color: var(--on-navy);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav li:last-child a { border-bottom: 0; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-header[data-open] .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 4px; margin-right: 8px; }
  .site-nav a {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--on-navy-2);
    font-size: 0.95rem;
    font-weight: 550;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(50% 45% at 85% 15%, rgba(91, 95, 214, 0.3), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(70, 214, 247, 0.12), transparent 70%),
    var(--navy);
  color: var(--on-navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 95%);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  top: -12%;
  right: -30%;
  width: min(120vw, 820px);
  height: auto;
  fill: none;
  stroke: rgba(91, 95, 214, 0.28);
  stroke-width: 0.35;
  transform: rotate(8deg);
}

.hero-grid { display: grid; gap: 44px; }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .highlight {
  background: linear-gradient(90deg, var(--cyan), #9a9ef6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: var(--on-navy-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 559px) { .actions .button { flex: 1 1 100%; } }

@media (min-width: 960px) {
  .hero { padding: 104px 0 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 64px; }
  /* The whole heptagon, framing the example card. */
  .hero-shape {
    top: 50%;
    right: max(-100px, calc((100vw - 72rem) / 2 - 110px));
    width: 680px;
    transform: translateY(-50%) rotate(8deg);
    stroke: rgba(124, 128, 234, 0.3);
  }
}

/* Example review queue */
.queue {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(25, 34, 64, 0.92), rgba(16, 23, 45, 0.92));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  font-size: 0.9375rem;
}

.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-title { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 650; }
.queue-title svg { width: 22px; height: 22px; }

.pill {
  padding: 2px 10px;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  color: var(--on-navy-2);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.queue-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.queue-stats dt { color: var(--on-navy-2); font-size: 0.72rem; line-height: 1.3; }
.queue-stats dd { margin: 4px 0 0; color: #fff; font: 700 1.35rem/1.1 var(--font-mono); }
.queue-stats .is-flag { color: var(--amber); }

.queue-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--navy-line);
}
.queue-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.queue-id { color: var(--on-navy-2); font: 0.78rem/1.5 var(--font-mono); }
.queue-amount { grid-row: 1; grid-column: 2; justify-self: end; color: #fff; font: 600 0.85rem/1.5 var(--font-mono); }
.queue-desc { color: #fff; }
.queue-list .tag { grid-row: 2; grid-column: 2; justify-self: end; align-self: center; }
.queue-reason { grid-column: 1 / -1; color: #f7c873; font-size: 0.8rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}
.tag .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.tag-ok { background: rgba(70, 214, 247, 0.12); color: #7fe2fa; }
.tag-flag { background: rgba(245, 181, 68, 0.14); color: #f7c873; }

/* Sections -------------------------------------------------------------- */

.section { padding: 72px 0; }
.section-head { max-width: 48rem; margin-bottom: 40px; }
.section-sunk { background: var(--sunk); }

@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section-head { margin-bottom: 56px; }
}

.intro .lead { max-width: 54rem; }
.intro h2 { max-width: 40rem; }

/* Heptagon icon tile, like the logo badge. */
.card-icon,
.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--icon-tile);
  color: var(--cyan);
  clip-path: var(--heptagon);
}
.card-icon .icon,
.step-icon .icon { width: 22px; height: 22px; }

/* Filter cards */
.card-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }

/* Phones: icon next to the title keeps the cards compact. */
@media (max-width: 639px) {
  .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; }
  .card h3 { margin: 0; }
  .card p { grid-column: 1 / -1; margin-top: 12px; }
}

/* How it works */
.steps { display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 32px 72px; }
.steps .step-icon { position: absolute; left: 0; top: 0; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25.5px;
  top: 60px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.steps h3 { padding-top: 12px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; max-width: 34ch; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding: 76px 0 0; }
  .steps li:not(:last-child)::after { left: 68px; right: -28px; top: 26px; bottom: auto; width: auto; height: 1px; }
}

/* Benefits */
.benefits { display: grid; gap: 16px; counter-reset: benefit; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(2, 1fr); } }

.benefits li {
  counter-increment: benefit;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.benefits li::before {
  content: counter(benefit, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 2.25rem/1 var(--font-sans);
  letter-spacing: -0.03em;
}
.benefits h3 { margin-bottom: 6px; }
.benefits p { color: var(--ink-2); font-size: 0.98rem; }

/* Contact --------------------------------------------------------------- */

.section-contact {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(91, 95, 214, 0.28), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(70, 214, 247, 0.12), transparent 70%),
    var(--navy);
  color: var(--on-navy);
}
.section-contact h2 { color: #fff; }
.section-contact .lead { color: var(--on-navy-2); }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }

.contact-list { margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }
.contact-list .icon { color: var(--cyan); }
.contact-list a { text-decoration-thickness: 1px; }
.contact-list a:hover { text-decoration-thickness: 2px; }

.form-card {
  padding: 24px 20px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
@media (min-width: 560px) { .form-card { padding: 32px; } }

.contact-form { display: grid; gap: 18px; }
@media (min-width: 560px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.field-wide { grid-column: 1 / -1; }

.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 0.9rem; font-weight: 650; }
.req { color: var(--error); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--ink-3); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91, 95, 214, 0.3); }
.field [aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: 6px 0 0; color: var(--error); font-size: 0.85rem; font-weight: 600; }
.field-error:empty { display: none; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.topic:hover span { border-color: var(--ink-3); }
.topic input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.topic input:focus-visible + span { outline: 3px solid var(--cyan-text); outline-offset: 2px; }

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

.form-foot { display: flex; flex-direction: column; gap: 14px; }
.form-foot .button { width: 100%; }
@media (min-width: 560px) {
  .form-foot { flex-direction: row; align-items: center; }
  .form-foot .button { width: auto; flex: none; }
}
.fineprint { margin: 0; color: var(--ink-3); font-size: 0.82rem; }

.form-status:focus { outline: none; }
.notice { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid; border-radius: 12px; font-size: 0.95rem; }
.notice .icon { width: 22px; height: 22px; margin-top: 1px; }
.notice p { margin: 8px 0 0; }
.notice .button { margin-top: 12px; }
.notice-success { background: #ecf8fd; border-color: #aee3f5; color: #0b4a66; }
.notice-error { background: #fdeeec; border-color: #f2bdb7; color: #7a1c15; }
.notice a { font-weight: 700; }
.notice .button-dark { background: var(--ink); color: var(--surface); }

@media (prefers-color-scheme: dark) {
  .notice-success { background: #0e2533; border-color: #1d4b63; color: #b7ecfb; }
  .notice-error { background: #2a1513; border-color: #5a2a25; color: #ffc2bb; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer { padding: 56px 0 28px; background: #070c1a; color: var(--on-navy-2); font-size: 0.95rem; }
@media (prefers-color-scheme: dark) { .site-footer { border-top: 1px solid var(--line); } }

.footer-inner { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.2fr 1fr; align-items: start; } }

.footer-brand .logo { font-size: 22px; }
.footer-brand p { max-width: 38ch; margin-top: 16px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 800px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.85rem;
}

/* Error page */
.error-page { min-height: 60vh; }
.error-page h1 { margin-bottom: 16px; }
.error-page .button { margin-top: 24px; }

/* Motion ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
