/* ===== ROOT TOKENS ===== */
:root {
  --bg: #fbf7ff;
  --ink: #1c1530;
  --mute: #6a6382;
  --card: #fff;
  --line: #e3dbf2;
  --a: #5b3df5;
  --b: #ff5fa2;
  --c: #ffc83d;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150f26;
    --ink: #f4efff;
    --mute: #a79fc2;
    --card: #1f1836;
    --line: #33294f;
    --a: #7a5cff;
  }
}



:root { color-scheme: light dark }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.05rem/1.7 'Jost', 'Century Gothic', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--a) }

/* ===== LAYOUT ===== */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 40px) }

h1, h2, h3 {
  font-family: 'Jost', 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.15;
  margin: 0;
}

section { padding: clamp(36px, 7vw, 72px) 0 }
h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: 8px }
.sub { color: var(--mute); margin: 0 0 28px }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  position: relative;
  flex-wrap: nowrap;
  gap: 10px 24px;
}

.logo { height: 44px; width: auto; display: block }

/* Real logo image (PNG) */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Invert black logo in dark mode */
@media (prefers-color-scheme: dark) {
  :root .logo-img { filter: invert(1) }
}

@media (prefers-color-scheme: dark) {
  :root .logo { filter: invert(1) }
}

.nav-links {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  font-size: .95rem;
  letter-spacing: .04em;
}

.nav-links a:hover { color: var(--a) }
.nav-links a.active { border-bottom-color: var(--a); color: var(--a) }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}

.burger span:nth-child(1) { top: 15px }
.burger span:nth-child(2) { top: 23px }
.burger span:nth-child(3) { top: 31px }

.burger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg) }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.burger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg) }

@media (max-width: 768px) {
  .burger { display: block }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    animation: fadeUp .25s ease;
  }
  .nav-links.open { display: flex }
  .nav-links li { width: 100% }
  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-bottom: 0;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  .nav-links a:hover,
  .nav-links a.active { background: var(--bg); border-bottom: 0; color: var(--a) }
}

/* ===== BUTTONS ===== */
.btn {
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--a);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  min-height: 48px;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.1) }
.btn.alt {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn.alt:hover { border-color: var(--a); color: var(--a) }

:focus-visible { outline: 3px solid var(--b); outline-offset: 2px }

/* ===== HERO ===== */
.hero {
  padding: clamp(48px, 10vw, 96px) 0 clamp(48px, 8vw, 80px);
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .06em;
  max-width: 14ch;
}

.hero p {
  max-width: 48ch;
  color: var(--mute);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 20px 0 28px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap }

.blobs { display: flex; gap: 10px; margin-top: 44px }
.blobs i {
  display: block;
  height: clamp(40px, 8vw, 88px);
  border-radius: 40px;
  flex: 1;
}
.blobs i:nth-child(1) { background: var(--a); flex: 3 }
.blobs i:nth-child(2) { background: var(--b); flex: 2 }
.blobs i:nth-child(3) { background: var(--c); flex: 1 }

/* ===== CARDS / GRID ===== */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}

.card.pop {
  border-color: var(--a);
  box-shadow: 0 10px 0 var(--a);
}

.tag {
  align-self: flex-start;
  background: var(--c);
  color: #1c1530;
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: .03em;
  margin: 8px 0;
}

.price small { font-size: 1rem; color: var(--mute); font-weight: 600 }

.card ul { padding: 0; margin: 12px 0 24px; list-style: none; flex: 1 }
.card li { font-weight: 600; padding: 7px 0; border-top: 1px solid var(--line) }
.card li::before { content: "✓ "; color: var(--a); font-weight: 700 }

/* ===== PACKAGE CARD HOVER ===== */
#packages .card,
.pkg-card {
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

@media (hover: hover) {
  #packages .card:hover,
  .pkg-card:hover {
    transform: translateY(-8px);
    border-color: var(--a);
    box-shadow: 0 16px 32px rgba(91, 61, 245, .25);
  }
  #packages .card.pop:hover { box-shadow: 0 16px 0 var(--a) }
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn { padding: 8px 20px; font-size: .9rem }

/* ===== WORK / PORTFOLIO ===== */
.works { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) }

@media (min-width: 900px) {
  .works { grid-template-columns: repeat(3, 1fr) }
}

.work {
  margin: 0;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color .25s, opacity .25s, transform .25s;
  opacity: 1;
  transform: scale(1);
}

.work:hover { border-color: var(--a) }

.ph { aspect-ratio: 1/1; overflow: hidden }
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.work:hover .ph img { transform: scale(1.05) }

/* Direct img inside .work figure (when no .ph wrapper) */
.work > img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.work:hover > img { transform: scale(1.05) }

.work figcaption {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.work figcaption b { font-weight: 700; letter-spacing: .04em }
.work figcaption span { color: var(--mute); font-size: .9rem; font-weight: 600 }

/* ===== STEPS ===== */
.steps .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--a);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.steps p { margin: 8px 0 0; color: var(--mute) }

/* ===== WHY STRIP ===== */
.why {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 28px 0;
  gap: 24px;
}

.why h3 { font-size: 1rem; margin-bottom: 4px }
.why p { margin: 4px 0 0; color: var(--mute); font-size: .95rem }

/* ===== CTA BAND ===== */
.cta {
  text-align: center;
  background: var(--a);
  color: #fff;
  border-radius: 28px;
  padding: clamp(32px, 7vw, 64px) 20px;
  margin: clamp(20px, 5vw, 48px) 0;
}

.cta h2 { color: #fff }
.cta p { margin: 12px 0 24px; opacity: .9 }
.cta .btn { background: #fff; color: #1c1530 }
.cta .btn:hover { filter: brightness(.95) }

/* ===== FORM ===== */
form { display: grid; gap: 14px; max-width: 560px }
label { font-weight: 600; display: grid; gap: 6px }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--a);
}

textarea { min-height: 110px; resize: vertical }
.ok { color: var(--a); font-weight: 700; min-height: 1.4em }

/* ===== FAQ ===== */
.faq {
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 4px 18px;
  margin: 10px 0;
  transition: border-color .2s;
}

.faq:hover { border-color: var(--a) }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--a); font-size: 1.4rem; line-height: 1; flex: none }
.faq[open] summary::after { content: "–" }
.faq p { margin: 0 0 14px; color: var(--mute) }

/* ===== PROSE ===== */
.prose { max-width: 68ch }
.prose h3 { font-size: 1.15rem; margin: 26px 0 6px }
.prose ul { padding-left: 20px }
.prose li { margin: 6px 0; color: var(--mute) }
.prose p { color: var(--mute); margin: 0 0 16px }
.prose a { color: var(--a) }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: clamp(40px, 8vw, 80px) 0 clamp(24px, 5vw, 48px);
}

.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--mute);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--mute);
  padding: 14px 0 0;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb li + li::before { content: "›"; margin-right: 8px }
.breadcrumb a { color: var(--mute); text-decoration: none }
.breadcrumb a:hover { color: var(--a) }
.breadcrumb li:last-child { color: var(--ink); font-weight: 600 }

/* ===== TILES (home pricing preview) ===== */
.tile {
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--a) }
.tile p { margin: 8px 0 0; color: var(--mute); font-weight: 500 }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--mute);
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .logo { height: 36px; margin-bottom: 10px }
.footer-brand .logo-img { height: 36px; margin-bottom: 10px; width: auto }
.footer-brand p { margin: 0; max-width: 32ch; font-size: .88rem }

.footer-links { display: flex; flex-direction: column; gap: 8px }
.footer-links h4 { margin: 0 0 4px; color: var(--ink); font-size: .9rem; letter-spacing: .05em }
.footer-links a { color: var(--mute); text-decoration: none; font-size: .88rem }
.footer-links a:hover { color: var(--a) }

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .84rem;
}

.footer-bottom a { color: var(--mute); text-decoration: none }
.footer-bottom a:hover { color: var(--a) }

/* ===== THEME TOGGLE ===== */

.theme-btn:hover { border-color: var(--a) }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .logo { height: 34px }
  .logo-img { height: 34px }
  .btn { width: 100% }
  .card.pop { box-shadow: 0 6px 0 var(--a) }
  .hero-btns { flex-direction: column }
}

@media (min-width: 640px) and (max-width: 899px) {
  .grid { grid-template-columns: repeat(2, 1fr) }
  .card.pop { order: -1; grid-column: 1/-1 }
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); align-items: stretch }
  .card.pop { transform: translateY(-8px) }
}

@media (min-width: 1200px) {
  .wrap { max-width: 1180px }
  .logo { height: 54px }
  .logo-img { height: 54px }
  .hero p { font-size: 1.25rem; max-width: 52ch }
}

@media (min-width: 1800px) {
  html { font-size: 112.5% }
  .wrap { max-width: 1400px }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 12px }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .page-enter { animation: none }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px) }
  to { opacity: 1; transform: none }
}

.fade-in {
  animation: fadeUp .4s ease both;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1fr 1fr }
}

.about-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--a) 0%, var(--b) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}

.stat strong { display: block; font-size: 1.8rem; color: var(--a); font-weight: 700 }
.stat span { font-size: .85rem; color: var(--mute); font-weight: 600 }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr }
}

.contact-info h3 { margin-bottom: 6px; font-size: 1rem }
.contact-info p { color: var(--mute); margin: 0 0 20px; font-size: .95rem }
.contact-info a { color: var(--a); font-weight: 600 }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--a);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 0 }
