/* TheBuild — Kinetic Onyx Design System */

/* ===== Variables ===== */
:root {
  --bg: #121212;
  --bg-surface: #1E1E1E;
  --bg-surface-alt: #242424;
  --orange: #FF8C00;
  --orange-dark: #DF8B02;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --border: #2A2A2A;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--orange-dark);
  text-decoration: none;
}

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

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

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

/* ===== Layout ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 64px;
}

.container--wide {
  max-width: 1000px;
}

/* ===== Hero (Landing Only) ===== */
.hero {
  text-align: center;
  padding: calc(var(--nav-height) + 64px) 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--orange);
  color: #111;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  letter-spacing: -0.01em;
}

.hero-cta:hover {
  background-color: var(--orange-dark);
  color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
}

/* ===== Feature Cards ===== */
.features {
  padding: 0 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 0 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works-heading {
  text-align: center;
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 32px;
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--orange);
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===== Content Pages (privacy, terms, support) ===== */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header .updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.content-section {
  margin-bottom: 36px;
}

.content-section h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.content-section p {
  margin-bottom: 12px;
}

/* ===== Lists ===== */
ul.styled-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

ul.styled-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

ul.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--orange);
}

ul.styled-list li strong {
  color: var(--text-primary);
}

/* ===== Support Page ===== */
.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.contact-card .contact-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.contact-card .contact-email {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
}

.contact-card .contact-email:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features,
  .how-it-works {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: calc(var(--nav-height) + 32px);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .contact-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
}
