:root {
  --accent: #DCAD20;
  --accent-soft: rgba(220, 173, 32, 0.14);
  --gray: #4A4A4A;
  --gray-light: #7a7a7a;
  --white: #ffffff;
  --bg-0: #0c0c0d;
  --bg-1: #131314;
  --bg-2: #1a1a1c;
  --border: rgba(255, 255, 255, 0.08);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--white);
  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; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: rgba(255,255,255,0.78); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(12, 12, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-logo { width: 56px; height: 56px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }

.nav-links a.nav-cta {
  background: var(--accent);
  color: #14120a;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #c99f1c; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1d1a10 0%, var(--bg-0) 60%);
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: -60px;
  z-index: 0;
  will-change: transform;
}

.circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.c-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.28;
}

.c-line {
  stroke-dasharray: 12 18;
  animation: dash-flow 6s linear infinite;
}
.circuit-lines .c-line:nth-child(1) { animation-duration: 7s; }
.circuit-lines .c-line:nth-child(2) { animation-duration: 9s; animation-direction: reverse; }
.circuit-lines .c-line:nth-child(3) { animation-duration: 8s; }
.circuit-lines .c-line:nth-child(4) { animation-duration: 10s; animation-direction: reverse; }
.circuit-lines .c-line:nth-child(5) { animation-duration: 6.5s; }
.circuit-lines .c-line:nth-child(6) { animation-duration: 11s; animation-direction: reverse; }
.circuit-lines .c-line:nth-child(7) { animation-duration: 7.5s; }

@keyframes dash-flow {
  to { stroke-dashoffset: -300; }
}

.c-node {
  fill: var(--accent);
  opacity: 0.7;
  animation: node-pulse 2.4s ease-in-out infinite;
}
.c-node:nth-of-type(2n) { animation-delay: 0.6s; }
.c-node:nth-of-type(3n) { animation-delay: 1.1s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; r: 4; }
  50% { opacity: 1; r: 6; }
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.hero-particles span {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px 1px rgba(220, 173, 32, 0.6);
  opacity: 0;
  animation: particle-float var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes particle-float {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.85; }
  50% { transform: translateY(-70px) scale(1.1); opacity: 0.9; }
  85% { opacity: 0.3; }
  100% { transform: translateY(-140px) scale(0.8); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
  will-change: transform, opacity;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.hero-scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-cue-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #14120a;
}
.btn-primary:hover { background: #c99f1c; }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SHARED SECTION LAYOUT ---------- */
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 24px;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-lead { font-size: 1.05rem; }

/* ---------- SERVICES ---------- */
.services { background: var(--bg-1); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: rgba(220, 173, 32, 0.4);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.15rem; color: var(--white); }
.service-card p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- ABOUT ---------- */
.about { background: var(--bg-0); }

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 110px;
  padding-bottom: 110px;
}

.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about-copy h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 32px;
}
.about-copy p { font-size: 1.02rem; }

.about-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 2px;
}
.about-card-inner { padding: 34px; }

.about-card-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-card h3 { color: var(--white); font-size: 1.3rem; }
.about-card p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-1); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
a.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.contact-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 14px;
}
.contact-icon svg { width: 24px; height: 24px; }

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-logo { width: 28px; height: 28px; }

.footer-tagline {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

/* ---------- SCROLL FADE-IN ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-card.fade-in,
.contact-card.fade-in {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.service-card.fade-in.in-view,
.contact-card.fade-in.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card:hover.in-view,
a.contact-card:hover.in-view {
  transform: translateY(-4px) scale(1);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 90ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 180ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 270ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 360ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 450ms; }

.contact-grid .contact-card:nth-child(1) { transition-delay: 0ms; }
.contact-grid .contact-card:nth-child(2) { transition-delay: 110ms; }
.contact-grid .contact-card:nth-child(3) { transition-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-line, .c-node, .hero-particles span, .hero-scroll-cue span {
    animation: none !important;
  }
  .hero-scroll-cue { display: none; }
  .fade-in,
  .service-card.fade-in,
  .contact-card.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
  .hero-bg, .hero-content {
    transform: none !important;
  }
  .btn:hover, .service-card:hover, a.contact-card:hover {
    transform: none;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 12, 13, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { text-align: center; }

  .hero-title { font-size: 2.1rem; }
  .section-inner { padding: 80px 20px; }
  .about-grid { padding-top: 80px; padding-bottom: 80px; gap: 36px; }
}
