/* =========================================================
   Lightning Bulb — shared styles
   ========================================================= */

:root {
  --bg:        #0c0a12;
  --bg-2:      #12101c;
  --surface:   rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.09);
  --text:      #f5f2ec;
  --muted:     #a6a1b4;
  --muted-2:   #7d7890;

  /* pastel orange brand */
  --orange:      #ffb27a;
  --orange-soft: #ffc79c;
  --orange-deep: #ff8a4c;
  --orange-glow: rgba(255, 154, 92, 0.45);

  --radius:   20px;
  --radius-s: 14px;
  --maxw:     1160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ambient background glows ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.orb.a { width: 520px; height: 520px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(255,138,76,0.55), transparent 70%); }
.orb.b { width: 460px; height: 460px; top: 32%; right: -140px;
  background: radial-gradient(circle, rgba(255,178,122,0.40), transparent 70%);
  animation: float 14s var(--ease) infinite alternate; }
.orb.c { width: 400px; height: 400px; bottom: -140px; left: 30%;
  background: radial-gradient(circle, rgba(120,90,255,0.28), transparent 70%);
  animation: float 18s var(--ease) infinite alternate-reverse; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,138,76,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-40px) translateX(30px); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 10, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color .25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-links .btn { color: var(--bg); }
.nav-links .btn:hover { color: var(--bg); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 40px; flex: none; }
.logo-mark .bolt { filter: drop-shadow(0 0 10px var(--orange-glow)); }
.logo-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}
.logo-word span { color: var(--orange); }
.logo .logo-mark .bolt { animation: flicker 5s ease-in-out infinite; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; }
  95% { opacity: 1; }
  96% { opacity: 0.7; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-deep));
  color: #241206;
  border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px -8px var(--orange-glow);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px var(--orange-glow); }
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); border-color: rgba(255,178,122,0.4); }

/* ---------- section scaffolding ---------- */
section { padding: 96px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,138,76,0.10);
  border: 1px solid rgba(255,138,76,0.22);
}
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 20px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 92px 0 84px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
  margin-bottom: 30px;
}
.hero .badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 10px var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 15ch; margin: 0 auto 24px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--orange-soft), var(--orange-deep) 60%, #ffd9b8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted); max-width: 60ch; margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-visual {
  margin-top: 70px;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.hero-bulb {
  width: min(260px, 60vw); height: auto;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotateY(-6deg); }
  50% { transform: translateY(-18px) rotateY(6deg); }
}

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 34px 0 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600;
  color: var(--orange);
}
.stat .lbl { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   WHAT WE DO — split cards
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s;
  position: relative; overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 100% 0%, rgba(255,138,76,0.10), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(255,178,122,0.35); background: var(--surface-2); }
.pillar:hover::after { opacity: 1; }
.pillar .icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(255,178,122,0.20), rgba(255,138,76,0.12));
  border: 1px solid rgba(255,138,76,0.25);
}
.pillar h3 { font-size: 1.45rem; margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- values row ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.value {
  padding: 28px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s;
}
.value:hover { transform: translateY(-5px); border-color: rgba(255,178,122,0.3); }
.value .step { color: var(--orange); font-family: "Space Grotesk"; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.1em; }
.value h4 { font-size: 1.15rem; margin: 10px 0 8px; font-family: "Space Grotesk"; }
.value p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* =========================================================
   WORK / SHOWCASE
   ========================================================= */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px 300px at var(--mx,80%) 0%, rgba(255,138,76,0.14), transparent 55%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.app-card:hover { transform: translateY(-8px); border-color: rgba(255,178,122,0.4);
  box-shadow: 0 30px 60px -30px rgba(255,138,76,0.4); }
.app-card:hover::before { opacity: 1; }
.app-card > * { position: relative; z-index: 1; }
.app-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-icon {
  width: 72px; height: 72px; border-radius: 18px; flex: none;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.6);
}
.app-meta h3 { font-size: 1.5rem; }
.app-meta .tag { color: var(--muted); font-size: 0.95rem; }
.app-card p.desc { color: var(--muted); margin: 0 0 22px; }
.app-open {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-weight: 600; font-size: 0.95rem;
}
.app-open svg { transition: transform .3s var(--ease); }
.app-card:hover .app-open svg { transform: translateX(5px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-card {
  text-align: center;
  background: linear-gradient(160deg, rgba(255,178,122,0.10), var(--surface));
  border: 1px solid rgba(255,138,76,0.22);
  border-radius: 28px;
  padding: 66px 34px;
  position: relative; overflow: hidden;
}
.contact-card h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.contact-card p { color: var(--muted); max-width: 52ch; margin: 0 auto 32px; font-size: 1.08rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: "Space Grotesk"; font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 600;
  color: var(--text); padding: 16px 28px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s, color .3s;
}
.contact-email:hover { transform: translateY(-4px); border-color: var(--orange); color: var(--orange); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 40px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-inner p { color: var(--muted-2); font-size: 0.9rem; margin: 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color .25s; }
.footer-links a:hover { color: var(--orange); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange-soft), var(--orange-deep));
  z-index: 100; box-shadow: 0 0 12px var(--orange-glow);
}

/* =========================================================
   PROJECT (sub) PAGES
   ========================================================= */
.proj-hero { padding: 120px 0 60px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.92rem; margin-bottom: 40px;
  transition: color .25s, gap .25s var(--ease);
}
.back-link:hover { color: var(--orange); gap: 12px; }
.proj-head { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.proj-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 20px 44px -16px rgba(0,0,0,0.7); }
.proj-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.proj-head .sub { color: var(--orange); font-size: 1.15rem; margin-top: 6px; font-weight: 500; }
.proj-lead { color: var(--muted); font-size: 1.15rem; max-width: 64ch; margin: 34px 0 30px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 30px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(255,178,122,0.3); }
.feature .fi {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,178,122,0.18), rgba(255,138,76,0.10));
  border: 1px solid rgba(255,138,76,0.22);
}
.feature h4 { font-family: "Space Grotesk"; font-size: 1.12rem; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .split, .apps { grid-template-columns: 1fr; }
  .values, .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
