:root {
  --bg: #06060f;
  --bg-elevated: #0c0c1c;
  --text: #f3f3fb;
  --text-dim: #9a9ab3;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --cta-a: #ff6a3d;
  --cta-b: #ff3d81;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px -8px rgba(0,0,0,0.5);
  --container: 1180px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(ellipse 800px 550px at 92% 15%, rgba(34,211,238,0.13), transparent 60%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(255,61,129,0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

#scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: block;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 32px;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,15,0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.logo span { color: var(--accent-2); }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-small { padding: 9px 20px; font-size: 0.85rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--cta-a), var(--cta-b));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255,61,129,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255,61,129,0.55); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elevated);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(124,92,255,0.3); }
.btn-large { padding: 17px 36px; font-size: 1rem; margin-top: 28px; }

/* Sections shared */
main { position: relative; z-index: 1; }
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 32px;
}
.eyebrow {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,6,15,0.94) 0%, rgba(6,6,15,0.78) 45%, rgba(6,6,15,0.12) 70%, transparent 85%);
}
.hero-content { position: relative; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
}
.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.scroll-cue span {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--text-dim), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-2);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* Service scroll (pinned) */
.service-scroll {
  position: relative;
  height: 300vh;
  max-width: none;
  padding: 0;
  margin: 0;
}
.service-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.service-eyebrow { text-align: left; }
.service-block {
  position: absolute;
  left: 32px;
  top: 50%;
  max-width: 560px;
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.service-block h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.service-block p {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 460px;
}
.service-progress {
  position: absolute;
  bottom: 64px;
  left: 32px;
  display: flex;
  gap: 10px;
}
.service-progress span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s ease, transform .3s ease;
}
.service-progress span.active {
  background: var(--accent-2);
  transform: scale(1.3);
}

/* Trust strip */
.trust {
  padding: 40px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.tilt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
.tilt-card:hover { border-color: rgba(124,92,255,0.4); }
.card-icon {
  width: 44px; height: 44px;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }
.tilt-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 600; }
.tilt-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.work-card {
  display: block;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card-clickable { cursor: pointer; }
.work-card-clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4,4,10,0.88);
  backdrop-filter: blur(6px);
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox-img {
  display: none;
  max-width: min(900px, 100%);
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: rgba(124,92,255,0.4); }
.lightbox-open {
  position: absolute;
  top: 28px;
  left: 32px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.lightbox-open:hover { border-color: rgba(124,92,255,0.4); }

.lightbox-frame {
  display: none;
  width: min(1100px, 100%);
  height: min(78vh, 720px);
  border-radius: 16px;
  overflow: hidden;
  background: #f4f3fa;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.lightbox-chrome {
  flex-shrink: 0;
  height: 40px;
  background: #e7e5f2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
}
.lb-dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c6da; }
.lb-dot:nth-child(1) { background: #ff5f57; }
.lb-dot:nth-child(2) { background: #febc2e; }
.lb-dot:nth-child(3) { background: #28c840; }
.lightbox-url {
  margin-left: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  color: #8b87a3;
}
.lightbox-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}
.work-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  position: relative;
  overflow: hidden;
}
.work-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 60%);
}
.work-meta { padding: 20px 22px; background: var(--bg-elevated); }
.work-meta h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.work-meta span { color: var(--text-dim); font-size: 0.82rem; }
.work-note {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo { display: flex; justify-content: center; }
.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.photo-placeholder svg { width: 72px; height: 72px; }
.about-quote {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 28px;
  max-width: 640px;
}
.about-body {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}
.about-signature {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-quote, .about-body { max-width: none; }
}

/* Process */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-list li {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.process-list li:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-size: 0.9rem;
  color: var(--accent-2);
  font-weight: 700;
  min-width: 40px;
}
.process-list h3 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.process-list p { color: var(--text-dim); max-width: 520px; line-height: 1.6; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: rgba(124,92,255,0.5);
  background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--bg-elevated) 40%);
}
.price-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.price-desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 24px; line-height: 1.5; }
.price-features { margin-bottom: 28px; flex: 1; }
.price-features li {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.92rem;
}
.price-features li:first-child { border-top: none; }
.price-card .btn { align-self: flex-start; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(124,92,255,0.12);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 640px;
  padding: 0 4px 26px;
}

/* CTA */
.cta {
  text-align: center;
  padding-bottom: 180px;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.2; }
.cta p { color: var(--text-dim); max-width: 480px; margin: 20px auto 0; }

.contact-form {
  max-width: 560px;
  margin: 44px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(124,92,255,0.5);
}
.contact-form .btn { align-self: center; margin-top: 6px; }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #38b06c; }
.form-status.error { color: #ff5c9d; }
.cta-fallback {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.form-success {
  display: none;
  max-width: 480px;
  margin: 44px auto 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elevated);
  animation: successIn 0.5s ease;
}
.form-success.active { display: flex; }
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38b06c, #22d3ee);
  color: #06060f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.form-success-icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 1.2rem; font-weight: 700; }
.form-success p { color: var(--text-dim); font-size: 0.95rem; max-width: 380px; }
.form-success .btn { margin-top: 12px; }

@keyframes successIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 32px 120px;
  position: relative;
  z-index: 1;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.7; }
.legal a.back { color: var(--accent-2); display: inline-block; margin-bottom: 40px; }
.legal .placeholder { color: var(--accent-2); }

/* Scroll reveal base state */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 100px 24px; }
  .service-scroll { height: 260vh; }
  .service-pin { align-items: center; text-align: center; }
  .service-block { left: 24px; right: 24px; max-width: none; text-align: center; }
  .service-progress { left: 50%; transform: translateX(-50%); }
}
