/* Axisverge — GitHub-inspired dark UI (marketing / product aesthetic, not a copy of github.com) */

:root {
  /* Canvas & surfaces (GitHub dark–adjacent) */
  --bg: #010409;
  --bg-elevated: #0d1117;
  --bg-muted: #161b22;
  --bg-inset: #010409;
  --border: #30363d;
  --border-muted: #21262d;
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --muted: #8b949e;
  --accent-fg: #58a6ff;
  --accent-fg-hover: #79c0ff;
  --btn-success: #238636;
  --btn-success-hover: #2ea043;
  --btn-success-active: #238636;
  --focus: #1f6feb;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --shadow-md: 0 8px 24px rgba(1, 4, 9, 0.55);
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-pill: 6px;
  --max: 72rem;
  --space: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, "SF Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.03em;
}

a {
  color: var(--accent-fg);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-fg-hover);
}

header a,
.btn,
.hero-cta a,
.site-footer .footer-meta a {
  border-bottom: none;
}
header a:hover,
.btn:hover,
.hero-cta a:hover {
  border-bottom: none;
}

.wrap { width: min(100% - var(--space) * 2, var(--max)); margin-inline: auto; }

/* Header — GitHub-style dark bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header::after {
  display: none;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0.65rem 0;
  min-height: 3.5rem;
}

.logo-link {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.35rem 0;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, opacity 0.15s ease;
}

.logo-link:hover {
  opacity: 1;
  color: var(--text);
}

.logo-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.logo-name { font-weight: 600; }
.logo-wordmark {
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav { justify-self: center; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}

.site-nav a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease, color 0.12s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(110, 118, 129, 0.2);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: rgba(56, 139, 253, 0.15);
  box-shadow: inset 0 0 0 1px rgba(56, 139, 253, 0.35);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-cta {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
  }

  .logo-link {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    min-width: 0;
    padding-top: 0.45rem;
    margin: 0 calc(-1 * min(var(--space), 1rem));
    padding-left: min(var(--space), 1rem);
    padding-right: min(var(--space), 1rem);
    border-top: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .site-nav::-webkit-scrollbar {
    height: 4px;
  }

  .site-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.125rem;
    width: max-content;
    padding-bottom: 0.2rem;
  }

  .site-nav li {
    flex-shrink: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}

/* iPhone 13 Pro and similar narrow widths: tighter top bar, single-line scroll nav */
@media (max-width: 430px) {
  :root {
    --space: clamp(0.65rem, 4vw, 1rem);
  }

  .logo-link {
    font-size: 0.8125rem;
    letter-spacing: -0.03em;
  }

  .btn-nav-cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
  }

  .site-nav a {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--btn-success);
  color: #fff;
  border-color: rgba(240, 246, 252, 0.1);
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(27, 31, 35, 0.1);
}

.btn-primary:hover {
  background: var(--btn-success-hover);
  color: #fff;
  border-color: rgba(240, 246, 252, 0.12);
}

.btn-secondary {
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #21262d;
  border-color: #8b949e;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(56, 139, 253, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(35, 134, 54, 0.06), transparent 45%);
  overflow: hidden;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero.hero-visual {
  background-color: var(--bg);
  background-image:
    linear-gradient(
      115deg,
      rgba(1, 4, 9, 0.94) 0%,
      rgba(13, 17, 23, 0.72) 42%,
      rgba(1, 4, 9, 0.92) 100%
    ),
    url("assets/axisverge-hero-16x9.png");
  background-size: cover;
  background-position: center;
}

.hero.hero-visual h1 {
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  max-width: 22ch;
}

.hero.hero-visual .subtitle {
  color: var(--text-secondary);
}

.hero.hero-visual .section-label {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.hero.hero-visual .btn-secondary {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

.hero.hero-visual .btn-secondary:hover {
  background: #21262d;
  border-color: #8b949e;
  color: var(--text);
}

.hero-compact {
  padding: clamp(2.75rem, 7vw, 4.25rem) 0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 18ch;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.hero .subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Narrow phones (e.g. iPhone 12/13 Pro): keep CTAs on one row, swipe to scroll */
@media (max-width: 480px) {
  .hero-cta {
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    padding-bottom: 0.35rem;
    margin-inline: calc(-1 * min(var(--space), 1rem));
    padding-inline: min(var(--space), 1rem);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .hero-cta::-webkit-scrollbar {
    height: 3px;
  }

  .hero-cta::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
  }

  .hero-cta .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 390px) {
  .hero-cta {
    gap: 0.35rem;
  }

  .hero-cta .btn {
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
  }
}

section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

main > section:last-of-type { border-bottom: none; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

section h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

section p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  max-width: 68ch;
}

section p:last-child { margin-bottom: 0; }

.grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

ul.benefits {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

ul.benefits li { margin-bottom: 0.55rem; }
ul.benefits strong { color: var(--text); font-weight: 600; }

.card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: #8b949e;
}

.card h3 {
  margin-top: 0;
  font-size: 1.0625rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: none;
}

.card.card-with-media {
  padding: 0;
  overflow: hidden;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-inset);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.card.card-with-media h3 { margin-top: 0; }

.contact-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }
}

.contact-visual {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg-inset);
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 480px;
}

.hero-visual .thumb-row {
  margin-top: 2rem;
  opacity: 1;
}

.hero-visual .thumb-row figure {
  border-color: var(--border);
  box-shadow: none;
}

.thumb-row figure {
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.use-case {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.use-case:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.use-case h3 { margin-top: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border);
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.cta-strip {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.cta-strip h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.cta-strip p {
  margin-bottom: 1.25rem;
  max-width: 44ch;
  color: var(--text-secondary);
}

.contact-box {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-box code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  color: var(--accent-fg);
  background: var(--bg-inset);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

footer.site-footer {
  padding: 2rem 0;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-inset);
}

.footer-copy {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-meta {
  margin: 0 auto;
  max-width: 40rem;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.footer-meta a {
  color: var(--accent-fg);
  font-weight: 500;
}

.footer-meta a:hover {
  color: var(--accent-fg-hover);
}

.contact-details {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.contact-details p {
  margin-bottom: 0.65rem;
  max-width: none;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

/* Contact form — thank you banner + spam honeypot */
.form-thanks {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(35, 134, 54, 0.12);
  border: 1px solid var(--btn-success);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
}

.contact-botcheck {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
