:root {
  --bg: #0D1420;
  --surface: #131C2A;
  --surface-2: #1A2536;
  --border: #29354A;
  --text: #EDF0F4;
  --text-muted: #8B96A6;
  --accent: #5891CC;
  --accent-hover: #7AA8D9;
  --accent-ink: #0B1E30;
  --accent-2: #94A0AD;
  --accent-2-ink: #12161B;
  --danger: #E5636B;
  --radius: 10px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.accent-text { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
p { margin: 0 0 1em; }

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #0B1E30; }
.btn-accent:hover { background: #7AA8D9; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,20,32,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s ease; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content:''; position:absolute; left:0; right:0; bottom:-20px; height:2px; background: var(--accent); }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
.mobile-nav { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid var(--border); }
.mobile-nav a { padding: 12px 0; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

/* Hero */
.hero { padding: 90px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-diagram { position: relative; }
.diagram-caption { text-align: center; color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.06em; margin-top: 6px; }
.svg-label { fill: var(--text-muted); font-size: 9px; }
.coverage-cone { animation: coneFade 4s ease-in-out infinite; transform-origin: center; }
@keyframes coneFade { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.95; } }
.pulse-ring { animation: pulseRing 2.4s ease-out infinite; transform-origin: center; }
@keyframes pulseRing {
  0% { r: 6; opacity: 1; }
  100% { r: 16; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coverage-cone, .pulse-ring { animation: none; }
}

/* Section spacing */
section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 20px; flex-wrap: wrap; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 10px;
}
.service-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 12px; }
.service-link { color: var(--accent); font-size: 0.86rem; font-weight: 600; margin-top: auto; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.portfolio-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.portfolio-media { height: 190px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.portfolio-info { padding: 18px 20px; }
.portfolio-info h3 { margin: 4px 0 6px; font-size: 1.1rem; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; margin-top: 30px; }
.process-steps li { border-top: 2px solid var(--border); padding-top: 16px; }
.step-num { color: var(--accent); font-size: 0.85rem; }
.process-steps h4 { margin: 10px 0 8px; }
.process-steps p { color: var(--text-muted); font-size: 0.92rem; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote { font-family: var(--font-display); font-size: 1.05rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.pricing-card.highlighted { border-color: var(--accent); background: linear-gradient(180deg, rgba(88,145,204,0.08), transparent 40%), var(--surface); }
.pricing-badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #0B1E30; padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 700; }
.price { font-size: 1.4rem; color: var(--accent); margin-bottom: 6px; }
.pricing-features { margin: 16px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { padding-left: 20px; position: relative; color: var(--text-muted); font-size: 0.92rem; }
.pricing-features li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.pricing-card .btn { margin-top: auto; text-align: center; justify-content: center; }

/* Products */
.product-filter-bar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.product-search { display: flex; gap: 10px; max-width: 480px; }
.product-search input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.product-search input:focus { outline: none; border-color: var(--accent); }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 0.86rem; font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pill-icon { font-size: 0.65rem; opacity: 0.8; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease; }
.product-card:hover { border-color: var(--accent); }
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.product-media { height: 170px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.product-info { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-info h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.product-card-footer { padding: 0 20px 18px; }
.product-price-btn { align-self: flex-start; }
.product-suggestions { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }

/* Product detail page */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding-bottom: 30px; }
.product-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.slider-track { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.slider-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.slider-slide.active { opacity: 1; pointer-events: auto; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(13,20,32,0.65); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.35); cursor: pointer; padding: 0; }
.slider-dot.active { background: var(--accent); }
.product-detail-info h1 { margin-top: 4px; }

@media (max-width: 800px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .product-search { max-width: none; }
}

/* CTA band */
.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { text-align: center; }
.cta-inner p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer { padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col p { font-size: 0.92rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); }
.status-line { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(88,145,204,0.6); animation: statusPulse 2s infinite; }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(88,145,204,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(88,145,204,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,145,204,0); }
}

/* Forms (contact + admin shared basics) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Simple pages */
.page-header { padding: 60px 0 20px; }
.page-header p { color: var(--text-muted); max-width: 60ch; }

/* 404 */
.not-found { text-align: center; padding: 140px 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-diagram { order: -1; max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
