/* ═══════════════════════════════════════════════════
   SyncCAD — Design System
   Apple-inspired dark · Global SEO-ready
═══════════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────────────── */
:root {
  --black:    #000000;
  --white:    #ffffff;
  --g1:       #0a0a0a;
  --g2:       #111111;
  --g3:       #1a1a1a;
  --g4:       #222222;
  --g5:       #2d2d2d;
  --g6:       #3a3a3a;
  --g7:       #6e6e73;
  --g8:       #98989d;
  --g9:       #aeaeb2;
  --g10:      #d1d1d6;
  --text-1:   #f5f5f7;
  --text-2:   #d1d1d6;
  --text-3:   #a1a1a6;
  --text-4:   #6e6e73;
  --blue:     #0a84ff;
  --blue-l:   #409cff;
  --green:    #30d158;
  --teal:     #5ac8fa;
  --purple:   #bf5af2;
  --orange:   #ff9f0a;
  --red:      #ff453a;
  --grad-1:   linear-gradient(135deg, #0a84ff 0%, #bf5af2 100%);
  --grad-2:   linear-gradient(135deg, #30d158 0%, #0a84ff 100%);
  --grad-hero:linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  --border:   rgba(255,255,255,0.08);
  --border-l: rgba(255,255,255,0.14);
  --r-xs:     8px;
  --r-sm:     12px;
  --r:        16px;
  --r-lg:     24px;
  --r-xl:     32px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:0 24px 64px rgba(0,0,0,0.6);
  --nav-h:    64px;
  --max-w:    1200px;
  --section-pad: 120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--black);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s;
  overflow: visible;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  letter-spacing: -0.1px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-l);
  transform: scale(1.02);
}
.btn-white {
  background: #fff;
  color: #000;
}
.btn-white:hover {
  background: var(--g10);
  transform: scale(1.02);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text-1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-l);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.02);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: rgba(10,132,255,0.1);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--blue);
  font-weight: 500;
  transition: gap 0.2s;
}
.btn-icon:hover { gap: 10px; }

/* ── SECTION LAYOUT ────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 80px 0; }
.section-xs { padding: 48px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text-1);
}
.section-title .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-3);
  line-height: 1.7;
  max-width: 640px;
  font-weight: 400;
  letter-spacing: -0.2px;
}
.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-head .section-sub { margin: 16px auto 0; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.15;
}
.hero-glow-1 { background: var(--blue);   top: -200px; left: -200px; }
.hero-glow-2 { background: var(--purple); bottom: -200px; right: -200px; }
.hero-glow-3 { background: var(--teal);   top: 30%; left: 30%; opacity: 0.08; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,132,255,0.1);
  border: 1px solid rgba(10,132,255,0.25);
  padding: 6px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-l);
  margin-bottom: 32px;
  letter-spacing: 0.2px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title .grad-blue {
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .grad-purple {
  background: linear-gradient(90deg, #bf5af2, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-3);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-social-proof {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
}
.hero-stat .lbl {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 2px;
  font-weight: 500;
}
.hero-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── SCROLL INDICATOR ──────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border-l);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── SERVICES GRID ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.service-card:hover { border-color: var(--border-l); transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }

.service-card.blue::before  { background: radial-gradient(ellipse at top left, rgba(10,132,255,0.1), transparent 70%); }
.service-card.purple::before{ background: radial-gradient(ellipse at top left, rgba(191,90,242,0.1), transparent 70%); }
.service-card.green::before { background: radial-gradient(ellipse at top left, rgba(48,209,88,0.1), transparent 70%); }
.service-card.teal::before  { background: radial-gradient(ellipse at top left, rgba(90,200,250,0.1), transparent 70%); }
.service-card.orange::before{ background: radial-gradient(ellipse at top left, rgba(255,159,10,0.1), transparent 70%); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 26px;
}
.service-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── PORTFOLIO GRID ────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-grid.masonry {
  grid-template-rows: auto;
}
.portfolio-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--g3);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:hover { transform: scale(1.02); }
.portfolio-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16/9; }
.portfolio-item:nth-child(5) { grid-column: span 2; aspect-ratio: 16/9; }
.portfolio-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.portfolio-item:hover .portfolio-thumb { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 980px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  width: fit-content;
}
.portfolio-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.portfolio-client {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── BENTO GRID ────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.bento-item {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.bento-item:hover { border-color: var(--border-l); transform: translateY(-3px); }
.bento-item.span-2 { grid-column: span 2; }
.bento-item.span-3 { grid-column: span 3; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.row-2  { grid-row: span 2; }

/* ── PRICING ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(10,132,255,0.1), rgba(191,90,242,0.08));
  border-color: rgba(10,132,255,0.4);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 980px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pricing-name { font-size: 14px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-price { font-size: 42px; font-weight: 800; letter-spacing: -2px; color: var(--white); margin-bottom: 4px; }
.pricing-price span { font-size: 20px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.pricing-desc { font-size: 13px; color: var(--text-4); margin-bottom: 28px; line-height: 1.6; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.pricing-features li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(48,209,88,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  font-size: 10px;
}

/* ── STATS BAR ─────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-item {
  background: var(--g2);
  padding: 36px 28px;
  text-align: center;
}
.stat-num {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text-4);
  margin-top: 8px;
  font-weight: 500;
}

/* ── TESTIMONIALS ──────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--g2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.testimonial-stars { color: #ffd60a; font-size: 14px; letter-spacing: 1px; margin-bottom: 14px; }
.testimonial-text { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.testimonial-name { font-size: 13px; font-weight: 600; }
.testimonial-role { font-size: 11px; color: var(--text-4); }

/* ── FAQ ───────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-1);
}
.faq-icon { font-size: 20px; color: var(--text-4); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
  margin-top: 12px;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA BANNER ────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(10,132,255,0.12), rgba(191,90,242,0.08));
  border: 1px solid rgba(10,132,255,0.2);
  border-radius: var(--r-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(120px);
  opacity: 0.06;
  top: -200px; left: -100px;
  pointer-events: none;
}

/* ── FOOTER ────────────────────────────────────────── */
.footer {
  background: var(--g1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.footer-desc { font-size: 13px; color: var(--text-4); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-4); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-4);
}

/* ── BADGE / CHIP ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.3px;
}
.badge-blue   { background: rgba(10,132,255,0.12); color: var(--blue-l); border: 1px solid rgba(10,132,255,0.2); }
.badge-green  { background: rgba(48,209,88,0.12);  color: var(--green);  border: 1px solid rgba(48,209,88,0.2); }
.badge-purple { background: rgba(191,90,242,0.12); color: var(--purple); border: 1px solid rgba(191,90,242,0.2); }
.badge-orange { background: rgba(255,159,10,0.12); color: var(--orange); border: 1px solid rgba(255,159,10,0.2); }

/* ── DIVIDER ───────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── MARQUEE ───────────────────────────────────────── */
.marquee-wrap { overflow: hidden; padding: 16px 0; }
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-4);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── PROCESS STEPS ─────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0.3;
}
.process-step { text-align: center; padding: 0 12px; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--g3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  background: var(--black);
}
.process-step:hover .step-num {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(10,132,255,0.3);
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ── 3D VIEWER ─────────────────────────────────────── */
#viewer-canvas-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--g2);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
#viewer-canvas { width: 100% !important; height: 100% !important; display: block; }

.viewer-drop-zone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.viewer-drop-zone:hover { background: rgba(10,132,255,0.05); }
.viewer-drop-zone.dragover { background: rgba(10,132,255,0.1); border-color: var(--blue) !important; }

/* ── MEGA MENU ─────────────────────────────────────── */
.nav-links { display: flex; align-items: center; gap: 28px; overflow: visible; }
.nav-links > li { position: relative; list-style: none; overflow: visible; }
.nav-links > li > a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: color 0.2s; letter-spacing: -0.1px;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--white); }
.nav-mega-btn {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px; padding: 0;
  font-family: inherit; letter-spacing: -0.1px;
  transition: color 0.2s;
}
.nav-mega-btn:hover, .has-mega.open .nav-mega-btn { color: var(--white); }
.nav-arrow {
  font-size: 9px; opacity: 0.5; display: inline-block;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); line-height: 1;
}
.has-mega.open .nav-arrow { transform: rotate(180deg); opacity: 1; }

/* Panel shell — full nav width, anchored via .nav position */
.mega-panel {
  position: fixed; top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4,0,0.2,1);
  z-index: 1090;
}
.has-mega.open .mega-panel {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
/* Inner container keeps content centered + max-width */
.mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Layout helpers */
.mega-body { display: flex; gap: 8px; }
.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-col-title {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.28);
  text-transform: uppercase; letter-spacing: 0.9px;
  padding: 6px 10px 6px; margin-bottom: 2px;
}
.mega-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 4px; }

/* Service row item */
.mega-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 12px;
  color: rgba(255,255,255,0.65);
  transition: background 0.14s, color 0.14s;
  font-size: 13px; text-decoration: none;
  white-space: nowrap;
}
.mega-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.mega-icon {
  font-size: 16px; flex-shrink: 0; width: 32px; height: 32px;
  background: rgba(255,255,255,0.06); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.mega-item:hover .mega-icon { background: rgba(255,255,255,0.1); }
.mega-text b { display: block; font-weight: 600; font-size: 13px; line-height: 1.2; }
.mega-text span { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.3; display: block; }
.mega-item:hover .mega-text span { color: rgba(255,255,255,0.5); }

/* ── Portfolio thumb cards ── */
.mega-works {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 4px 0;
}
.mega-work-card {
  border-radius: 12px; overflow: hidden;
  background: var(--g3);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s;
  display: block;
}
.mega-work-card:hover { transform: scale(1.025); border-color: rgba(255,255,255,0.14); }
.mega-work-thumb {
  width: 100%; aspect-ratio: 16/10;
  display: block; position: relative; overflow: hidden;
}
/* Gradient "renders" per category */
.mwt-mech  { background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 40%, #0f4c81 70%, #1e6a9a 100%); }
.mwt-render{ background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 35%, #7a3200 65%, #bf6830 100%); }
.mwt-arch  { background: linear-gradient(135deg, #001a12 0%, #003d28 40%, #005c3a 70%, #0a8c5a 100%); }
.mwt-sheet { background: linear-gradient(135deg, #111118 0%, #1e1e2e 40%, #2a2a4a 70%, #3a3a6a 100%); }
.mwt-product{ background: linear-gradient(135deg, #1a001a 0%, #3d003d 35%, #6a006a 65%, #9a1a9a 100%); }
.mwt-reveng{ background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 40%, #2d2d2d 70%, #3d3d3d 100%); }
/* Decorative lines overlay */
.mega-work-thumb::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(255,255,255,0.025) 18px, rgba(255,255,255,0.025) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255,255,255,0.025) 18px, rgba(255,255,255,0.025) 19px);
}
/* Highlight dot */
.mega-work-thumb::after {
  content: ''; position: absolute;
  width: 60%; height: 60%; border-radius: 50%;
  top: -10%; left: 10%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.mega-work-label {
  padding: 7px 10px 8px;
}
.mega-work-label b {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.8); line-height: 1.2;
}
.mega-work-label span {
  font-size: 10.5px; color: rgba(255,255,255,0.35);
}

/* ── Promo / stats panel ── */
.mega-promo {
  background: linear-gradient(150deg, rgba(10,132,255,0.1) 0%, rgba(191,90,242,0.07) 100%);
  border: 1px solid rgba(10,132,255,0.18); border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mega-promo-stat { display: flex; flex-direction: column; gap: 1px; }
.mega-promo-num {
  font-size: 26px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  background: var(--grad-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.mega-promo-label { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.4; }
.mega-promo-stats { display: flex; gap: 12px; }
.mega-promo-stats .mega-promo-stat { flex: 1; }
.mega-promo-stat small {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.7px;
  color: rgba(255,255,255,0.25);
}
.mega-promo-stat strong {
  font-size: 17px; font-weight: 800; letter-spacing: -0.5px;
  color: #fff;
}

/* ── Tool preview card ── */
.mega-tool-preview {
  display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; height: 100%;
  transition: border-color 0.2s, transform 0.2s;
  background: rgba(255,255,255,0.03);
}
.mega-tool-preview:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-2px); }
.mega-tool-thumb {
  width: 100%; aspect-ratio: 16/8;
  position: relative; overflow: hidden;
}
.mega-tool-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 14px, rgba(255,255,255,0.02) 14px, rgba(255,255,255,0.02) 15px),
              repeating-linear-gradient(90deg, transparent, transparent 14px, rgba(255,255,255,0.02) 14px, rgba(255,255,255,0.02) 15px);
}
.mega-tool-ui {
  position: absolute; inset: 0; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.mtu-bar { display: flex; gap: 4px; }
.mtu-bar span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.mtu-rows { display: flex; flex-direction: column; gap: 5px; }
.mtu-row {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border-radius: 6px;
  padding: 5px 8px;
}
.mtu-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mtu-dot.green { background: var(--green); }
.mtu-dot.yellow { background: #ffd60a; }
.mtu-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); flex:1; }
.mtu-amt { font-size: 10px; font-weight: 700; color: #fff; margin-left: auto; white-space: nowrap; }
.mega-tool-label { padding: 10px 12px 12px; }
.mega-tool-label b { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85); line-height: 1.3; margin-bottom: 3px; }
.mega-tool-label span { font-size: 11px; color: rgba(255,255,255,0.38); }

/* ── Tools panel badge ── */
.mega-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  background: var(--blue); color: #fff; border-radius: 4px;
  padding: 1px 5px; letter-spacing: 0.3px; vertical-align: middle;
  margin-left: 6px; line-height: 1.6;
}
.mega-badge.green { background: var(--green); }

/* ── HAMBURGER ─────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 36px; height: 36px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  width: 100%; height: 1.5px; background: var(--text-1);
  border-radius: 2px; display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

/* ── MOBILE OVERLAY ────────────────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  z-index: 998; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ── MOBILE DRAWER ─────────────────────────────────── */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: #0c0c0c;
  border-left: 1px solid var(--border-l);
  z-index: 999; display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: #0c0c0c; flex-shrink: 0;
}
.drawer-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-2); font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.drawer-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.drawer-body { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.drawer-section { padding: 14px 20px 6px; }
.drawer-section-title {
  font-size: 10px; font-weight: 700; color: var(--text-4);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 4px; padding: 0 8px;
}
.drawer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background 0.15s, color 0.15s; margin-bottom: 1px;
}
.drawer-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.drawer-link.active { background: rgba(10,132,255,0.1); color: var(--blue); }
.dl-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.drawer-sep { height: 1px; background: var(--border); margin: 6px 20px; }
.drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  flex-shrink: 0; display: flex; flex-direction: column; gap: 8px;
  background: #0c0c0c;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer { background: var(--g1); border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--grad-1); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.footer-desc { font-size: 13px; color: var(--text-4); line-height: 1.7; max-width: 260px; margin-bottom: 16px; }
.footer-rating { display: flex; align-items: center; gap: 8px; }
.footer-rating-stars { color: #ffd60a; font-size: 12px; letter-spacing: 1px; }
.footer-rating-text { font-size: 12px; color: var(--text-4); }
.footer-payment { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fp-tag {
  font-size: 10px; font-weight: 700;
  background: var(--g3); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px; color: var(--text-4);
}
.footer-col-title {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: var(--text-4); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }
.fl-badge {
  font-size: 10px; background: rgba(10,132,255,0.15);
  color: var(--blue); padding: 1px 6px; border-radius: 20px;
  margin-left: 4px; vertical-align: middle; font-weight: 700;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-4); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-2); }

/* ── ANIMATIONS ────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
  .footer-brand .footer-desc { max-width: 100%; }
}
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .nav-links { gap: 20px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-item:nth-child(1), .portfolio-item:nth-child(5) { grid-column: span 1; aspect-ratio: 4/3; }
  .bento-grid { grid-template-columns: repeat(2,1fr); }
  .bento-item.span-3, .bento-item.span-4 { grid-column: span 2; }
  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; display: block; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item.span-2, .bento-item.span-3, .bento-item.span-4 { grid-column: span 1; }
  .bento-item.row-2 { grid-row: span 1; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .cta-banner { padding: 48px 24px; }
  .hero-title { letter-spacing: -2px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  :root { --section-pad: 48px; }
  .hero-title { letter-spacing: -1.5px; font-size: clamp(36px,9vw,60px); }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .stat-num { font-size: 32px; }
  .stat-item { padding: 24px 16px; }
}
