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

:root {
  --bg:          #09090e;
  --bg-2:        #0d0e15;
  --card:        #111318;
  --card-2:      #161820;
  --border:      #1e2230;
  --orange:      #ff6b35;
  --orange-dim:  rgba(255,107,53,0.10);
  --orange-mid:  rgba(255,107,53,0.20);
  --text:        #f0f2f8;
  --muted:       #8892a4;
  --muted-2:     #4a5568;
  --display:     'Oxanium', sans-serif;
  --mono:        'Space Mono', monospace;
  --body:        'DM Sans', system-ui, sans-serif;
  --nav-h:       72px;
  --max:         1200px;
  --r:           6px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Utility ───────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 24px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 14px;
}
.orange { color: var(--orange); }

/* ─── Logo ──────────────────────────────────────────── */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
}
.logo-row { display: flex; align-items: center; gap: 8px; line-height: 1; }
.logo-slash {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255,107,53,0.55);
}
.logo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  letter-spacing: 0.06em;
}
.logo-line {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--orange) 40%, transparent);
  box-shadow: 0 0 10px rgba(255,107,53,0.7);
}
.logo-sub {
  font-family: var(--display);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ─── Nav ───────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 200;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9,9,14,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255,107,53,0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn-nav {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 10px 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-nav:hover {
  background: var(--orange-dim);
  box-shadow: 0 0 24px rgba(255,107,53,0.25);
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(9,9,14,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  flex-direction: column;
  gap: 24px;
  z-index: 199;
  display: none;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav-mobile a:hover { color: var(--orange); }

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
}

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  min-height: 48px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover {
  background: #ff8558;
  box-shadow: 0 0 36px rgba(255,107,53,0.45);
  transform: translateY(-2px);
}
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 24px rgba(255,107,53,0.12);
  transform: translateY(-2px);
}

/* ─── Section titles ────────────────────────────────── */
.sh { margin-bottom: 64px; }
.sh.center { text-align: center; }
.sh-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.sh-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}
.sh.center .sh-desc { margin: 0 auto; }

/* ─── Cards ─────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(255,107,53,0.4);
  box-shadow: 0 0 36px rgba(255,107,53,0.07);
  transform: translateY(-5px);
}

/* ─── Page hero (inner pages) ───────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,107,53,0.06) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border) 40px);
  opacity: 0.4;
}
.page-hero .container { position: relative; }
.page-hero-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.page-hero-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
}

/* ─── Footer ────────────────────────────────────────── */
footer {
  background: #06070a;
  border-top: 1px solid var(--border);
  padding: 72px 24px 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--muted-2); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--muted-2); transition: color 0.3s var(--ease); }
.footer-legal a:hover { color: var(--orange); }
.social-links { display: flex; gap: 10px; margin-top: 24px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 18px rgba(255,107,53,0.2);
}
.social-link svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Section background images ─────────────────── */
.sec-bg-img {
  position: absolute;
  inset: -40%;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.26) saturate(0.45);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.about-strip      { position: relative; overflow: hidden; }
.about-inner      { position: relative; z-index: 1; }

.services-section { position: relative; overflow: hidden; }
.process-section  { position: relative; overflow: hidden; }
.stack-section    { position: relative; overflow: hidden; }

.services-section > .container,
.process-section  > .container,
.stack-section    > .container { position: relative; z-index: 1; }

.page-hero .container { position: relative; z-index: 1; }

/* ─── WhatsApp FAB ──────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.40);
  z-index: 300;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.58);
}
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ─── Reveal animations ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ─── Mobile spacing fixes ──────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 20px 48px; }
  .sh { margin-bottom: 40px; }
  .sh-desc { font-size: 16px; }
}
@media (max-width: 480px) {
  .section { padding: 52px 16px; }
  .page-hero { padding: calc(var(--nav-h) + 36px) 16px 36px; }
}

/* ─── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  .hero-glow,
  .availability-dot {
    animation: none;
  }
  .btn-primary:hover,
  .btn-outline:hover,
  .card:hover {
    transform: none;
  }
}
