/* AlliumAI — company site. No external requests: system fonts only. */

:root {
  --bg: #070c10;
  --bg-2: #0a1218;
  --panel: #0e1820;
  --line: rgba(173, 216, 230, 0.10);
  --text: #e8eef3;
  --muted: #93a4b1;
  --accent: #2fd4a7;
  --accent-dim: rgba(47, 212, 167, 0.14);
  --warn: #ff5d5d;
  --maxw: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #04211a; }

/* ---------- nav ---------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(7, 12, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand em { font-style: normal; color: var(--accent); }

.brand-mark { width: 26px; height: 26px; }
.brand-mark circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.85;
}
.brand-mark .core { fill: var(--accent); stroke: none; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 28px); }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-links a.cta {
  color: #062c22;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 650;
}

.nav-links a.cta:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .nav-links a:not(.cta) { display: none; }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(47, 212, 167, 0.07), transparent 60%),
    var(--bg);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 48px) 80px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 760;
  max-width: 20ch;
}

h1 .accent {
  color: var(--accent);
  white-space: nowrap;
}

.hero .sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 650;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s, filter 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary { background: var(--accent); color: #062c22; }
.btn.primary:hover { filter: brightness(1.1); }

.btn.ghost {
  color: var(--text);
  border: 1px solid rgba(232, 238, 243, 0.22);
}
.btn.ghost:hover { background: rgba(232, 238, 243, 0.06); }

.btn.big { font-size: 18px; padding: 16px 34px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  list-style: none;
}

.badges li {
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(14, 24, 32, 0.55);
  padding: 7px 14px;
  border-radius: 999px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: hint 2.2s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 130px) clamp(20px, 4vw, 48px);
}

.kicker {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 730;
  max-width: 24ch;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 800px) {
  .section-grid { grid-template-columns: 1fr; }
}

.prose p { color: var(--muted); font-size: 1.06rem; }
.prose p + p { margin-top: 18px; }
.prose em { color: var(--text); font-style: italic; }

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

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}

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

@media (max-width: 720px) {
  .cards, .cards.quad { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px 28px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 212, 167, 0.35);
}

.card .step {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.85;
}

.card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 0.99rem; }

.card.slim { padding: 26px 24px; }
.card.slim h3 { font-size: 1.08rem; }
.card.slim p { font-size: 0.95rem; }

.card .role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

/* ---------- credo ---------- */

.section.dark {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section.dark .kicker { margin-bottom: 16px; }
.section.dark h2 { margin-bottom: 8px; }

.credo {
  list-style: none;
  margin-top: 44px;
  display: grid;
  gap: 0;
}

.credo li {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "num rule" "num why";
  column-gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.credo li:last-child { border-bottom: 1px solid var(--line); }

.credo .num {
  grid-area: num;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 7px;
}

.credo .rule {
  grid-area: rule;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.credo .why {
  grid-area: why;
  margin-top: 10px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 560px) {
  .credo li { grid-template-columns: 44px 1fr; column-gap: 14px; }
}

/* ---------- standing ---------- */

.section.standing { padding-top: 40px; padding-bottom: 40px; }

.standing-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .standing-row { grid-template-columns: repeat(2, 1fr); }
}

.stand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(14, 24, 32, 0.45);
}

.stand-k {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stand-v { font-weight: 650; font-size: 15.5px; }

.privacy {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

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

.section.contact {
  text-align: center;
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
}

.section.contact h2 { margin: 0 auto; }

.section.contact .sub { color: var(--muted); margin: 16px 0 34px; }

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

footer {
  border-top: 1px solid var(--line);
  padding: 44px clamp(20px, 4vw, 48px) 36px;
  background: var(--bg-2);
}

.foot-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.foot-brand {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.foot-brand em { font-style: normal; color: var(--accent); }

.foot-fine {
  max-width: var(--maxw);
  margin: 26px auto 0;
  color: rgba(147, 164, 177, 0.55);
  font-size: 12.5px;
}

.foot-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-link:hover { color: var(--text); }

/* ---------- reveal animation ---------- */

/* Without JavaScript nothing can add .in, so reveal everything statically. */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  .card, .btn { transition: none; }
}
