:root {
  --bg: #0b1020;
  --panel: #121a2d;
  --panel-2: #17233d;
  --text: #f6f8fc;
  --muted: #b4bfd3;
  --line: rgba(255,255,255,.09);
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --secondary: #1f2937;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.24);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #09101d 0%, #0f172a 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  text-align: center;
  background: linear-gradient(90deg, var(--primary), #fb7185);
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px;
}
.logo-text { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.main-nav ul, .footer-links, .main-nav .menu { list-style: none; padding: 0; margin: 0; }
.main-nav ul { display: flex; gap: 24px; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 600; }
.main-nav a:hover, .footer-links a:hover, .footer-bottom-links a:hover { color: var(--white); }
.header-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; transition: .25s ease;
}
.header-cta, .btn-primary { background: var(--primary); color: #111827; }
.header-cta:hover, .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--line); color: var(--white); background: rgba(255,255,255,.03); }
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--white); border-radius: 10px; padding: 10px 12px; }
.hero { padding: 84px 0 60px; }
.hero.hero-3d { position: relative; overflow: clip; isolation: isolate; }
.hero-canvas-wrap { position: absolute; inset: 0; z-index: 0; }
#cnc-hero-canvas { width: 100%; height: 100%; display: block; opacity: .95; }
.hero-grid { position: relative; z-index: 2; }
.hero-content, .hero-card { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(245,158,11,.16), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(59,130,246,.18), transparent 24%),
    linear-gradient(90deg, rgba(5,10,20,.88), rgba(7,12,24,.55) 48%, rgba(9,16,29,.82));
  z-index: 1;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}
.hero-overlay-glow {
  position: absolute; border-radius: 999px; filter: blur(60px); opacity: .55; pointer-events: none;
}
.hero-overlay-glow-1 { width: 220px; height: 220px; left: 6%; top: 14%; background: rgba(245,158,11,.32); }
.hero-overlay-glow-2 { width: 280px; height: 280px; right: 8%; bottom: 10%; background: rgba(59,130,246,.22); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.2);
  color: #fdba74; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.hero-specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-specs span {
  padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #dbe4f0;
}
.hero-card { background: linear-gradient(180deg, rgba(18,26,45,.9), rgba(18,26,45,.62)); }

.hero-grid, .contact-grid, .content-grid { display: grid; gap: 28px; }
.hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.22); color: #fdba74; font-size: 13px; font-weight: 700;
}
.hero h1, .section-head h2, .page-card h1 { line-height: 1.05; margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); max-width: 720px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 660px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: #d1d5db; font-size: 14px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card, .post-card, .page-card, .widget, .contact-card { padding: 28px; }
.hero-card h3 { margin-top: 0; font-size: 24px; }
.hero-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.section { padding: 72px 0; }
.section.muted { background: rgba(255,255,255,.02); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); }
.section-head p { color: var(--muted); margin: 0; }
.card-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card, .service-card, .testimonial-card, .stat-card { padding: 24px; }
.card-icon {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border-radius: 14px; margin-bottom: 18px; background: rgba(245,158,11,.12); color: #fdba74; font-weight: 800;
}
.product-card h3, .service-card h3 { margin: 0 0 10px; }
.product-card p, .testimonial-card p, .contact-list { color: var(--muted); }
.text-link { color: #fdba74; font-weight: 700; }
.text-link:hover { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { text-align: center; }
.stat-card strong { display: block; font-size: 36px; color: #fdba74; }
.contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.contact-card form { display: grid; gap: 14px; }
.contact-card label { display: grid; gap: 8px; font-weight: 600; }
.contact-card input, .contact-card textarea {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--white);
  border-radius: 14px; padding: 14px 16px; font: inherit;
}
.contact-card textarea { min-height: 140px; resize: vertical; }
.content-grid { grid-template-columns: minmax(0, 1fr) 320px; }
.main-content { min-width: 0; }
.narrow { max-width: 860px; }
.entry-meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.entry-content { color: #dbe4f0; }
.widget-title { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-title { margin: 0 0 14px; font-size: 15px; }
.footer-text, .footer-links { color: var(--muted); font-size: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 26px; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.screen-reader-text { display: none; }
@media (max-width: 991px) {
  .hero-grid, .contact-grid, .content-grid, .footer-grid, .stats-grid, .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hero-overlay-glow-1 { width: 170px; height: 170px; left: -8%; top: 8%; }
  .hero-overlay-glow-2 { width: 180px; height: 180px; right: -6%; bottom: 4%; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 77px; left: 0; right: 0; background: #0f172a; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 18px 16px; gap: 12px; }
  .hero-grid, .contact-grid, .content-grid, .footer-grid, .stats-grid, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .footer-bottom { flex-direction: column; }
}

/* Dynamic service photos */
.service-photo, .spec-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.service-photo img, .spec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder-photo {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  border-style: dashed;
}
.dynamic-spec-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.dynamic-spec-card li { margin-bottom: 6px; }
.service-spec-list {
  margin: 12px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.service-spec-list li { margin-bottom: 6px; }
