/* ===========================================================
   Altus Labs — design tokens
   Theme: alpine dusk — deep atmospheric navy, warm alpenglow accent
=========================================================== */

:root {
  --bg: #0D1420;
  --bg-elevated: #141C2B;
  --surface: #182236;
  --surface-border: #263048;
  --text-primary: #F1EEE6;
  --text-secondary: #8D96AC;
  --text-tertiary: #5C6480;
  --accent: #E8A857;
  --accent-soft: #E8A85722;
  --accent-line: #E8A857AA;
  --ridge: #3E5670;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 20, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-mark .glyph {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links .cta {
  color: var(--bg);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links .cta:hover { opacity: 0.9; }

/* ---------- Ridge line signature (SVG, reused across pages) ---------- */

.ridge-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.ridge-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 780px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #14100A;
}
.btn-primary:hover { background: #f0b568; }

.btn-ghost {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent-line); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- App cards ---------- */

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

.app-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-card.live:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  background: linear-gradient(160deg, #2A3852, #1B2436);
  border: 1px solid var(--surface-border);
  color: var(--accent);
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.app-status {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-tertiary);
}

.app-card.live .app-status { color: var(--accent); }

.app-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

.app-card .app-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-card.soon {
  opacity: 0.55;
}

/* ---------- Stat / about strip ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.about-copy strong { color: var(--text-primary); font-weight: 600; }

.principles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-border);
}

.principle:last-child { border-bottom: none; padding-bottom: 0; }

.principle .mark {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
  font-style: italic;
  flex-shrink: 0;
  width: 28px;
}

.principle h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.principle p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Contact / footer ---------- */

.contact-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--surface-border);
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-card h2 { margin-bottom: 8px; }
.contact-card p { color: var(--text-secondary); margin: 0; }

footer {
  border-top: 1px solid var(--surface-border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover { color: var(--text-secondary); }

/* ---------- Inner page (app / support / privacy) ---------- */

.inner-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--surface-border);
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}

.breadcrumb a:hover { color: var(--text-secondary); }

.inner-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 700px;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

.prose {
  max-width: 680px;
}

.prose h2 {
  margin-top: 40px;
}

.prose p, .prose li {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.prose ul { padding-left: 20px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 22px;
}

.feature h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.support-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
}

.support-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin: 18px 0 6px;
}

.support-form label:first-child { margin-top: 0; }

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
}

.support-form textarea { min-height: 110px; resize: vertical; }

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent-line);
}

.form-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}
