:root {
  --background: oklch(0.16 0.01 240);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.20 0.01 240);
  --primary: oklch(0.82 0.005 240);
  --primary-foreground: oklch(0.16 0.01 240);
  --primary-2: oklch(0.62 0.005 240);
  --primary-3: oklch(0.95 0.003 240);
  --brand-green: oklch(0.78 0.22 145);
  --brand-green-foreground: oklch(0.16 0.01 240);
  --muted-foreground: oklch(0.72 0.01 240);
  --border: oklch(1 0 0 / 0.08);
  --cta: oklch(0.68 0.21 35);
  --cta-foreground: oklch(0.98 0 0);
  --blue-cta: oklch(0.58 0.22 265);
  --blue-cta-foreground: oklch(0.98 0 0);
  --grid-line: oklch(1 0 0 / 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.text-primary { color: var(--primary); }
.eyebrow { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; display: inline-block; margin-bottom: 0.75rem; }

/* Announcement */
.announcement {
  position: relative;
  overflow: hidden;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  color: #fff;
  background: linear-gradient(90deg,
    oklch(0.65 0.27 25),
    oklch(0.72 0.22 60),
    oklch(0.78 0.20 95),
    oklch(0.72 0.22 145),
    oklch(0.68 0.20 200),
    oklch(0.62 0.25 280),
    oklch(0.68 0.26 330),
    oklch(0.65 0.27 25));
  background-size: 400% 100%;
  background-size: 300% 100%;
  animation: ann-bg 6s linear infinite;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.announcement-inner { position: relative; z-index: 1; }
.announcement span {
  display: inline-block;
  background: linear-gradient(90deg, #fff, #e6f7ff, #fff, #ffe6f7, #fff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ann-text 3s linear infinite, ann-pulse 1.6s ease-in-out infinite;
  text-shadow: 0 0 12px oklch(1 0 0 / 0.25);
  letter-spacing: 0.02em;
}
@keyframes ann-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes ann-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ann-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .nav { padding: 1.25rem 2rem; } }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, oklch(0.95 0.003 240), oklch(0.55 0.005 240), oklch(0.95 0.003 240));
  background-size: 200% 200%;
  color: var(--primary-foreground);
  display: grid; place-items: center; font-weight: 900;
  box-shadow: 0 0 0 1px var(--border), 0 0 14px oklch(1 0 0 / 0.18);
  animation: brand-mark-shine 4s ease-in-out infinite;
}
.brand-text {
  display: inline-block;
  background: linear-gradient(90deg,
    oklch(0.98 0 0) 0%,
    oklch(0.65 0.005 240) 25%,
    oklch(0.98 0 0) 50%,
    oklch(0.65 0.005 240) 75%,
    oklch(0.98 0 0) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.04em;
  animation: brand-text-shimmer 3.5s linear infinite;
}
@keyframes brand-mark-shine {
  0%, 100% { background-position: 0% 0%; transform: rotate(0deg); }
  50% { background-position: 100% 100%; transform: rotate(-3deg); }
}
@keyframes brand-text-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.nav-links { display: none; gap: 2rem; font-size: 0.9rem; color: var(--muted-foreground); }
.nav-links a:hover { color: var(--foreground); }
.menu-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--card); border: 1px solid var(--border); color: var(--foreground); font-size: 1.25rem; cursor: pointer; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.95rem; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* Hero */
.hero {
  padding: 6rem 1.25rem 4rem;
  text-align: center;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .hero { padding: 8rem 2rem 5rem; } }
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.sparks-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; touch-action: manipulation; cursor: pointer;
}
.sparks-hint {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 3; padding: 0.4rem 0.85rem; font-size: 0.75rem;
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted-foreground); pointer-events: none;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
  word-wrap: break-word;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--muted-foreground);
  max-width: 42rem; margin-left: auto; margin-right: auto;
}
.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-blue { background: var(--blue-cta); color: var(--blue-cta-foreground); }
.btn-orange { background: var(--cta); color: var(--cta-foreground); }

.hero-flame {
  background: linear-gradient(180deg, oklch(0.95 0.18 95) 0%, oklch(0.78 0.22 60) 30%, oklch(0.65 0.25 30) 60%, oklch(0.55 0.24 15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px oklch(0.7 0.22 40 / 0.55)) drop-shadow(0 0 40px oklch(0.6 0.25 25 / 0.35));
  animation: flame-flicker 2.4s ease-in-out infinite;
}
@keyframes flame-flicker {
  0%, 100% { filter: drop-shadow(0 0 18px oklch(0.7 0.22 40 / 0.55)) drop-shadow(0 0 40px oklch(0.6 0.25 25 / 0.35)); }
  50% { filter: drop-shadow(0 0 28px oklch(0.78 0.22 50 / 0.7)) drop-shadow(0 0 60px oklch(0.65 0.25 30 / 0.5)); }
}

/* Marquees */
.marquees { padding: 2rem 0; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; }
.ribbon {
  background: linear-gradient(90deg,
    oklch(0.78 0.22 145),
    oklch(0.72 0.2 155),
    oklch(0.78 0.22 145));
  color: var(--brand-green-foreground);
  transform: rotate(-3deg); padding: 0.85rem 0;
}
.ribbon-dark { background: oklch(0.20 0.01 240); color: var(--foreground); transform: rotate(-3deg); padding: 0.85rem 0; border-block: 1px solid var(--border); }
.marquee { display: flex; overflow: hidden; gap: 3rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2rem; flex-shrink: 0; animation: marquee 30s linear infinite; white-space: nowrap; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2rem; }
.marquee-reverse { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Sections */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 3.5rem); font-weight: 700; margin-top: 0.5rem; }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); max-width: 36rem; margin-left: auto; margin-right: auto; font-size: clamp(0.95rem, 1.6vw, 1.1rem); }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.service-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; transition: transform 0.2s, border-color 0.2s; }
@media (min-width: 768px) { .service-card { padding: 2rem; } }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.service-head { display: flex; gap: 1rem; align-items: flex-start; }
.service-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; background: color-mix(in oklab, var(--primary) 15%, transparent); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.service-card .desc { color: var(--muted-foreground); font-size: 0.9rem; }
.service-items { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 0.5rem 1.5rem; }
@media (min-width: 640px) { .service-items { grid-template-columns: 1fr 1fr; } }
.service-items li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; }
.service-items li::before { content: "✓"; color: var(--primary); font-weight: 800; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-grid h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; margin-top: 0.5rem; }
.about-grid .lead { margin-top: 1.25rem; color: var(--muted-foreground); font-size: clamp(0.95rem, 1.6vw, 1.1rem); }
.check-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 0.75rem; font-weight: 800; flex-shrink: 0; margin-top: 0.2rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; text-align: center; }
@media (min-width: 768px) { .stat-card { padding: 2rem; } }
.stat-card .val { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--primary); }
.stat-card .lbl { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted-foreground); }

/* Process */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 768px) { .process-card { padding: 2rem; } }
.process-card .step { font-size: 3rem; font-weight: 900; color: color-mix(in oklab, var(--primary) 25%, transparent); line-height: 1; }
.process-card h3 { font-size: 1.15rem; font-weight: 700; margin-top: 0.75rem; }
.process-card p { margin-top: 0.6rem; color: var(--muted-foreground); font-size: 0.9rem; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
@media (min-width: 768px) { .t-card { padding: 2rem; } }
.t-card .stars { color: var(--primary); margin-bottom: 0.75rem; }
.t-card .quote { font-size: 1rem; }
.t-card .who { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.t-card .who .name { font-weight: 600; }
.t-card .who .role { font-size: 0.85rem; color: var(--muted-foreground); }

/* CTA */
.cta-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2.5rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .cta-card { padding: 4rem; } }
.cta-card h2 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; }
.cta-card p { margin-top: 1rem; color: var(--muted-foreground); font-size: clamp(0.95rem, 1.6vw, 1.1rem); max-width: 32rem; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { font-weight: 600; margin-bottom: 0.85rem; font-size: 0.95rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--foreground); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-flame { animation: none !important; }
  html { scroll-behavior: auto; }
}
