/* ============================================================
   VSPEC INC — Precision Standards Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg-primary: #0A0D14;
  --bg-secondary: #111827;
  --bg-card: #1F2937;
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --accent-gold: #F59E0B;
  --accent-gold-light: #FBBF24;
  --accent-blue: #3B82F6;
  --accent-emerald: #10B981;
  --border: #374151;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

.overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* --- UTILITY --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.gold-text { color: var(--accent-gold); }
.gold-underline {
  display: inline-block;
  position: relative;
}
.gold-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  border-radius: 2px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(10, 13, 20, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #000 !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.8125rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}
.hero-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(18rem, 35vw, 38rem);
  font-weight: 900;
  color: #0A0D14;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: watermarkPulse 4s ease-in-out infinite;
}
@keyframes watermarkPulse {
  0%, 100% { color: #0A0D14; }
  50% { opacity: 0.06; }
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}
.hero h1 span { display: block; }
.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold), #D97706);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35);
}
.hero-cta svg { width: 18px; height: 18px; }
.hero-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 3rem;
}
.hero-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.hero-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  animation: barFill 2s ease-out forwards;
  transform-origin: left;
  transform: scaleX(0);
}
.hero-bar:nth-child(2) .hero-bar-fill { animation-delay: 0.3s; }
.hero-bar:nth-child(3) .hero-bar-fill { animation-delay: 0.6s; }
@keyframes barFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-hex {
  width: 280px;
  height: 320px;
  position: relative;
}
.hero-hex-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero-hex svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-hex-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  position: relative;
  z-index: 2;
}
.hero-hex-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 2;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}
.hero-orb-1 { width: 200px; height: 200px; background: var(--accent-gold); top: -20px; right: 40px; animation: orbFloat 6s ease-in-out infinite; }
.hero-orb-2 { width: 150px; height: 150px; background: var(--accent-blue); bottom: 0; right: -20px; animation: orbFloat 8s ease-in-out infinite 1s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}

/* --- TRUST STRIP --- */
.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.trust-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.trust-item svg { width: 28px; height: 28px; opacity: 0.5; }

/* --- SERVICES --- */
.services {
  padding: 7rem 0;
  background: var(--bg-primary);
}
.services-header { text-align: center; margin-bottom: 4rem; }
.services-header .section-desc { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card-wrap { perspective: 1200px; height: 320px; }
.service-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}
.service-card.flipped { transform: rotateY(180deg); }
.service-card-front, .service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.service-card-front {
  background: var(--bg-card);
  border-top: 3px solid var(--accent-gold);
}
.service-card-back {
  background: var(--bg-secondary);
  transform: rotateY(180deg);
  border-top: 3px solid var(--accent-gold-light);
  text-align: center;
}
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}
.service-card-front h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.service-card-front .flip-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.service-card-back h3 {
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.service-card-back p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.service-stat {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.service-stat-item { text-align: center; }
.service-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-gold);
}
.service-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- ABOUT + SPECS --- */
.about-specs {
  padding: 7rem 0;
  background: var(--bg-secondary);
}
.about-specs .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-content { max-width: 520px; }
.about-pullquote {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.4;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-gold);
}
.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}
.specs-panels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.spec-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}
.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.spec-value {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.spec-underline {
  width: 48px;
  height: 2px;
  background: var(--accent-gold);
  margin-bottom: 1rem;
}
.spec-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- CAPABILITIES --- */
.capabilities {
  padding: 7rem 0;
  background: var(--bg-primary);
}
.capabilities-header { text-align: center; margin-bottom: 4rem; }
.capabilities-header .section-desc { margin: 0 auto; }
.gauges-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gauge-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.25rem;
}
.gauge-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-gold) 0deg,
    var(--accent-gold-light) calc(var(--gauge-pct) * 3.6deg),
    var(--bg-card) calc(var(--gauge-pct) * 3.6deg),
    var(--bg-card) 360deg
  );
}
.gauge-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-gold);
}
.gauge-symbol { font-size: 0.875rem; color: var(--text-muted); }
.gauge-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 140px;
}

/* --- PROCESS --- */
.process {
  padding: 7rem 0;
  background: var(--bg-secondary);
}
.process-header { text-align: center; margin-bottom: 4rem; }
.process-header .section-desc { margin: 0 auto; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border: 2px dashed var(--border);
  border-radius: 4px;
  pointer-events: none;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color var(--transition);
}
.process-card:hover { border-color: var(--accent-gold); }
.process-step {
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.process-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.process-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.process-connector {
  display: none;
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
}
.cta-banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 2rem;
}
.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-end;
}
.cta-phone {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cta-phone svg { width: 28px; height: 28px; color: var(--accent-gold); }
.cta-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-gold);
}
.cta-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.cta-email-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* --- FOOTER --- */
.footer {
  padding: 5rem 0 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--accent-gold); }

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PRIVACY / TERMS PAGES --- */
.legal-page {
  padding: 8rem 0 5rem;
  background: var(--bg-primary);
  min-height: 100vh;
}
.legal-page .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.legal-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.legal-toc { display: flex; flex-direction: column; gap: 0.35rem; }
.legal-toc a {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  line-height: 1.35;
}
.legal-toc a:hover, .legal-toc a.active {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.06);
  border-left-color: var(--accent-gold);
}
.legal-content h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.legal-content .effective-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.legal-content p, .legal-content li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--text-primary); }
.legal-content a { color: var(--accent-gold); text-decoration: underline; }
.legal-contact {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.legal-contact h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gauges-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-specs .container { grid-template-columns: 1fr; gap: 3rem; }
  .legal-page .container { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .hero-watermark { font-size: 12rem; right: -10%; }
  .services-grid { grid-template-columns: 1fr; max-width: 400px; }
  .gauges-row { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid::before { display: none; }
  .cta-banner .container { grid-template-columns: 1fr; gap: 2rem; }
  .cta-contact { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .trust-strip .container { justify-content: center; }
  .trust-item { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .gauges-row { grid-template-columns: 1fr; }
  .cta-banner { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%); }
}
