:root {
  color-scheme: dark;
  --bg: #07070a;
  --bg-soft: #0d0d12;
  --card: #121218;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --muted: #9b9ba6;
  --orange: #ff7a18;
  --orange-soft: #ffb347;
  --blue: #4f7cff;
  --ghost-bg: rgba(255, 255, 255, 0.05);
  --ghost-bg-hover: rgba(255, 255, 255, 0.1);
  --faint: rgba(255, 255, 255, 0.05);
  --faint-text: rgba(255, 255, 255, 0.35);
  --nav-bg: rgba(7, 7, 10, 0.75);
  --radius: 20px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f7f4;
  --bg-soft: #f0eee8;
  --card: #ffffff;
  --border: rgba(20, 20, 30, 0.10);
  --text: #17171e;
  --muted: #5b5b66;
  --ghost-bg: rgba(20, 20, 30, 0.05);
  --ghost-bg-hover: rgba(20, 20, 30, 0.10);
  --faint: rgba(20, 20, 30, 0.06);
  --faint-text: rgba(20, 20, 30, 0.40);
  --nav-bg: rgba(248, 247, 244, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* overflow-x clip stops decorative elements (glow orbs) from widening the
   page; background on html keeps the scrollbar/overscroll area dark */
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }

::selection { background: var(--orange); color: #000; }

/* ---------- scroll progress bar ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  z-index: 1000;
}

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5vw;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 10px 5vw;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; display: block; }
[data-theme="light"] .logo img { filter: invert(1) hue-rotate(180deg); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0%;
  background: var(--orange); transition: width 0.3s; border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--ghost-bg); color: var(--text);
  font-size: 1.25rem; cursor: pointer; line-height: 1;
  transition: background 0.3s;
}
.menu-btn:hover { background: var(--ghost-bg-hover); }

.lang-toggle {
  height: 42px; padding: 0 14px; border-radius: 100px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ghost-bg); border: 1px solid var(--border);
  color: var(--text); font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  transition: background 0.3s, transform 0.3s;
}
.lang-toggle:hover { background: var(--ghost-bg-hover); transform: translateY(-2px); }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ghost-bg); border: 1px solid var(--border);
  font-size: 1.1rem; transition: transform 0.3s, background 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); background: var(--ghost-bg-hover); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff9a3c);
  color: #140800;
  box-shadow: 0 8px 30px rgba(255, 122, 24, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 122, 24, 0.55); }
.btn-ghost {
  background: var(--ghost-bg); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--ghost-bg-hover); transform: translateY(-3px); }
.nav-cta { padding: 10px 22px; font-size: 0.88rem; color: #140800; }

/* ---------- hero (home) ---------- */
header.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; padding: 140px 6vw 80px;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  pointer-events: none; animation: drift 14s ease-in-out infinite alternate;
}
[data-theme="light"] .orb { opacity: 0.3; }
.orb-1 { width: 520px; height: 520px; background: rgba(255, 122, 24, 0.28); top: -10%; right: -8%; }
.orb-2 { width: 460px; height: 460px; background: rgba(79, 124, 255, 0.22); bottom: -12%; left: -10%; animation-delay: -7s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  max-width: 950px;
  margin-left: auto; margin-right: auto;
}
.gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--orange-soft), var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub {
  max-width: 580px; margin: 26px auto 40px;
  color: var(--muted); font-size: 1.15rem;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--faint-text); border-radius: 14px;
}
.scroll-hint::before {
  content: ''; position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: var(--orange);
  animation: scrollwheel 1.8s infinite;
}
@keyframes scrollwheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* hero entrance */
.hero-in { opacity: 0; transform: translateY(30px); animation: heroIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-in.d1 { animation-delay: 0.1s; } .hero-in.d2 { animation-delay: 0.25s; }
.hero-in.d3 { animation-delay: 0.4s; } .hero-in.d4 { animation-delay: 0.55s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- page hero (subpages) ---------- */
header.page-hero {
  text-align: center; padding: 180px 6vw 30px; position: relative;
}
header.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
header.page-hero p { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 22px 0; overflow: hidden; white-space: nowrap;
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; gap: 64px; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--faint-text); display: inline-flex; align-items: center; gap: 64px;
}
.marquee-track span::after { content: '✦'; color: var(--orange); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 100px 6vw; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.kicker {
  color: var(--orange); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.12; }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* scroll reveal (only hides content when JS is running, so nothing
   stays invisible if scripts fail to load) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.stat::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 122, 24, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(255, 122, 24, 0.4); }
.stat:hover::before { opacity: 1; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.service {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 30px; position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.service:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 24, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(255, 122, 24, 0.08);
}
.service .glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 24, 0.12), transparent 60%);
}
.service:hover .glow { opacity: 1; }
.service .icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 24px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.3);
  transition: transform 0.35s;
}
.service:hover .icon { transform: scale(1.1) rotate(-6deg); }
.service h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 0.97rem; }
.service .num-bg {
  position: absolute; top: 18px; right: 22px;
  font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700;
  color: var(--faint);
}
.service ul { margin-top: 16px; padding-left: 0; list-style: none; }
.service ul li {
  color: var(--muted); font-size: 0.92rem; padding: 5px 0 5px 26px; position: relative;
}
.service ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}

/* ---------- why us ---------- */
.why-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px;
  max-width: 1150px; margin: 0 auto; align-items: center;
}
.why-left h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.why-left p { color: var(--muted); font-size: 1.06rem; }
.why-item {
  display: flex; gap: 20px; padding: 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; transition: transform 0.3s, border-color 0.3s;
}
.why-item:hover { transform: translateX(8px); border-color: rgba(255, 122, 24, 0.4); }
.why-item .check {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-soft));
  display: grid; place-items: center; color: #140800; font-weight: 700; font-size: 1.1rem;
}
.why-item h3 { font-size: 1.08rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- process ---------- */
.process {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto; counter-reset: step;
}
.step {
  position: relative; padding: 34px 28px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(79, 124, 255, 0.5); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--blue); display: inline-block; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(79, 124, 255, 0.12); border: 1px solid rgba(79, 124, 255, 0.3);
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- testimonial ---------- */
.quote-card {
  max-width: 860px; margin: 0 auto; text-align: center;
  padding: 64px 7vw; border-radius: 28px; position: relative;
  background: linear-gradient(160deg, rgba(255, 122, 24, 0.10), rgba(79, 124, 255, 0.08));
  border: 1px solid var(--border);
}
.quote-card .mark {
  font-family: 'Space Grotesk', sans-serif; font-size: 4.5rem; line-height: 1;
  color: var(--orange); opacity: 0.85;
}
.quote-card blockquote { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.5; font-family: 'Space Grotesk', sans-serif; }
.quote-card cite { display: block; margin-top: 24px; color: var(--muted); font-style: normal; font-size: 0.95rem; }
.quote-card cite strong { color: var(--text); display: block; font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.cta-band {
  max-width: 1150px; margin: 0 auto; text-align: center;
  padding: 90px 7vw; border-radius: 32px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0e02, #241303 45%, #0e1430);
  border: 1px solid rgba(255, 122, 24, 0.25);
}
.cta-band::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.25), transparent 65%);
  top: -300px; left: 50%; transform: translateX(-50%); pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaGlow { to { opacity: 0.5; transform: translateX(-50%) scale(1.25); } }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.1; color: #f4f4f6; }
.cta-band p { color: #9b9ba6; margin: 18px auto 38px; max-width: 520px; font-size: 1.08rem; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px;
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.15);
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; padding: 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: transform 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 24, 0.4); }
.contact-card .icon {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 122, 24, 0.3);
}
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- newsletter / footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.newsletter { padding: 80px 6vw 60px; text-align: center; }
.newsletter h2 { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; font-size: 0.98rem; }
.news-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.news-form input {
  background: var(--card); border: 1px solid var(--border); border-radius: 100px;
  padding: 14px 24px; color: var(--text); font-size: 0.95rem; width: min(340px, 80vw);
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Inter', sans-serif;
}
.news-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.15); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 30px 6vw; border-top: 1px solid var(--border);
}
.footer-bottom .logo img { height: 34px; }
.footer-bottom .links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.footer-bottom a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.socials a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }
.copyright { text-align: center; padding: 0 6vw 28px; color: var(--faint-text); font-size: 0.85rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links {
    position: fixed; top: 70px; left: 4vw; right: 4vw;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card); border: 1px solid var(--border); border-radius: 18px;
    padding: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block; padding: 13px 16px; border-radius: 12px; font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: var(--ghost-bg); }
  .why-wrap, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 70px 6vw; }
}

@media (max-width: 480px) {
  .nav-cta { display: none; }
  .logo img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
