/* AthiLabs marketing site — shared stylesheet. Plain CSS, no build step, no
   external fonts/trackers. Color tokens are deliberately copied from
   SmartDo's own theme.ts (src/app/theme.ts) rather than invented separately,
   so the website and the flagship product read as one brand. */

:root {
  --bg: #fff8f7;
  --surface: #ffffff;
  --surface-sunken: #fff0ef;
  --text: #1f1f1f;
  --text-muted: #6e6e73;
  --border: #f0d0cf;
  --primary: #e53935;
  --primary-hover: #d32f2f;
  /* Same hex as SmartDo's `highlightText` — the raw --primary red reads fine
     as a solid button fill in either theme, but needs to brighten for *text*
     use once it's sitting on a dark background, same reasoning SmartDo's own
     theme already applies via its light/dark `highlightText` split. */
  --primary-text: #e53935;
  --accent: #f07a54;
  --synced: #4cd964;
  --highlight-bg: #fdecea;
  --shadow: 0 1px 2px rgba(31, 23, 23, 0.04), 0 8px 24px rgba(31, 23, 23, 0.06);
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
  --max-width-prose: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-sunken: #2c1c1c;
    --text: #f2f2f7;
    --text-muted: #aeaeb2;
    --border: #7a2a28;
    --primary: #e53935;
    --primary-hover: #d32f2f;
    --primary-text: #ff6b6b;
    --accent: #f07a54;
    --synced: #4cd964;
    --highlight-bg: rgba(229, 57, 53, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--primary-text);
  text-decoration-thickness: 1.5px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand__mark-outline {
  stroke: var(--text);
  fill: var(--surface);
}

.brand__mark-fill {
  fill: var(--primary);
  stroke: none;
}

.brand__mark-bubble {
  fill: var(--accent);
}

.brand__labs {
  color: var(--primary-text);
  font-weight: 800;
}

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--text);
}

.main-nav li {
  position: relative;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.4em;
  margin-bottom: 0.1em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}

/* Invisible bridge over the margin-top gap above — without it the pointer
   leaves .has-dropdown's hover area on the way down from "About Us" and the
   menu closes before it can be reached. Height must match that margin-top. */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.5rem;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--surface-sunken);
}

@media (prefers-reduced-motion: no-preference) {
  .dropdown {
    transition: opacity 0.12s ease, transform 0.12s ease;
  }
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-text);
  background: var(--highlight-bg);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  max-width: 18ch;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: var(--max-width-prose);
  margin: 0 0 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary);
}

/* Pillars grid */

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.section__head {
  max-width: var(--max-width-prose);
  margin-bottom: 2.25rem;
}

.section__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.section__head p {
  color: var(--text-muted);
  margin: 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.pillar__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: #fff;
}

.pillar__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.pillar--apps .pillar__icon {
  background: var(--primary);
}

.pillar--vendors .pillar__icon {
  background: var(--accent);
}

.pillar--access .pillar__icon {
  background: var(--primary-hover);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
}

/* Mission strip */

.mission {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #fff;
  border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.mission blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 44ch;
  margin-inline: auto;
  text-wrap: balance;
}

.mission cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.95rem;
  color: color-mix(in srgb, #fff 70%, transparent);
}

/* Prose pages (Vision / Objectives) */

.prose-page main {
  padding-bottom: 4rem;
}

.page-head {
  padding: 3.5rem 0 1rem;
  max-width: var(--max-width-prose);
}

.page-head .eyebrow {
  margin-bottom: 1rem;
}

.page-head h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.prose {
  max-width: var(--max-width-prose);
}

.prose p {
  font-size: 1.05rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  letter-spacing: -0.01em;
}

.objective-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.objective-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.objective-list .num {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.objective-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.objective-list p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact page */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin: 2rem 0 0;
}

.contact-card dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  user-select: all;
}

/* Footer */

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

.site-footer__inner {
  padding: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--text-muted);
}

.not-found {
  text-align: center;
  padding: 5rem 1.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .pillar,
  .btn {
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  }

  .pillar:hover {
    transform: translateY(-2px);
  }
}
