:root {
  --ink: #14161A;
  --ink-2: #22242B;
  --violet: #5B4FE8;
  --violet-dark: #4436C9;
  --violet-light: #7C6FF0;
  --bg: #FFFFFF;
  --bg-alt: #F4F4F8;
  --text: #1B1D22;
  --text-light: #63677A;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 22, 26, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.2;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.section-sub {
  color: var(--text-light);
  max-width: 620px;
  margin: 12px auto 0;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

section { padding: 88px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--violet-dark); transform: translateY(-2px); }
.btn-outline-dark {
  border: 2px solid rgba(20,22,26,0.2);
  color: var(--ink);
}
.btn-outline-dark:hover { background: rgba(20,22,26,0.05); }
.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20,22,26,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  white-space: nowrap;
}
.logo strong { color: var(--violet); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--violet);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--violet); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ECE9FB 0%, var(--bg-alt) 45%, var(--bg) 100%);
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero-bg-fx {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 18% 20%, rgba(91, 79, 232, 0.42), transparent 42%),
    radial-gradient(circle at 82% 10%, rgba(147, 90, 230, 0.36), transparent 40%),
    radial-gradient(circle at 60% 72%, rgba(68, 54, 201, 0.32), transparent 44%),
    radial-gradient(circle at 28% 88%, rgba(124, 111, 240, 0.28), transparent 40%),
    radial-gradient(circle at 92% 62%, rgba(190, 110, 220, 0.2), transparent 38%);
  filter: blur(70px);
  animation: heroDrift 22s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 22, 26, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
  mask-image: linear-gradient(180deg, black, transparent 85%);
  z-index: 0;
}
@keyframes heroDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 3%) scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.7s ease forwards;
}
.hero-content .eyebrow { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.15s; }
.hero-content .hero-sub { animation-delay: 0.28s; }
.hero-content .hero-ctas { animation-delay: 0.42s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.work-grid .work-card:nth-child(2) { transition-delay: 0.1s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.24s; }
.why-grid .why-card:nth-child(2),
.how-grid .how-step:nth-child(2) { transition-delay: 0.08s; }
.why-grid .why-card:nth-child(3),
.how-grid .how-step:nth-child(3) { transition-delay: 0.16s; }
.why-grid .why-card:nth-child(4),
.how-grid .how-step:nth-child(4) { transition-delay: 0.24s; }
.about-copy.reveal { transition-delay: 0.1s; }

/* Header scroll state */
.site-header.scrolled { box-shadow: 0 8px 24px rgba(20, 22, 26, 0.1); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg-fx { animation: none; }
  .hero-content > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Stats */
.stats {
  background: var(--ink);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--violet-light); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.avatar-placeholder {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 0.05em;
}
.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-copy h2 { font-size: 2rem; margin-bottom: 18px; }
.about-copy p { color: var(--text-light); margin-bottom: 14px; }
.check-list { list-style: none; margin: 20px 0 26px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}

/* Parallax banner */
.parallax-banner {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,0.55) 0%, rgba(30,20,70,0.55) 100%);
}
.parallax-quote {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  line-height: 1.45;
  max-width: 760px;
  margin: 0 auto;
}

/* Work / Portfolio */
.work h2 { font-size: 2rem; max-width: 700px; margin: 0 auto; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mockup-stage {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 26px 0;
}
.stage-green { background: #1E8F4E; }
.stage-blue { background: #1D5FD6; }
.stage-red { background: #D6432B; }
.mockup-browser {
  width: 88%;
  margin-top: 6%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.mockup-bar {
  height: 20px;
  background: #ECECEC;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  flex-shrink: 0;
}
.mockup-bar span { width: 6px; height: 6px; border-radius: 50%; }
.mockup-bar .dot-r { background: #FF5F57; }
.mockup-bar .dot-y { background: #FFBD2E; }
.mockup-bar .dot-g { background: #28C840; }
.mockup-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  background: var(--white);
}
.mockup-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mockup-phone {
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: 30%;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #14161A;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.mockup-phone .mockup-viewport { aspect-ratio: 945 / 1737; }
.mockup-phone .mockup-viewport img.crop-mobile {
  top: -12.7%;
  height: 117.9%;
  object-fit: cover;
}
.work-body { padding: 22px 22px 26px; }
.tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-green { background: #E4F3E8; color: #2E7D46; }
.tag-blue { background: #E4EDFB; color: #1A4D8F; }
.tag-red { background: #FBEAE7; color: #C0392B; }
.work-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.work-body p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 14px; }
.work-link { color: var(--violet); font-weight: 600; font-size: 0.9rem; }

/* Services */
.services { background: var(--bg-alt); }
.services h2 { font-size: 2rem; max-width: 700px; margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 1.8rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* Why */
.why h2 { font-size: 2rem; max-width: 700px; margin: 0 auto; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.why-num { font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--violet); font-weight: 700; }
.why-card h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.why-card p { color: var(--text-light); font-size: 0.92rem; }

/* How */
.how { background: var(--bg-alt); }
.how h2 { font-size: 2rem; max-width: 700px; margin: 0 auto; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.how-step { text-align: center; padding: 0 10px; }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--violet);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.how-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.how-step p { color: var(--text-light); font-size: 0.92rem; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--violet) 0%, var(--ink) 100%);
  color: var(--white);
  text-align: center;
}
.cta-inner h2 { color: var(--white); font-size: 2.1rem; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 30px; }
.cta-inner .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 50px 0 30px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { font-size: 0.9rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--violet-light); }
.site-credit { padding-top: 20px; text-align: center; font-size: 0.82rem; }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .services-grid, .work-grid, .why-grid, .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .phone-link { display: none; }
  .header-actions { gap: 12px; }
  .header-actions .btn-primary { display: none; }
  .logo { font-size: 0.98rem; }
  section { padding: 60px 0; }
  .about-grid, .services-grid, .work-grid, .why-grid, .how-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 100px; padding-bottom: 70px; }
}

/* Mobile nav open state */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 24px;
  gap: 16px;
  box-shadow: var(--shadow);
}
