/* ============================================
   YOMI — Field Crew Management Platform
   style.css — Dark-first, mobile-first
   ============================================ */

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

:root {
  --black: #0F0F0F;
  --charcoal: #161618;
  --surface: #1C1C1F;
  --surface-hover: #242428;
  --border: #2A2A2E;
  --border-light: #3A3A3F;
  --text: #E8E6E3;
  --text-muted: #9A9A9E;
  --text-dim: #6A6A6E;
  --ink: #1E3A5F;
  --ink-light: #2A4F7A;
  --ink-glow: #1E3A5F33;
  --accent: #D4A843;
  --accent-hover: #E0B850;
  --accent-glow: #D4A84322;
  --jade: #2EC4A0;
  --jade-dim: #2EC4A033;
  --white: #FFFFFF;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'DM Sans', 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-muted);
  max-width: 60ch;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-pad) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-logo svg {
  height: 28px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

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

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

.nav-cta {
  display: none;
}

.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-mobile-toggle { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  transform: perspective(500px) rotateX(30deg);
  transform-origin: center top;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--ink-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Decorative scan lines on hero */
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-light), transparent);
  opacity: 0.3;
}

.hero-scanline:nth-child(1) { top: 25%; }
.hero-scanline:nth-child(2) { top: 75%; }

/* --- Problem Section --- */
.problems {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problems-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.problems-header h2 {
  margin-top: 0.75rem;
  color: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.problem-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ink-glow);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--ink-light);
}

.problem-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

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

/* --- Features --- */
.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header h2 {
  margin-top: 0.75rem;
  color: var(--white);
}

.features-header p {
  margin: 1rem auto 0;
  max-width: 50ch;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--charcoal);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-icon.crew { background: #1E3A5F22; color: var(--ink-light); }
.feature-icon.time { background: #D4A84322; color: var(--accent); }
.feature-icon.pay  { background: #2EC4A022; color: var(--jade); }
.feature-icon.docs { background: #1E3A5F22; color: var(--ink-light); }
.feature-icon.quote { background: #D4A84322; color: var(--accent); }
.feature-icon.report { background: #2EC4A022; color: var(--jade); }

.feature-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

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

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

/* --- How It Works --- */
.how-it-works {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-header h2 {
  margin-top: 0.75rem;
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  background: var(--surface);
}

.step h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step p {
  margin: 0 auto;
  font-size: 0.9375rem;
  max-width: 30ch;
}

.step-connector {
  display: none;
}

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

  .step-connector {
    display: block;
    position: absolute;
    top: 28px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--ink), var(--border));
  }

  .step:last-child .step-connector {
    display: none;
  }
}

/* --- Social Proof / Stats --- */
.stats {
  position: relative;
  overflow: hidden;
}

.stats-inner {
  position: relative;
  z-index: 1;
}

.stats-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.stats-header h2 {
  margin-top: 0.75rem;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--charcoal);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number .accent { color: var(--accent); }
.stat-number .jade { color: var(--jade); }
.stat-number .ink { color: var(--ink-light); }

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

/* --- Pricing --- */
.pricing {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-header h2 {
  margin-top: 0.75rem;
  color: var(--white);
}

.pricing-header p {
  margin: 1rem auto 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--surface);
  position: relative;
  box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  margin: 1rem 0;
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.pricing-price .period {
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--jade-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232EC4A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card .btn {
  width: 100%;
}

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

  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* --- CTA Band --- */
.cta-band {
  padding: var(--section-pad) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.cta-band-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--ink-glow) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.cta-inner .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 30ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* Hero animations */
.hero-content > * {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.5s; }
.hero-content > *:nth-child(5) { animation-delay: 0.6s; }

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Selection */
::selection {
  background: var(--ink);
  color: var(--white);
}

.pricing-annual-note {
  text-align: center;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.85;
}
.pricing-addl-users {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2rem;
}
.pricing-addl-users strong {
  color: var(--text-primary);
}

/* Feature groups */
.feature-group {
  margin-bottom: 3.5rem;
}
.feature-group:last-child {
  margin-bottom: 0;
}
.feature-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Nav CTA group */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-signin {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}
.nav-signin:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 768px) {
  .nav-cta-group { display: none; }
}

/* Hero early access badge */
.hero-early-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* Early access band */
.early-access-band {
  background: linear-gradient(135deg, rgba(30,58,95,0.4), rgba(15,15,15,0.6));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0;
  margin: 3rem 0;
}
.early-access-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.early-access-badge {
  background: var(--accent);
  color: #0F0F0F;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.early-access-text {
  flex: 1;
  min-width: 240px;
}
.early-access-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.early-access-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .early-access-inner { flex-direction: column; align-items: flex-start; }
}
