/* V21 Dark Mode First - Highway 1 Digital */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=optional');

:root {
  --bg: #0a0e1a;
  --bg-card: rgba(255,255,255,0.05);
  --text: #f0f0f0;
  --text-muted: #a0a0b0;
  --accent: #00c9a7;
  --accent-2: #ffc857;
  --border: rgba(255,255,255,0.1);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-blur: 12px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8f7f4;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #666680;
    --accent: #00a085;
    --accent-2: #e6a800;
    --border: rgba(0,0,0,0.08);
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(0,0,0,0.08);
  }
}
[data-theme="light"] {
  --bg: #f8f7f4;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #666680;
  --accent: #00a085;
  --accent-2: #e6a800;
  --border: rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,0,0.08);
}
[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-card: rgba(255,255,255,0.05);
  --text: #f0f0f0;
  --text-muted: #a0a0b0;
  --accent: #00c9a7;
  --accent-2: #ffc857;
  --border: rgba(255,255,255,0.1);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,201,167,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,200,87,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0,201,167,0.06) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--accent); color: #000;
  text-decoration: none; border-radius: 0 0 4px 4px; font-size: 0.875rem;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Glass Card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.glass:hover { border-color: var(--accent); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: background-color 0.3s ease;
  contain: layout style;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  text-decoration: none;
}
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__actions { display: flex; gap: 0.75rem; align-items: center; }

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.75rem 1.75rem;
  border-radius: 8px; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { opacity: 0.9; text-decoration: none; }
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero */
.hero {
  padding: 8rem 0 6rem;
  contain: layout style;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; line-height: 1.1;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: 1.125rem; color: var(--text-muted);
  max-width: 550px; margin-bottom: 2.5rem;
}

/* Stats */
.stats {
  padding: 5rem 0;
  contain: layout style;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat-card { text-align: center; padding: 2rem 1.5rem; }
.stat-card__number {
  font-size: 2.5rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.5rem;
}
.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Services */
.services {
  padding: 5rem 0;
  contain: layout style;
}
.section-header { margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.section-header p {
  font-size: 1.125rem; color: var(--text-muted); max-width: 600px;
}
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card { border-top: 3px solid var(--accent); }
.service-card--amber { border-top-color: var(--accent-2); }
.service-card__label {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--accent); margin-bottom: 1rem;
}
.service-card--amber .service-card__label { color: var(--accent-2); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.service-card__features { list-style: none; }
.service-card__features li {
  padding: 0.25rem 0; font-size: 0.85rem; color: var(--text-muted);
  padding-left: 1.25rem; position: relative;
}
.service-card__features li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--accent);
}

/* Services Page Grid */
.services-page__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  contain: layout style;
}
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testimonial-card { position: relative; }
.testimonial-card__quote {
  font-size: 3rem; color: var(--accent-2); line-height: 1;
  font-family: serif; margin-bottom: 0.5rem;
}
.testimonial-card blockquote {
  font-size: 0.95rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 1.5rem;
}
.testimonial-card__author { font-weight: 600; font-size: 0.9rem; }
.testimonial-card__role { font-size: 0.8rem; color: var(--text-muted); }

/* CTA */
.cta {
  padding: 5rem 0; text-align: center;
  background: linear-gradient(135deg, rgba(0,201,167,0.15), rgba(255,200,87,0.1));
  border-radius: 24px; margin: 2rem 0;
  contain: layout style;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2rem; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.5rem; color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 8px; color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg); }

.info-card h3 { margin-bottom: 1.5rem; }
.info-card__item { margin-bottom: 1.25rem; }
.info-card__item strong {
  display: block; font-family: var(--font-mono);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.25rem;
  color: var(--accent);
}
.info-card__item a, .info-card__item span {
  font-size: 0.95rem; color: var(--text-muted);
}

/* Page Hero */
.page-hero { padding: 6rem 0 3rem; contain: layout style; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.page-hero p { color: var(--text-muted); font-size: 1.125rem; margin-top: 1rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  transition: border-color 0.3s; contain: layout style;
}
.footer__inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer__logo { font-weight: 700; }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  justify-content: space-around;
  transition: background-color 0.3s, border-color 0.3s;
}
.mobile-nav__item {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; text-decoration: none; font-size: 0.7rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.mobile-nav__item--active { color: var(--accent); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links--open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem; gap: 1rem;
    backdrop-filter: blur(16px);
  }
  .services__grid, .testimonials__grid, .stats__grid,
  .services-page__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 3rem; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
