/* NameDataHub — Brex-inspired design system */

:root {
  --primary: #FF5900;
  --accent-hover: #E65000;
  --accent-pressed: #CC4700;
  --ink: #15191E;
  --body: #33383F;
  --muted: #60646C;
  --canvas: #FCFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F9;
  --border: #E6E8EB;
  --border-strong: #C9CDD2;
  --soft-orange: #FFF3EC;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --success: #138A43;
  --logo-gray: #A5A9B1;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --max-width: 1280px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* Announcement bar */
.announcement {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement a:hover {
  text-decoration: underline;
}

.announcement a svg {
  width: 14px;
  height: 14px;
}

/* Navigation */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.15s;
}

.nav-link:hover {
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn-primary {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav-actions .btn-primary {
    display: none;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--nav-height) + 36px);
  background: var(--surface);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 14px 16px;
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: center;
  white-space: nowrap;
}

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

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

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.btn-link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.btn-link-arrow:hover {
  color: var(--primary);
}

.btn-link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.btn-link-arrow:hover svg {
  transform: translateX(3px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Typography */
.label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.section-title {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-title-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.body-lg {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--body);
}

.caption {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.legal {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 64px 0 80px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 120px;
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-brand {
  font-size: clamp(48px, 9vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-brand .accent {
  color: var(--primary);
}

.hero-subtitle {
  margin-top: 20px;
  max-width: 540px;
}

.hero-bullets {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}

.hero-bullet svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust span::before {
  content: "·";
  color: var(--border-strong);
}

.hero-trust span:first-child::before {
  display: none;
}

.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero-panel {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.hero-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-panel-dot.active {
  background: var(--primary);
}

.hero-panel-body {
  padding: 20px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.panel-row:last-child {
  border-bottom: none;
}

.panel-domain {
  font-weight: 600;
  color: var(--ink);
}

.panel-value {
  font-weight: 600;
  color: var(--success);
}

.panel-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 12px;
}

.panel-metric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.panel-metric-item {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.panel-metric-num {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.panel-metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .label {
  margin-bottom: 12px;
  display: block;
}

.section-header .body-lg {
  margin-top: 16px;
}

/* Differentiation strip */
.diff-strip {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .diff-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.diff-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.diff-item .card-title-sm {
  margin-bottom: 8px;
}

.diff-item .caption {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Feature cards */
.card-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  background: var(--soft-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card .icon svg {
  width: 20px;
  height: 20px;
}

.feature-card .card-title-sm {
  margin-bottom: 8px;
}

.feature-card .caption {
  margin-bottom: 16px;
}

/* Workflow steps */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  counter-increment: step;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-num::before {
  content: counter(step);
}

.step .card-title-sm {
  margin-bottom: 8px;
}

/* Metric panel */
.metric-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.metric-value {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.metric-value .highlight {
  color: var(--primary);
}

.metric-context {
  margin-top: 16px;
  font-size: 18px;
  color: var(--body);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.metric-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Earning paths */
.path-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.path-card:hover {
  box-shadow: var(--shadow-hover);
}

.path-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.path-icon svg {
  width: 18px;
  height: 18px;
}

/* Two-column layout */
.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.problem-item {
  padding-left: 20px;
  border-left: 3px solid var(--border);
}

.problem-item.highlight {
  border-left-color: var(--primary);
}

.problem-item .card-title-sm {
  margin-bottom: 6px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* CTA section */
.cta-section {
  background: var(--ink);
  color: var(--on-dark);
  padding: 80px 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 120px 0;
  }
}

.cta-section .section-title {
  color: var(--on-dark);
  max-width: 640px;
  margin: 0 auto 16px;
}

.cta-section .body-lg {
  color: rgba(252, 252, 253, 0.8);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-section .legal {
  color: rgba(252, 252, 253, 0.5);
  margin-top: 20px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 8px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-desc {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.6);
  max-width: 320px;
}

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

.footer-links a {
  color: rgba(252, 252, 253, 0.7);
  font-size: 14px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(252, 252, 253, 0.1);
  font-size: 12px;
  color: rgba(252, 252, 253, 0.4);
}
