/* ==========================================================================
   Antbae: single stylesheet. No framework.
   Visual system shared with aurogen.org: warm paper palette, Fraunces +
   Hanken Grotesk, pill buttons, stroke line-art figures instead of photos.
   ========================================================================== */

:root {
  --ivory:       #F3F1EC;   /* page background (warm off-white) */
  --ivory-deep:  #E9E6DE;   /* alternating section background */
  --paper:       #FBFAF7;   /* cards / inputs */
  --ink:         #16181D;   /* headings (blue-black) */
  --ink-soft:    #3E4149;   /* body text */
  --ink-faint:   #6B6E77;   /* muted / labels */
  --line:        rgba(22,24,29,0.12);
  --line-strong: rgba(22,24,29,0.24);
  --accent:      #1E5FD8;   /* brand blue */
  --accent-deep: #1A4FB0;   /* hover / links */
  --accent-wash: #DCE6FB;   /* tints */
  --ok:          #12855f;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap:        1180px;
  --wrap-tight:  780px;
  --gutter:      clamp(1.25rem, 5vw, 4rem);
  --section-y:   clamp(3.5rem, 8vw, 7.5rem);
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 460;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
     text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-faint); }
p { text-wrap: pretty; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong { color: var(--ink); font-weight: 600; }
ul { padding-left: 1.15rem; }
::selection { background: var(--accent); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--tight { max-width: var(--wrap-tight); }
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section--alt { background: var(--ivory-deep); }
.section--ink { background: var(--ink); color: rgba(244,241,234,0.72); border-top: 0; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--ivory); }
.section--ink .eyebrow { color: #E7A98F; }
.section--ink a:not(.btn) { color: #fff; }
.section--ink .btn { color: var(--btn-fg); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; }
.center { text-align: center; }
.center .section-head, .center .lead { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent-deep);
  display: inline-block; margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.6; color: var(--ink-soft);
  max-width: min(52ch, 100%);
}
.muted { color: var(--ink-faint); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn::after { content: "\2192"; font-weight: 400; transition: transform 0.2s var(--ease); }
.btn:hover::after { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(22,24,29,0.05); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-deep); --btn-bd: var(--accent-deep); }
.btn--invert { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bd: var(--ivory); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--sm::after { content: none; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.wordmark svg { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--btn-fg); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.site-nav a:not(.btn)[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--accent); margin-top: 2px;
}
.nav__cta { flex-shrink: 0; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: 2px auto;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__cta { display: none; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%); transition: transform 0.3s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a.btn { margin-top: 1rem; justify-content: center; border-radius: 999px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 9vw, 7rem) var(--section-y); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,440px); } }
.hero-inner { max-width: 30rem; }
.hero-inner h1 { margin-bottom: 1.4rem; }
.hero-figure { width: 100%; max-width: 440px; margin-inline: auto; }
.hero-figure svg { width: 100%; height: auto; color: var(--ink); overflow: visible; }
@media (max-width: 719px) { .hero-figure { display: none; } }

/* page hero (interior pages) */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero .lead { margin: 0; }

/* ---------- line-art figure animation ---------- */
.hf-struct { stroke: currentColor; stroke-opacity: 0.4; }
.hf-accent { stroke: var(--accent); }
.hf-accent-fill { fill: var(--accent); }
.hf-panel { fill: var(--paper); stroke: currentColor; stroke-opacity: 0.4; }
.hf-label { fill: var(--ink-faint); font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; }
@keyframes hf-flow { to { stroke-dashoffset: -20; } }
@keyframes hf-led  { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes hf-pulse{ 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.16); opacity: 1; } }
.hf-flow { stroke-dasharray: 3 6; animation: hf-flow 1s linear infinite; }
.hf-led  { animation: hf-led 2.6s ease-in-out infinite; }
.hf-hub  { transform-box: fill-box; transform-origin: center; animation: hf-pulse 3s ease-in-out infinite; }

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- feature (icon + copy) ---------- */
.feature-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 1rem; }
.feature h3 { margin-bottom: 0.4rem; }
.feature p { font-size: 0.98rem; }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.card, .card--link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card--link:hover {
  transform: translateY(-3px); border-color: var(--line-strong);
  box-shadow: 0 16px 40px -22px rgba(22,24,29,0.35);
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.96rem; }
.card .feature-icon { margin-bottom: 0.9rem; }
.card__link { margin-top: 0.9rem; font-weight: 600; font-size: 0.92rem; display: inline-block; }

/* ---------- stat band ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--ivory); padding: 1.6rem 1.25rem; text-align: center; }
.section--alt .stat { background: var(--ivory-deep); }
.stat-num { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 0.45rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ---------- tick list ---------- */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.tick-list li { position: relative; padding-left: 1.6rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- pricing plans ---------- */
.plans { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan__ribbon {
  position: absolute; top: -0.7rem; left: 1.5rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.plan__label { font-size: 0.75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.plan__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); margin-bottom: 0.35rem; }
.plan__price { font-family: var(--font-serif); font-size: 2rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.plan__price span { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.plan__desc { font-size: 0.9rem; color: var(--ink-faint); margin-top: 0.6rem; }
.plan__feats { list-style: none; margin: 1.1rem 0 1.5rem; padding: 0; font-size: 0.92rem; }
.plan__feats li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; border-top: 1px solid var(--line); }
.plan__feats li:first-child { border-top: 0; }
.plan__feats li::before {
  content: ""; position: absolute; left: 0; top: 0.68rem;
  width: 13px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* ---------- spec table (dedicated servers) ---------- */
.spec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
table.spec th, table.spec td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th {
  background: var(--ivory-deep); font-family: var(--font-sans); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600;
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: var(--accent-wash); }
table.spec .spec__name { font-family: var(--font-serif); font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
table.spec .spec__price { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }

@media (max-width: 760px) {
  table.spec { min-width: 0; }
  table.spec thead { display: none; }
  table.spec tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; padding: 1rem 1.1rem; }
  table.spec td { border: 0; padding: 0.15rem 0; }
  table.spec td::before { content: attr(data-label); display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
  table.spec .spec__name, table.spec td[data-label="Buy"] { grid-column: 1 / -1; }
  table.spec td[data-label="Buy"] { margin-top: 0.6rem; }
  table.spec td[data-label="Buy"]::before { display: none; }
  table.spec .btn { width: 100%; justify-content: center; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  padding-top: 1rem; font-size: 0.82rem; color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); padding: 0 1.1rem;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-weight: 400; transition: transform .15s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.1rem; font-size: 0.96rem; margin: 0; }

/* ---------- prose (legal / about) ---------- */
.prose { max-width: 72ch; overflow-wrap: anywhere; word-break: break-word; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }
.prose a { overflow-wrap: anywhere; }
.prose img, .prose table, .prose pre { max-width: 100%; }
.prose table { display: block; overflow-x: auto; }
.prose pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr); } }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.8rem 0.95rem;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail h4 { margin-bottom: 0.35rem; }
.contact-detail a, .contact-detail p { font-size: 0.98rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ivory-deep); border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(5, minmax(0,1fr)); gap: 1.75rem 2rem; }
.footer-brand p { font-size: 0.92rem; margin-top: 0.9rem; max-width: 34ch; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; font-size: 0.9rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h4 { margin-bottom: 0.35rem; }
.footer-col a { font-size: 0.92rem; color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-faint);
}
.footer-reg { margin-top: 0.75rem; font-size: 0.76rem; color: var(--ink-faint); max-width: 70ch; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
