/* ============================================================
   Axonus — marketing site
   Warm paper / cream. Ink-brown type. Terracotta accent.
   ============================================================ */

:root {
  /* Surfaces */
  --paper: #f5efe3;
  --paper-2: #efe7d7;
  --card: #fbf7ef;
  --card-2: #fdfaf4;

  /* Ink */
  --ink: #2b2620;
  --ink-2: #5b5245;
  --ink-3: #8a7f6d;

  /* Lines & accent */
  --line: #e4d9c4;
  --line-2: #d8cbb2;
  --accent: #c05f3c;      /* terracotta */
  --accent-ink: #9d492b;  /* darker for text on paper */
  --accent-soft: #f0d9cd;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(59, 43, 28, 0.06);
  --shadow: 0 18px 40px -24px rgba(59, 43, 28, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(59, 43, 28, 0.45);

  --maxw: 1120px;
  --nav-h: 68px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--tint {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-block: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--card);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(157, 73, 43, 0.75);
}
.btn--solid:hover {
  background: var(--accent-ink);
  box-shadow: 0 14px 30px -12px rgba(157, 73, 43, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--ink-2);
  background: var(--card);
}

.btn--sm {
  --pad-y: 9px;
  --pad-x: 16px;
  font-size: 0.9rem;
}
.btn--xs {
  --pad-y: 7px;
  --pad-x: 13px;
  font-size: 0.82rem;
}
.btn--lg {
  --pad-y: 16px;
  --pad-x: 30px;
  font-size: 1.05rem;
}

.link-muted {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.link-muted:hover {
  color: var(--accent-ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 239, 227, 0.8);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 239, 227, 0.92);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 2px;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft warm glow, no purple */
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 60%;
  background: radial-gradient(
    60% 60% at 70% 0%,
    rgba(192, 95, 60, 0.12),
    transparent 70%
  );
  pointer-events: none;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 14ch;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.hero__note {
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* Desktop shell mock */
.shell-mock {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.shell-mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.shell-mock__bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}
.shell-mock__bar .dot:first-child {
  background: var(--accent);
}
.shell-mock__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-left: 6px;
}
.shell-mock__title {
  font-family: var(--serif);
  font-weight: 600;
}
.shell-mock__tabs {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.shell-mock__tabs b {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-3);
  padding: 5px 12px;
  border-radius: 999px;
}
.shell-mock__tabs b.is-active {
  color: var(--ink);
  background: var(--card-2);
  box-shadow: var(--shadow-sm);
}
.shell-mock__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.today {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.today li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.today li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.today__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-ink);
  min-width: 46px;
}
.today em {
  color: var(--ink-3);
  font-style: normal;
}
.countdown {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.countdown strong {
  color: var(--accent-ink);
}

.card--assistant .bubble {
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  max-width: 92%;
}
.bubble--user {
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-left: auto;
}
.bubble--ai {
  background: var(--ink);
  color: var(--card);
}

/* ---------- Strip / lede ---------- */
.strip {
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid var(--line);
}
.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.3;
  max-width: 30ch;
  color: var(--ink);
}
.lede em {
  font-style: italic;
  color: var(--accent-ink);
}
.strip__inner {
  max-width: 900px;
}

/* ---------- Section heads ---------- */
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section__head h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}
.section__head--left {
  margin-left: 0;
  text-align: left;
}
.section__sub {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--ink-2);
}
.section__sub--wide {
  max-width: 46ch;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Feature cards ---------- */
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--ink-2);
  font-size: 0.98rem;
}
.feature--accent {
  background: linear-gradient(180deg, var(--accent-soft), var(--card));
  border-color: var(--line-2);
}

/* ---------- Data scientist agent ---------- */
.agent__grid {
  margin-bottom: 18px;
}
.agent__output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: var(--ink);
  color: var(--card);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.agent__output h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.agent__output-text p {
  color: rgba(251, 247, 239, 0.82);
  font-size: 1.02rem;
}
.agent__sources .card__label {
  color: rgba(251, 247, 239, 0.6);
}
.agent__sources-note {
  color: rgba(251, 247, 239, 0.7);
  font-size: 0.9rem;
  margin: 16px 0 10px;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
/* chips on dark agent panel */
.agent__sources .chip {
  background: rgba(251, 247, 239, 0.08);
  border-color: rgba(251, 247, 239, 0.18);
  color: rgba(251, 247, 239, 0.92);
}
.agent__sources .chip--db {
  background: rgba(192, 95, 60, 0.18);
  border-color: rgba(192, 95, 60, 0.4);
  color: #f4c9b7;
}

/* ---------- Mail ---------- */
.mail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid var(--accent-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist strong {
  color: var(--ink);
}
.checklist em {
  font-style: italic;
  color: var(--ink);
}

.mail__mock {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 18px;
}
.toast {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.toast__head {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.toast__badge,
.toast__vip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.toast__badge {
  background: var(--ink);
  color: var(--card);
}
.toast__vip {
  background: var(--accent);
  color: #fff;
}
.toast__from {
  font-weight: 600;
}
.toast__subject {
  color: var(--ink);
  margin: 2px 0 8px;
}
.toast__summary {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.toast__actions {
  display: flex;
  gap: 10px;
}
.vip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---------- Schedule ---------- */
.schedule {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: 12px;
}
.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}
.conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.conditions li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--ink-2);
}
.cond__k {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 10px;
}

/* ---------- Panels (limits) ---------- */
.panel {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--card);
}
.panel h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.panel li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}
.panel li::before {
  position: absolute;
  left: 0;
  top: 0;
}
.panel--can {
  background: linear-gradient(180deg, #eef2e6, var(--card));
}
.panel--can li::before {
  content: "✓";
  color: #5b7a3a;
  font-weight: 700;
}
.panel--cannot li::before {
  content: "×";
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
}
.tick,
.cross {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tick {
  background: #dfe8cf;
  color: #4a6a2a;
}
.cross {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.panel__foot {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* ---------- Values ---------- */
.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 900px;
  margin-inline: auto;
}
.values li {
  position: relative;
  padding-left: 26px;
  font-size: 1.06rem;
  color: var(--ink);
}
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(72px, 10vw, 128px) 0;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-top: 1px solid var(--line);
}
.cta__inner {
  text-align: center;
  max-width: 640px;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}
.cta p {
  color: var(--ink-2);
  font-size: 1.1rem;
  margin-bottom: 28px;
}
.cta__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(251, 247, 239, 0.72);
  padding: 56px 0 32px;
}
.footer .brand__name {
  color: #fff;
}
.footer .brand__mark {
  width: 30px;
  height: 30px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(251, 247, 239, 0.14);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__tag {
  color: rgba(251, 247, 239, 0.66);
  font-size: 0.95rem;
}
.footer__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.footer__links a {
  color: rgba(251, 247, 239, 0.72);
  font-size: 0.92rem;
}
.footer__links a:hover {
  color: #fff;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.86rem;
}
.footer__future span {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid rgba(192, 95, 60, 0.5);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 10px;
}
.footer__copy {
  color: rgba(251, 247, 239, 0.5);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    margin: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
  }
  .nav__links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__toggle {
    display: inline-flex;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .mail,
  .schedule,
  .agent__output {
    grid-template-columns: 1fr;
  }
  .mail__mock,
  .quote {
    position: static;
  }
  .shell-mock__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .shell-mock__tabs {
    display: none;
  }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
