/* ============================================================
   SMSReady Global CSS
   Design tokens, reset, typography, nav, footer, utilities
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary:     #0A0A0A;
  --bg-secondary:   #111111;
  --bg-tertiary:    #1A1A1A;
  --accent:         #00E5A0;
  --accent-dim:     #00A872;
  --text-primary:   #F5F5F0;
  --text-secondary: #9A9A8E;
  --text-accent:    #00E5A0;
  --border:         #222220;
  --border-bright:  #333330;
  --danger:         #FF4444;
  --success:        #00E5A0;
}

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

/* --- Base Typography --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-dim);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #0A0A0A;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: #0A0A0A;
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.logo {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  color: var(--accent);
}

.logo-ready {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.15s ease;
}

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

.nav-cta {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  line-height: 1;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-container {
    gap: 16px;
  }
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: 'Syne', system-ui, sans-serif;
  color: var(--text-primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer-badge {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Section Utilities --- */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: block;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Stat Row --- */
.stat-row {
  display: flex;
  gap: 48px;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
  .stat-row {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-item {
    min-width: calc(50% - 16px);
  }
}

/* --- Shared Section Spacing --- */
.section {
  padding: 96px 0;
}

/* --- Accent Text --- */
.text-accent {
  color: var(--accent);
}

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

/* --- Page hero shared --- */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

/* --- Callout Box --- */
.callout {
  border-left: 2px solid var(--accent);
  background-color: var(--bg-secondary);
  padding: 20px 24px;
  border-radius: 0 2px 2px 0;
}

.callout p {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
}
