/* Aark Digital — Main Stylesheet
   Brand prefix: ark
   Palette: #080D14 bg / #00C2A8 accent / Space Grotesk + JetBrains Mono
*/

/* =========================================================
   FONTS & CUSTOM PROPERTIES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand colors */
  --ark-bg:          #080D14;
  --ark-bg-alt:      #0D1520;
  --ark-bg-card:     #111827;
  --ark-bg-card-hover: #1A2433;
  --ark-bg-light:    #F5F7FA;
  --ark-bg-light-alt:#EFF2F7;
  --ark-bg-white:    #FFFFFF;

  /* Accent */
  --ark-accent:      #00C2A8;
  --ark-accent-aa-light: #007A6B;
  --ark-accent-warn: #F59E0B;
  --ark-accent-danger: #EF4444;
  --ark-accent-positive: #22C55E;

  /* Foreground — dark context */
  --ark-fg-d1:       #F0F6FF;
  --ark-fg-d2:       #94A3B8;
  --ark-fg-d3:       #64748B;
  --ark-fg-d-accent: #00C2A8;

  /* Foreground — light context */
  --ark-fg-l1:       #0D1520;
  --ark-fg-l2:       #374151;
  --ark-fg-l3:       #6B7280;

  /* Borders */
  --ark-border-d:    #1E2D3D;
  --ark-border-l:    #E2E8F0;

  /* Typography */
  --ark-font-display: 'Space Grotesk', sans-serif;
  --ark-font-body:    'Inter', sans-serif;
  --ark-font-mono:    'JetBrains Mono', 'Cascadia Code', monospace;

  /* Spacing */
  --ark-section-py:  96px;
  --ark-section-py-m: 64px;
  --ark-container:   1200px;
  --ark-radius:      4px;
  --ark-radius-sm:   2px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ark-font-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--ark-bg);
  color: var(--ark-fg-d1);
  -webkit-font-smoothing: antialiased;
}

/* Dark-top pages (default) */
body.ark-page--dark-top {
  background: var(--ark-bg);
  color: var(--ark-fg-d1);
}

/* Light-top pages */
body.ark-page--light-top {
  background: var(--ark-bg-light);
  color: var(--ark-fg-l1);
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--ark-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Dark context headings */
body.ark-page--dark-top h1,
.ark-section--dark h1,
.ark-section--dark-alt h1,
.ark-section--dark-card h1 { color: var(--ark-fg-d1); }

body.ark-page--dark-top h2,
.ark-section--dark h2,
.ark-section--dark-alt h2,
.ark-section--dark-card h2 { color: var(--ark-fg-d1); }

body.ark-page--dark-top h3,
.ark-section--dark h3,
.ark-section--dark-alt h3,
.ark-section--dark-card h3 { color: var(--ark-fg-d1); }

/* Light context headings */
body.ark-page--light-top h1,
.ark-section--light h1,
.ark-section--light-alt h1,
.ark-section--white h1 { color: var(--ark-fg-l1); }

body.ark-page--light-top h2,
.ark-section--light h2,
.ark-section--light-alt h2,
.ark-section--white h2 { color: var(--ark-fg-l1); }

body.ark-page--light-top h3,
.ark-section--light h3,
.ark-section--light-alt h3,
.ark-section--white h3 { color: var(--ark-fg-l2); }

h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; font-weight: 600; }

.ark-eyebrow {
  font-family: var(--ark-font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

/* Eyebrow colors by context */
.ark-section--dark    .ark-eyebrow,
.ark-section--dark-alt .ark-eyebrow,
.ark-section--dark-card .ark-eyebrow,
.ark-hero--dark .ark-eyebrow { color: var(--ark-accent); }

.ark-section--light   .ark-eyebrow,
.ark-section--light-alt .ark-eyebrow,
.ark-section--white   .ark-eyebrow { color: var(--ark-accent-aa-light); }

/* Mono data numbers */
.ark-mono {
  font-family: var(--ark-font-mono);
  font-weight: 500;
  color: var(--ark-accent);
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.ark-container {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ark-section {
  padding: var(--ark-section-py) 0;
}

/* Section backgrounds */
.ark-section--dark     { background: var(--ark-bg); }
.ark-section--dark-alt { background: var(--ark-bg-alt); }
.ark-section--dark-card { background: var(--ark-bg-card); }
.ark-section--light    { background: var(--ark-bg-light); }
.ark-section--light-alt { background: var(--ark-bg-light-alt); }
.ark-section--white    { background: var(--ark-bg-white); }

/* Text colors in section contexts */
.ark-section--dark p,
.ark-section--dark-alt p,
.ark-section--dark-card p { color: var(--ark-fg-d2); }

.ark-section--light p,
.ark-section--light-alt p,
.ark-section--white p { color: var(--ark-fg-l2); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.ark-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--ark-bg);
  border-bottom: 1px solid var(--ark-border-d);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ark-nav--scrolled {
  background: rgba(8, 13, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ark-border-d);
}

/* Light-top pages: nav forced solid dark */
body.ark-page--light-top .ark-nav {
  background: var(--ark-bg);
  border-bottom: 1px solid var(--ark-border-d);
}

.ark-nav__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ark-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ark-nav__logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
}

.ark-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.ark-nav__link {
  font-family: var(--ark-font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ark-fg-d2);
  padding: 8px 12px;
  border-radius: var(--ark-radius);
  transition: color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  display: block;
}

.ark-nav__link:hover { color: var(--ark-fg-d1); }

.ark-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ark-nav__signin {
  font-family: var(--ark-font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ark-fg-d2);
  padding: 8px 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ark-nav__signin:hover { color: var(--ark-fg-d1); }

/* Mobile hamburger */
.ark-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

.ark-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ark-fg-d2);
  transition: all 0.2s ease;
}

.ark-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ark-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.ark-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ark-nav__mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--ark-bg-alt);
  border-bottom: 1px solid var(--ark-border-d);
  padding: 16px 24px 24px;
  z-index: 99;
}

.ark-nav__mobile.is-open { display: block; }

.ark-nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.ark-nav__mobile-links a {
  display: block;
  font-family: var(--ark-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ark-fg-d2);
  padding: 10px 0;
  border-bottom: 1px solid var(--ark-border-d);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ark-nav__mobile-links a:hover { color: var(--ark-fg-d1); }

.ark-nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.ark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ark-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--ark-radius);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ark-btn--primary {
  background: var(--ark-accent);
  color: var(--ark-bg);
  border-color: var(--ark-accent);
}
.ark-btn--primary:hover {
  background: #00a892;
  border-color: #00a892;
  color: var(--ark-bg);
}

.ark-btn--outline {
  background: transparent;
  color: var(--ark-accent);
  border-color: var(--ark-accent);
}
.ark-btn--outline:hover {
  background: rgba(0, 194, 168, 0.08);
  color: var(--ark-accent);
}

.ark-btn--ghost-dark {
  background: transparent;
  color: var(--ark-fg-d2);
  border-color: var(--ark-border-d);
}
.ark-btn--ghost-dark:hover {
  color: var(--ark-fg-d1);
  border-color: var(--ark-fg-d2);
}

.ark-btn--ghost-light {
  background: transparent;
  color: var(--ark-fg-l2);
  border-color: var(--ark-border-l);
}
.ark-btn--ghost-light:hover {
  color: var(--ark-fg-l1);
  border-color: var(--ark-fg-l1);
}

.ark-btn--sm {
  font-size: 11px;
  padding: 6px 14px;
}

.ark-btn--full { width: 100%; justify-content: center; }

/* =========================================================
   HERO — DARK (INDEX)
   ========================================================= */
.ark-hero {
  background: var(--ark-bg);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.ark-hero__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.ark-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 194, 168, 0.1);
  border: 1px solid rgba(0, 194, 168, 0.25);
  color: var(--ark-accent);
  font-family: var(--ark-font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--ark-radius-sm);
  margin-bottom: 24px;
}

.ark-hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--ark-accent-positive);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.ark-hero__headline {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ark-fg-d1);
  margin-bottom: 20px;
}

.ark-hero__headline em {
  font-style: normal;
  color: var(--ark-accent);
}

.ark-hero__subhead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ark-fg-d2);
  margin-bottom: 36px;
  max-width: 480px;
}

.ark-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ark-hero__visual { position: relative; }

/* =========================================================
   SUB-PAGE HERO — DARK
   ========================================================= */
.ark-subhero {
  padding: 56px 0 48px;
  position: relative;
}

.ark-subhero--dark {
  background: var(--ark-bg);
  border-bottom: 1px solid var(--ark-border-d);
}

.ark-subhero--light {
  background: var(--ark-bg-light);
  border-bottom: 1px solid var(--ark-border-l);
}

.ark-subhero__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ark-subhero__headline {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 720px;
}

.ark-subhero--dark .ark-subhero__headline { color: var(--ark-fg-d1); }
.ark-subhero--light .ark-subhero__headline { color: var(--ark-fg-l1); }

.ark-subhero__subhead {
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 0;
}

.ark-subhero--dark .ark-subhero__subhead { color: var(--ark-fg-d2); }
.ark-subhero--light .ark-subhero__subhead { color: var(--ark-fg-l2); }

/* Breadcrumb inside subhero */
.ark-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ark-font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.ark-subhero--dark .ark-breadcrumb { color: var(--ark-fg-d3); }
.ark-subhero--light .ark-breadcrumb { color: var(--ark-fg-l3); }

.ark-breadcrumb a:hover { color: var(--ark-accent); }
.ark-breadcrumb__sep { color: var(--ark-border-d); }

/* Split hero variant (for feature pages) */
.ark-subhero__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
}

.ark-subhero__visual {
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
  overflow: hidden;
  background: var(--ark-bg-card);
}

/* =========================================================
   STAT STRIP (PROBLEM-STRIP)
   ========================================================= */
.ark-stat-strip {
  padding: 64px 0;
}

.ark-stat-strip__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
}

.ark-stat-strip__item {
  background: var(--ark-bg-alt);
  padding: 40px 32px;
  position: relative;
}

.ark-stat-strip__number {
  font-family: var(--ark-font-mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--ark-accent);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.ark-stat-strip__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ark-fg-d2);
}

.ark-stat-strip__note {
  max-width: var(--ark-container);
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 11px;
  color: var(--ark-fg-d3);
  font-style: italic;
}

/* =========================================================
   HOW IT WORKS — STEP FLOW
   ========================================================= */
.ark-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
}

.ark-step {
  background: var(--ark-bg);
  padding: 40px 32px;
  position: relative;
}

.ark-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -1px;
  width: 1px;
  height: 32px;
  background: var(--ark-border-d);
}

.ark-step:last-child::after { display: none; }

.ark-step__number {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ark-accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 16px;
}

.ark-step__title {
  font-family: var(--ark-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ark-fg-d1);
  margin-bottom: 10px;
}

.ark-step__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ark-fg-d2);
}

/* =========================================================
   FEATURE CARDS
   ========================================================= */
.ark-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
}

.ark-feature-card {
  background: var(--ark-bg-alt);
  padding: 40px 32px;
  transition: background 0.15s ease;
}

.ark-feature-card:hover { background: var(--ark-bg-card); }

.ark-feature-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 194, 168, 0.1);
  border-radius: var(--ark-radius);
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--ark-accent);
}

.ark-feature-card__title {
  font-family: var(--ark-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ark-fg-d1);
  margin-bottom: 10px;
}

.ark-feature-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ark-fg-d2);
  margin-bottom: 20px;
}

.ark-feature-card__link {
  font-family: var(--ark-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ark-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.15s ease;
}
.ark-feature-card__link:hover { gap: 10px; }

/* Light context feature grid */
.ark-section--light .ark-feature-grid,
.ark-section--light-alt .ark-feature-grid,
.ark-section--white .ark-feature-grid {
  background: var(--ark-border-l);
  border-color: var(--ark-border-l);
}

.ark-section--light .ark-feature-card,
.ark-section--light-alt .ark-feature-card,
.ark-section--white .ark-feature-card { background: var(--ark-bg-white); }

.ark-section--light .ark-feature-card:hover,
.ark-section--light-alt .ark-feature-card:hover,
.ark-section--white .ark-feature-card:hover { background: var(--ark-bg-light); }

.ark-section--light .ark-feature-card__title,
.ark-section--light-alt .ark-feature-card__title,
.ark-section--white .ark-feature-card__title { color: var(--ark-fg-l1); }

.ark-section--light .ark-feature-card__body,
.ark-section--light-alt .ark-feature-card__body,
.ark-section--white .ark-feature-card__body { color: var(--ark-fg-l2); }

.ark-section--light .ark-feature-card__icon,
.ark-section--light-alt .ark-feature-card__icon,
.ark-section--white .ark-feature-card__icon {
  background: rgba(0, 122, 107, 0.1);
  color: var(--ark-accent-aa-light);
}

.ark-section--light .ark-feature-card__link,
.ark-section--light-alt .ark-feature-card__link,
.ark-section--white .ark-feature-card__link { color: var(--ark-accent-aa-light); }

/* =========================================================
   DATA STRIP (LIVE DATA TABLE CONTAINER)
   ========================================================= */
.ark-data-strip {
  padding: 80px 0;
}

.ark-data-strip__section-header {
  text-align: center;
  margin-bottom: 48px;
}

.ark-data-strip__headline { color: var(--ark-fg-d1); }

.ark-data-strip__note {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  color: var(--ark-fg-d3);
  text-align: center;
  margin-top: 16px;
}

/* =========================================================
   PRICING TEASER
   ========================================================= */
.ark-pricing-teaser {
  text-align: center;
}

.ark-pricing-teaser__subhead {
  font-size: 16px;
  color: var(--ark-fg-d2);
  max-width: 520px;
  margin: 16px auto 32px;
}

/* =========================================================
   PRICING CARDS
   ========================================================= */
.ark-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-l);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
  overflow: hidden;
}

.ark-pricing-card {
  background: var(--ark-bg-white);
  padding: 40px 32px;
  position: relative;
}

.ark-pricing-card--highlight {
  background: var(--ark-fg-l1);
  color: var(--ark-fg-d1);
}

.ark-pricing-card--highlight .ark-pricing-card__name,
.ark-pricing-card--highlight .ark-pricing-card__desc,
.ark-pricing-card--highlight .ark-pricing-card__feature,
.ark-pricing-card--highlight .ark-pricing-card__limits,
.ark-pricing-card--highlight .ark-pricing-card__price-suffix { color: var(--ark-fg-d2); }

.ark-pricing-card--highlight .ark-pricing-card__price { color: var(--ark-fg-d1); }

.ark-pricing-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ark-accent);
  color: var(--ark-bg);
  font-family: var(--ark-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 4px 4px;
}

.ark-pricing-card__name {
  font-family: var(--ark-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ark-fg-l3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ark-pricing-card__price {
  font-family: var(--ark-font-mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  line-height: 1;
  margin-bottom: 4px;
}

.ark-pricing-card__price-prefix {
  font-size: 20px;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.ark-pricing-card__price-suffix {
  font-family: var(--ark-font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--ark-fg-l3);
  margin-bottom: 8px;
}

.ark-pricing-card__desc {
  font-size: 13px;
  color: var(--ark-fg-l3);
  line-height: 1.5;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ark-border-l);
  padding-bottom: 20px;
}

.ark-pricing-card--highlight .ark-pricing-card__desc {
  border-bottom-color: var(--ark-border-d);
  padding-bottom: 20px;
}

.ark-pricing-card__limits {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  color: var(--ark-fg-l3);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--ark-bg-light);
  border-radius: var(--ark-radius-sm);
  border-left: 2px solid var(--ark-accent);
}

.ark-pricing-card--highlight .ark-pricing-card__limits {
  background: rgba(0, 194, 168, 0.1);
  border-left-color: var(--ark-accent);
  color: var(--ark-fg-d2);
}

.ark-pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
}

.ark-pricing-card__feature {
  font-size: 13px;
  color: var(--ark-fg-l2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ark-border-l);
}

.ark-pricing-card--highlight .ark-pricing-card__feature {
  border-bottom-color: var(--ark-border-d);
}

.ark-pricing-card__feature::before {
  content: '→';
  color: var(--ark-accent);
  font-family: var(--ark-font-mono);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.ark-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--ark-border-l);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
  overflow: hidden;
}

.ark-faq-item {
  background: var(--ark-bg-white);
}

.ark-faq-item__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ark-font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ark-fg-l1);
  cursor: pointer;
  transition: color 0.15s ease;
}

.ark-faq-item__question:hover { color: var(--ark-accent-aa-light); }

.ark-faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ark-fg-l3);
  transition: transform 0.2s ease;
}

.ark-faq-item.is-open .ark-faq-item__icon {
  transform: rotate(45deg);
  color: var(--ark-accent-aa-light);
}

.ark-faq-item__answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ark-fg-l2);
  border-top: 1px solid var(--ark-border-l);
}

.ark-faq-item.is-open .ark-faq-item__answer { display: block; }

/* =========================================================
   BLOG CARDS
   ========================================================= */
.ark-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
}

.ark-section--light .ark-blog-grid,
.ark-section--white .ark-blog-grid {
  background: var(--ark-border-l);
  border-color: var(--ark-border-l);
}

.ark-blog-card {
  background: var(--ark-bg-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s ease;
  text-decoration: none;
}

.ark-blog-card:hover { background: var(--ark-bg-card-hover); }

.ark-section--light .ark-blog-card,
.ark-section--white .ark-blog-card { background: var(--ark-bg-white); }
.ark-section--light .ark-blog-card:hover,
.ark-section--white .ark-blog-card:hover { background: var(--ark-bg-light); }

.ark-blog-card__cover {
  aspect-ratio: 16/9;
  background: var(--ark-bg-alt);
  border-radius: var(--ark-radius-sm);
  overflow: hidden;
  margin-bottom: 4px;
}

.ark-blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ark-blog-card__tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--ark-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--ark-radius-sm);
  background: rgba(0, 194, 168, 0.12);
  color: var(--ark-accent);
  align-self: flex-start;
}

.ark-section--light .ark-blog-card__tag,
.ark-section--white .ark-blog-card__tag {
  background: rgba(0, 122, 107, 0.1);
  color: var(--ark-accent-aa-light);
}

.ark-blog-card__title {
  font-family: var(--ark-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ark-fg-d1);
}

.ark-section--light .ark-blog-card__title,
.ark-section--white .ark-blog-card__title { color: var(--ark-fg-l1); }

.ark-blog-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ark-fg-d2);
  flex: 1;
}

.ark-section--light .ark-blog-card__excerpt,
.ark-section--white .ark-blog-card__excerpt { color: var(--ark-fg-l2); }

.ark-blog-card__meta {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  color: var(--ark-fg-d3);
  margin-top: auto;
}

.ark-section--light .ark-blog-card__meta,
.ark-section--white .ark-blog-card__meta { color: var(--ark-fg-l3); }

/* =========================================================
   CTA SECTIONS
   ========================================================= */
.ark-cta { text-align: center; }

.ark-cta__headline { margin-bottom: 16px; }
.ark-cta__subhead {
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
}

.ark-section--dark .ark-cta__subhead,
.ark-section--dark-alt .ark-cta__subhead { color: var(--ark-fg-d2); }

.ark-section--light .ark-cta__subhead,
.ark-section--light-alt .ark-cta__subhead,
.ark-section--white .ark-cta__subhead { color: var(--ark-fg-l2); }

.ark-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.ark-footer {
  background: var(--ark-bg);
  border-top: 1px solid var(--ark-border-d);
  padding: 64px 0 0;
}

.ark-footer__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ark-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ark-border-d);
}

.ark-footer__brand { max-width: 280px; }

.ark-footer__brand-logo img {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
}

.ark-footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ark-fg-d3);
  margin-bottom: 0;
}

.ark-footer__col-title {
  font-family: var(--ark-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ark-fg-d2);
  margin-bottom: 16px;
}

.ark-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ark-footer__links a {
  font-size: 13px;
  color: var(--ark-fg-d3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ark-footer__links a:hover { color: var(--ark-fg-d1); }

.ark-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.ark-footer__copy {
  font-size: 12px;
  color: var(--ark-fg-d3);
  line-height: 1.6;
}

.ark-footer__disclaimer {
  font-size: 11px;
  color: var(--ark-fg-d3);
  line-height: 1.55;
  max-width: 600px;
  font-style: italic;
  opacity: 0.75;
}

.ark-footer__legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ark-footer__legal-links a {
  font-size: 12px;
  color: var(--ark-fg-d3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ark-footer__legal-links a:hover { color: var(--ark-fg-d1); }

/* =========================================================
   SECTION HEADER (REUSABLE)
   ========================================================= */
.ark-section-header {
  margin-bottom: 56px;
}

.ark-section-header--center {
  text-align: center;
}

.ark-section-header--center .ark-eyebrow {
  display: inline-block;
}

.ark-section-header__headline {
  max-width: 700px;
}

.ark-section-header--center .ark-section-header__headline {
  margin: 0 auto;
}

/* =========================================================
   VALUE CARDS (ABOUT)
   ========================================================= */
.ark-value-card {
  padding: 32px;
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
}

.ark-value-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 122, 107, 0.1);
  border-radius: var(--ark-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ark-accent-aa-light);
  margin-bottom: 16px;
}

.ark-value-card__title {
  font-family: var(--ark-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  margin-bottom: 8px;
}

.ark-value-card__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ark-fg-l2);
}

/* =========================================================
   TEAM GRID
   ========================================================= */
.ark-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ark-team-card {
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
  overflow: hidden;
}

.ark-team-card__photo {
  aspect-ratio: 1;
  background: var(--ark-bg-light-alt);
  overflow: hidden;
}

.ark-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ark-team-card__info {
  padding: 20px;
}

.ark-team-card__name {
  font-family: var(--ark-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  margin-bottom: 4px;
}

.ark-team-card__title {
  font-size: 13px;
  color: var(--ark-fg-l3);
  margin-bottom: 12px;
}

.ark-team-card__bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ark-fg-l2);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.ark-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.ark-contact-info__title {
  font-family: var(--ark-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ark-accent-aa-light);
  margin-bottom: 20px;
}

.ark-contact-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ark-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ark-contact-info__icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 122, 107, 0.1);
  border-radius: var(--ark-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ark-accent-aa-light);
  flex-shrink: 0;
}

.ark-contact-info__text {
  font-size: 14px;
  color: var(--ark-fg-l2);
  line-height: 1.5;
}

.ark-contact-info__text a {
  color: var(--ark-accent-aa-light);
  text-decoration: none;
}
.ark-contact-info__text a:hover { text-decoration: underline; }

/* Contact form */
.ark-form { display: flex; flex-direction: column; gap: 16px; }

.ark-form__group { display: flex; flex-direction: column; gap: 6px; }

.ark-form__label {
  font-family: var(--ark-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ark-fg-l2);
}

.ark-form__input,
.ark-form__select,
.ark-form__textarea {
  font-family: var(--ark-font-body);
  font-size: 14px;
  color: var(--ark-fg-l1);
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
  padding: 10px 14px;
  transition: border-color 0.15s ease;
  outline: none;
}

.ark-form__input:focus,
.ark-form__select:focus,
.ark-form__textarea:focus {
  border-color: var(--ark-accent-aa-light);
  box-shadow: 0 0 0 3px rgba(0, 122, 107, 0.12);
}

.ark-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.ark-form__select option {
  background: var(--ark-bg-white);
  color: var(--ark-fg-l1);
}

.ark-form__textarea { resize: vertical; min-height: 120px; }

/* Dark form (for login pages) */
.ark-form--dark .ark-form__label { color: var(--ark-fg-d2); }

.ark-form--dark .ark-form__input,
.ark-form--dark .ark-form__select,
.ark-form--dark .ark-form__textarea {
  background-color: var(--ark-bg-alt);
  border-color: var(--ark-border-d);
  color: var(--ark-fg-d1);
}

.ark-form--dark .ark-form__input:focus,
.ark-form--dark .ark-form__select:focus,
.ark-form--dark .ark-form__textarea:focus {
  border-color: var(--ark-accent);
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.1);
}

.ark-form--dark .ark-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

.ark-form--dark .ark-form__select option {
  background: var(--ark-bg-alt);
  color: var(--ark-fg-d1);
}

.ark-form__error-msg {
  font-size: 12px;
  color: var(--ark-accent-danger);
  margin-top: 4px;
}

/* =========================================================
   LOGIN PAGES
   ========================================================= */
.ark-auth-page {
  min-height: 100vh;
  background: var(--ark-bg);
  display: flex;
  flex-direction: column;
}

.ark-auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.ark-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--ark-bg-alt);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
  padding: 40px;
}

.ark-auth-card__logo {
  text-align: center;
  margin-bottom: 32px;
}

.ark-auth-card__logo img {
  height: 28px;
  width: auto;
  margin: 0 auto;
}

.ark-auth-card__title {
  font-family: var(--ark-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ark-fg-d1);
  text-align: center;
  margin-bottom: 8px;
}

.ark-auth-card__subtitle {
  font-size: 14px;
  color: var(--ark-fg-d2);
  text-align: center;
  margin-bottom: 32px;
}

.ark-auth-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ark-fg-d2);
}

.ark-auth-card__footer a {
  color: var(--ark-accent);
  text-decoration: none;
}
.ark-auth-card__footer a:hover { text-decoration: underline; }

/* =========================================================
   DOCS LAYOUT
   ========================================================= */
.ark-docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
}

.ark-docs-sidebar {
  background: var(--ark-bg-white);
  border-right: 1px solid var(--ark-border-l);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.ark-docs-sidebar__section {
  margin-bottom: 24px;
  padding: 0 20px;
}

.ark-docs-sidebar__title {
  font-family: var(--ark-font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ark-fg-l3);
  margin-bottom: 8px;
}

.ark-docs-sidebar__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ark-docs-sidebar__links a {
  display: block;
  font-size: 13px;
  color: var(--ark-fg-l2);
  padding: 7px 10px;
  border-radius: var(--ark-radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.ark-docs-sidebar__links a:hover { color: var(--ark-fg-l1); background: var(--ark-bg-light); }
.ark-docs-sidebar__links a.is-active {
  color: var(--ark-accent-aa-light);
  background: rgba(0, 122, 107, 0.08);
  font-weight: 500;
}

.ark-docs-main {
  background: var(--ark-bg-white);
  padding: 48px;
  max-width: 800px;
}

/* Docs content area with theme scoping per design-spec contract */
body.ark-page--light-top .ark-docs-content h1,
body.ark-page--light-top .ark-docs-content h2,
body.ark-page--light-top .ark-docs-content h3 { color: var(--ark-fg-l1); }

body.ark-page--light-top .ark-docs-content p,
body.ark-page--light-top .ark-docs-content li { color: var(--ark-fg-l2); }

body.ark-page--light-top .ark-docs-content a { color: var(--ark-accent-aa-light); }
body.ark-page--light-top .ark-docs-content a:hover { text-decoration: underline; }

body.ark-page--dark-top .ark-docs-content h1,
body.ark-page--dark-top .ark-docs-content h2,
body.ark-page--dark-top .ark-docs-content h3 { color: var(--ark-fg-d1); }

body.ark-page--dark-top .ark-docs-content p,
body.ark-page--dark-top .ark-docs-content li { color: var(--ark-fg-d2); }

body.ark-page--dark-top .ark-docs-content a { color: var(--ark-accent); }
body.ark-page--dark-top .ark-docs-content a:hover { text-decoration: underline; }

.ark-docs-content { line-height: 1.65; }

.ark-docs-content h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ark-border-l);
}

.ark-docs-content h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.ark-docs-content p { margin-bottom: 16px; }

.ark-docs-content ul,
.ark-docs-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.ark-docs-content ul { list-style: disc; }
.ark-docs-content ol { list-style: decimal; }

.ark-docs-content li { margin-bottom: 6px; }

.ark-docs-content code {
  font-family: var(--ark-font-mono);
  font-size: 13px;
  background: var(--ark-bg-light);
  border: 1px solid var(--ark-border-l);
  padding: 2px 6px;
  border-radius: var(--ark-radius-sm);
  color: var(--ark-accent-aa-light);
}

.ark-docs-content pre {
  background: var(--ark-bg);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ark-docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--ark-fg-d1);
}

.ark-docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.ark-docs-content th {
  background: var(--ark-bg-light);
  font-family: var(--ark-font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ark-fg-l3);
  padding: 10px 14px;
  border: 1px solid var(--ark-border-l);
  text-align: left;
}

.ark-docs-content td {
  padding: 10px 14px;
  border: 1px solid var(--ark-border-l);
  color: var(--ark-fg-l2);
  vertical-align: top;
}

.ark-docs-content td:first-child {
  font-family: var(--ark-font-mono);
  font-size: 12px;
  color: var(--ark-accent-aa-light);
  font-weight: 500;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.ark-legal-layout {
  background: var(--ark-bg-white);
  padding: 64px 0;
}

.ark-legal-layout .ark-container {
  max-width: 800px;
}

.legal-article {}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ark-border-l);
}

.legal-header h1 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--ark-fg-l1);
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--ark-font-mono);
  font-size: 12px;
  color: var(--ark-fg-l3);
  margin-bottom: 4px;
}

.legal-article section {
  margin-bottom: 40px;
}

.legal-article h2 {
  font-size: 20px;
  color: var(--ark-fg-l1);
  margin-bottom: 16px;
  padding-top: 8px;
}

.legal-article h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-article p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ark-fg-l2);
  margin-bottom: 14px;
}

.legal-article ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 14px;
}

.legal-article li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ark-fg-l2);
  margin-bottom: 6px;
}

.legal-article address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ark-fg-l2);
  background: var(--ark-bg-light);
  border: 1px solid var(--ark-border-l);
  padding: 16px 20px;
  border-radius: var(--ark-radius);
  margin-top: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0 24px;
}

.legal-table th {
  background: var(--ark-bg-light);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ark-fg-l3);
  padding: 10px 12px;
  border: 1px solid var(--ark-border-l);
  text-align: left;
}

.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--ark-border-l);
  color: var(--ark-fg-l2);
  vertical-align: top;
}

.legal-article a {
  color: var(--ark-accent-aa-light);
  text-decoration: underline;
}

/* =========================================================
   BLOG POST LAYOUT
   ========================================================= */
.ark-blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Blog body always light-top per design-spec contract */
body.ark-page--light-top .ark-blog-body h1,
body.ark-page--light-top .ark-blog-body h2,
body.ark-page--light-top .ark-blog-body h3 { color: var(--ark-fg-l1); }

body.ark-page--light-top .ark-blog-body p,
body.ark-page--light-top .ark-blog-body li { color: var(--ark-fg-l2); }

body.ark-page--light-top .ark-blog-body a { color: var(--ark-accent-aa-light); }
body.ark-page--light-top .ark-blog-body a:hover { text-decoration: underline; }

.ark-blog-body h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.ark-blog-body h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.ark-blog-body p { margin-bottom: 18px; }

.ark-blog-body ul,
.ark-blog-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.ark-blog-body ul { list-style: disc; }
.ark-blog-body ol { list-style: decimal; }

.ark-blog-body li { margin-bottom: 6px; line-height: 1.65; }

.ark-blog-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--ark-radius);
  margin-bottom: 40px;
}

.ark-blog-post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ark-blog-post__date {
  font-family: var(--ark-font-mono);
  font-size: 12px;
  color: var(--ark-fg-l3);
}

.ark-blog-post__tag {
  display: inline-flex;
  font-family: var(--ark-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--ark-radius-sm);
  background: rgba(0, 122, 107, 0.1);
  color: var(--ark-accent-aa-light);
}

.ark-blog-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ark-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ark-fg-l3);
  text-decoration: none;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.ark-blog-post__back:hover { color: var(--ark-accent-aa-light); }

/* =========================================================
   ABOUT / FOUNDER
   ========================================================= */
.ark-founder-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 48px;
}

.ark-founder-block__photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--ark-bg-light-alt);
  border-radius: var(--ark-radius);
  overflow: hidden;
  border: 1px solid var(--ark-border-l);
}

.ark-founder-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ark-founder-block__name {
  font-family: var(--ark-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ark-fg-l1);
  margin-bottom: 4px;
}

.ark-founder-block__title {
  font-family: var(--ark-font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ark-accent-aa-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.ark-founder-block__bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ark-fg-l2);
}

/* =========================================================
   STATUS PAGE
   ========================================================= */
.ark-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--ark-radius);
  margin-bottom: 32px;
}

.ark-status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ark-accent-positive);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.ark-status-indicator--green { background: var(--ark-accent-positive); }
.ark-status-indicator--amber { background: var(--ark-accent-warn); }
.ark-status-indicator--red { background: var(--ark-accent-danger); }

/* =========================================================
   DOC CARDS
   ========================================================= */
.ark-doc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ark-doc-card {
  background: var(--ark-bg-white);
  border: 1px solid var(--ark-border-l);
  border-radius: var(--ark-radius);
  padding: 32px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.ark-doc-card:hover {
  border-color: var(--ark-accent-aa-light);
  box-shadow: 0 4px 12px rgba(0, 122, 107, 0.08);
}

.ark-doc-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 122, 107, 0.1);
  border-radius: var(--ark-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ark-accent-aa-light);
  margin-bottom: 16px;
}

.ark-doc-card__title {
  font-family: var(--ark-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  margin-bottom: 8px;
}

.ark-doc-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ark-fg-l2);
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--ark-bg-alt);
  border-top: 1px solid var(--ark-border-d);
  padding: 0;
}

.cookie-banner__inner {
  max-width: var(--ark-container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 13px;
  color: var(--ark-fg-d2);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--ark-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--ark-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--ark-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cookie-banner__btn--primary {
  background: var(--ark-accent);
  color: var(--ark-bg);
  border-color: var(--ark-accent);
}

.cookie-banner__btn--primary:hover {
  background: #00a892;
  border-color: #00a892;
}

body.cookie-visible {
  padding-bottom: 64px;
}

/* =========================================================
   TERMINAL SVG CONTAINER
   ========================================================= */
.ark-terminal-frame {
  background: var(--ark-bg);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
  overflow: hidden;
}

.ark-terminal-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ark-bg-alt);
  border-bottom: 1px solid var(--ark-border-d);
}

.ark-terminal-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ark-terminal-frame__dot:nth-child(1) { background: #EF4444; }
.ark-terminal-frame__dot:nth-child(2) { background: #F59E0B; }
.ark-terminal-frame__dot:nth-child(3) { background: #22C55E; }

.ark-terminal-frame__title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--ark-font-mono);
  font-size: 10px;
  color: var(--ark-fg-d3);
}

/* =========================================================
   INTEGRATIONS PAGE
   ========================================================= */
.ark-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
}

.ark-integration-card {
  background: var(--ark-bg-alt);
  padding: 32px;
  transition: background 0.15s ease;
}

.ark-integration-card:hover { background: var(--ark-bg-card); }

.ark-integration-card__type {
  font-family: var(--ark-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ark-accent);
  margin-bottom: 12px;
  display: block;
}

.ark-integration-card__name {
  font-family: var(--ark-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ark-fg-d1);
  margin-bottom: 10px;
}

.ark-integration-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ark-fg-d2);
}

/* =========================================================
   TWO-COL FEATURE LIST (ANALYTICS PAGE)
   ========================================================= */
.ark-two-col-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ark-feature-item {
  padding: 24px 0;
  border-top: 1px solid var(--ark-border-d);
}

.ark-feature-item__number {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ark-accent);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: block;
}

.ark-feature-item__title {
  font-family: var(--ark-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ark-fg-d1);
  margin-bottom: 8px;
}

.ark-feature-item__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ark-fg-d2);
}

/* =========================================================
   FUNDING RATE / MARK PRICE / LIQUIDATION DEEP-DIVE PAGES
   ========================================================= */
.ark-deep-dive-hero__stat-row {
  display: flex;
  gap: 1px;
  background: var(--ark-border-d);
  border: 1px solid var(--ark-border-d);
  border-radius: var(--ark-radius);
  margin-top: 40px;
  overflow: hidden;
}

.ark-deep-dive-hero__stat {
  flex: 1;
  background: var(--ark-bg-alt);
  padding: 20px 24px;
}

.ark-deep-dive-hero__stat-val {
  font-family: var(--ark-font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ark-accent);
  display: block;
  margin-bottom: 4px;
}

.ark-deep-dive-hero__stat-label {
  font-size: 12px;
  color: var(--ark-fg-d2);
}

/* =========================================================
   CHANGELOG PAGE
   ========================================================= */
.ark-changelog { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.ark-changelog__entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--ark-border-l);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
}

.ark-changelog__meta {
  font-family: var(--ark-font-mono);
  font-size: 11px;
  color: var(--ark-fg-l3);
}

.ark-changelog__version {
  font-family: var(--ark-font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ark-accent-aa-light);
  margin-bottom: 4px;
  display: block;
}

.ark-changelog__date { display: block; margin-bottom: 10px; }

.ark-changelog__tag {
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--ark-radius-sm);
}

.ark-changelog__tag--feature { background: rgba(0, 122, 107, 0.1); color: var(--ark-accent-aa-light); }
.ark-changelog__tag--fix { background: rgba(239, 68, 68, 0.08); color: var(--ark-accent-danger); }
.ark-changelog__tag--improvement { background: rgba(245, 158, 11, 0.1); color: #B45309; }

.ark-changelog__title {
  font-family: var(--ark-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ark-fg-l1);
  margin-bottom: 8px;
}

.ark-changelog__body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ark-fg-l2);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.ark-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ark-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Failsafe: after 1.2s, force visible */
@keyframes force-visible {
  to { opacity: 1; transform: translateY(0); }
}

.ark-fade-in {
  animation: force-visible 0.01s 1.2s forwards;
}

/* Mono number counter animation */
@keyframes count-up {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .ark-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .ark-hero__subhead { max-width: 100%; }
  .ark-team-grid { grid-template-columns: repeat(2, 1fr); }
  .ark-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ark-docs-layout { grid-template-columns: 1fr; }
  .ark-docs-sidebar { display: none; }
  .ark-subhero__inner--split { grid-template-columns: 1fr; }
  .ark-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .ark-founder-block { grid-template-columns: 1fr; }
  .ark-founder-block__photo { max-width: 200px; }
}

@media (max-width: 768px) {
  :root {
    --ark-section-py: 64px;
  }

  .ark-nav__links,
  .ark-nav__actions { display: none; }

  .ark-nav__hamburger { display: flex; }

  .ark-stat-strip__inner { grid-template-columns: 1fr; }
  .ark-steps { grid-template-columns: 1fr; }
  .ark-feature-grid { grid-template-columns: 1fr; }
  .ark-blog-grid { grid-template-columns: 1fr; }
  .ark-pricing-grid { grid-template-columns: 1fr; }
  .ark-doc-card-grid { grid-template-columns: 1fr; }
  .ark-integration-grid { grid-template-columns: 1fr; }
  .ark-two-col-feature { grid-template-columns: 1fr; }
  .ark-team-grid { grid-template-columns: 1fr 1fr; }
  .ark-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .ark-deep-dive-hero__stat-row { flex-direction: column; }
  .ark-changelog__entry { grid-template-columns: 1fr; gap: 8px; }

  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .ark-hero__actions { flex-direction: column; align-items: stretch; }
  .ark-hero__actions .ark-btn { width: 100%; justify-content: center; }
  .ark-team-grid { grid-template-columns: 1fr; }
  .ark-auth-card { padding: 28px 20px; }
}


/* =============================================
   Legal pages
   ============================================= */
.ark-legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.ark-legal-hero {
  margin-bottom: 32px;
}

.ark-legal-body {
  background: var(--ark-bg-surface);
  border: 1px solid var(--ark-border-d);
  border-radius: 6px;
  padding: 40px 48px;
}

@media (max-width: 640px) {
  .ark-legal-wrap { padding: 32px 16px 60px; }
  .ark-legal-body { padding: 24px 20px; }
}


/* Orphan fix: ark-hero__content + ark-founder-block__content */
.ark-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.ark-founder-block__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* Cookie banner modifier classes */
.cookie-banner--notice {
  /* notice-only variant — same styles as base, modifier for theming hooks */
}

.cookie-banner--prior-consent {
  /* prior-consent variant */
}

/* Accessibility utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
