/* Aivore — aivore.ai
   Self-contained landing stylesheet. Visual language follows the company's
   product console: dark canvas, elevated panels, pink-to-plum brand gradient,
   IBM Plex Sans / IBM Plex Mono. No frameworks, no JavaScript. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #090b11;
  --panel: #151a26;
  --panel-raised: #1e2432;
  --surface: #0e1119;
  --line: #2b3141;
  --line-strong: #454d61;
  --ink: #f4f6fb;
  --muted: #9da5b6;
  --accent: #ff5c7a;
  --accent-soft: #351521;
  --plum: #7c5cff;
  --ok: #55d6a5;
  --font-sans: "IBM Plex Sans", "SF Pro Text", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  border-color: var(--line);
  margin: 0;
}

html {
  background: var(--canvas);
  color: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% -16%, rgb(124 92 255 / 15%), transparent 34rem),
    radial-gradient(circle at 0% 110%, rgb(255 92 122 / 7%), transparent 30rem),
    var(--canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(43 49 65 / 60%);
  background: rgb(9 11 17 / 80%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header nav {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 6px;
}

.brand svg {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-word {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  border-radius: 0.375rem;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  transition: color 160ms ease;
}

.nav-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding-inline: 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: filter 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background-image: linear-gradient(120deg, #ff5c7a, #7c5cff);
  color: #fff;
  box-shadow: 0 10px 32px -12px rgb(255 92 122 / 52%);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--panel-raised);
}

.btn-secondary svg {
  color: var(--accent);
}

.btn-header {
  display: none;
  height: 2.5rem;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .btn-header {
    display: inline-flex;
  }
}

/* Mobile menu: pure-CSS disclosure, no JS. */
.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  user-select: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary:hover {
  color: var(--ink);
}

.mobile-nav[open] summary {
  color: var(--ink);
}

.mobile-nav .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 13rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  padding: 0.5rem;
  box-shadow: 0 24px 70px -30px rgb(0 0 0 / 70%);
}

.mobile-nav .menu a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.mobile-nav .menu a:hover {
  color: var(--ink);
  background: var(--panel-raised);
}

.mobile-nav .menu .menu-cta {
  margin-top: 0.25rem;
  color: #fff;
  background-image: linear-gradient(120deg, #ff5c7a, #7c5cff);
  text-align: center;
  font-weight: 600;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* ---------- shared section bits ---------- */

.section {
  padding-block: 6rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
}

.section-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title {
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-top: 1rem;
  text-wrap: balance;
}

.section-copy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  max-width: 42rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  background-image:
    linear-gradient(rgb(255 92 122 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 92 122 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 18% 30%, rgb(255 92 122 / 11%), transparent 28rem),
    radial-gradient(circle at 85% 65%, rgb(124 92 255 / 12%), transparent 30rem);
  background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%;
  mask-image: linear-gradient(to bottom, black 15%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 15%, transparent 92%);
}

.hero-orb {
  position: absolute;
  right: -12rem;
  top: 1.5rem;
  width: 38rem;
  height: 38rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgb(124 92 255 / 16%), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3.5rem;
  padding-block: 4rem 5rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    padding-block: 5rem 6rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: rgb(21 26 38 / 70%);
  padding: 0.375rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

.badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero h1 {
  margin-top: 2rem;
  max-width: 48rem;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.gradient-text {
  background-image: linear-gradient(105deg, #ff6f88 12%, #d461a1 56%, #8b70ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

@media (min-width: 640px) {
  .hero-sub {
    font-size: 1.125rem;
  }
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Perimeter card */
.perimeter {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  border: 1px solid rgb(69 77 97 / 80%);
  border-radius: 1rem;
  background: rgb(21 26 38 / 90%);
  padding: 0.75rem;
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 45%),
    inset 0 0 0 1px rgb(255 255 255 / 5%);
}

@media (min-width: 1024px) {
  .perimeter {
    margin-inline: auto 0;
  }
}

.perimeter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.perimeter-state {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ok);
  letter-spacing: 0.14em;
}

.perimeter-state svg {
  width: 0.75rem;
  height: 0.75rem;
}

.perimeter-rows {
  display: grid;
  gap: 0.5rem;
  border: 1px dashed rgb(255 92 122 / 25%);
  border-radius: 0.75rem;
  background: rgb(9 11 17 / 60%);
  padding: 0.75rem;
}

.perimeter-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .perimeter-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.perimeter-row .k {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.perimeter-row .v {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.perimeter-note {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgb(9 11 17 / 40%);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.perimeter-note svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- cards ---------- */

.cards-3 {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1.75rem;
  transition: border-color 160ms ease;
}

@media (min-width: 1024px) {
  .card {
    padding: 2rem;
  }
}

.card:hover {
  border-color: var(--line-strong);
}

.card .num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Product tiles */
.cards-4 {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  padding: 1.75rem;
  transition: border-color 160ms ease, box-shadow 200ms ease;
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgb(255 92 122 / 70%), rgb(124 92 255 / 55%), transparent 82%);
}

.product:hover {
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px -38px rgb(255 92 122 / 48%);
}

.product .icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 92 122 / 20%);
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.product .icon svg {
  width: 1rem;
  height: 1rem;
}

.product h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}

.product > p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.product ul {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.product li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(244 246 251 / 85%);
}

.product li svg {
  margin-top: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- deployment timeline ---------- */

.timeline {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(43 49 65 / 60%);
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stage {
  background: var(--panel);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .stage {
    padding: 1.75rem;
  }
}

.stage .when {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage h3 {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.stage p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- security ---------- */

.split {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.guarantees {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.guarantees li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(244 246 251 / 85%);
}

.guarantees li svg {
  margin-top: 0.25rem;
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.check-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.check-list p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgb(244 246 251 / 80%);
}

.check-list .chip {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  flex-shrink: 0;
}

.check-list .chip svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent);
}

.contact-card {
  border: 1px solid rgb(69 77 97 / 80%);
  border-radius: 1rem;
  background: var(--panel);
  padding: 2rem;
  background-image:
    radial-gradient(circle at 82% 10%, rgb(124 92 255 / 16%), transparent 18rem),
    radial-gradient(circle at 10% 100%, rgb(255 92 122 / 12%), transparent 16rem);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-card .mail {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-card .addr {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: rgb(9 11 17 / 60%);
  padding: 0.8rem 1rem;
}

.contact-card .fine {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- privacy ---------- */

.privacy {
  border-top: 1px solid var(--line);
}

.privacy .cols {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .privacy .cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.privacy h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.privacy p {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .site-footer .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer .mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.site-footer .mark svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-footer .links a {
  border-radius: 4px;
  transition: color 160ms ease;
}

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