/* =========================================================
   Lumina — Multi-Page Agency Template
   Shared stylesheet for every page.
   Rebrand by editing the variables below.
   ========================================================= */

:root {
  --brand:    #6d28d9;
  --brand-2:  #db2777;
  --ink:      #14122b;
  --body:     #545173;
  --muted:    #908daf;
  --bg:       #ffffff;
  --bg-alt:   #f7f6fc;
  --line:     #e9e6f4;
  --radius:   18px;
  --shadow:   0 18px 50px -22px rgba(40,20,90,.28);
  --maxw:     1160px;
  --font:     'Sora', system-ui, sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--body); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--brand); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.eyebrow { display: inline-block; font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font); font-weight: 800; font-size: 22px; color: var(--ink); }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--body); transition: color .2s; position: relative; }
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.nav .nav-cta { color: #fff; }
.nav .nav-cta::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ----- Page banner (sub-page header) ----- */
.page-banner { background: linear-gradient(135deg,#1a1430,#2a1a52); color: #fff; padding: 64px 0 70px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; top: -120px; right: -80px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(219,39,119,.35), transparent 60%); }
.page-banner h1 { color: #fff; font-size: clamp(32px,5vw,50px); font-weight: 800; margin-bottom: 12px; position: relative; }
.page-banner p { color: #c9c4e3; font-size: 18px; max-width: 560px; position: relative; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #b3aed0; margin-top: 18px; position: relative; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; }

/* ----- Hero (home) ----- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
/* animated gradient mesh behind hero */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 360px at 18% 20%, rgba(109,40,217,.18), transparent 60%),
    radial-gradient(560px 340px at 82% 30%, rgba(219,39,119,.16), transparent 60%);
  filter: blur(8px);
  animation: meshMove 14s ease-in-out infinite alternate;
}
@keyframes meshMove { from { transform: translate3d(-18px,-10px,0) scale(1); } to { transform: translate3d(22px,14px,0) scale(1.08); } }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px,5vw,58px); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--body); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats strong { display: block; font-family: var(--font); font-size: 28px; color: var(--ink); }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-card { display: flex; justify-content: center; position: relative; }
.hero-visual { position: relative; width: 100%; max-width: 410px; aspect-ratio: 4/5; border-radius: 26px; background: linear-gradient(150deg,#6d28d9,#db2777 60%,#f59e0b); box-shadow: var(--shadow); overflow: hidden; animation: floatY 6s ease-in-out infinite; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
/* floating glass chips around the hero image */
.hero-float { position: absolute; border-radius: 16px; background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-family: var(--font); font-weight: 600; color: var(--ink); font-size: 14px; }
.hero-float .dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-float.f-a { top: 14%; left: -6%; animation: floatY 5s ease-in-out infinite; }
.hero-float.f-b { bottom: 16%; right: -8%; animation: floatY 7s ease-in-out infinite .5s; }
.hero-float .dot.g1 { background: #6d28d9; } .hero-float .dot.g2 { background: #db2777; }
@media (max-width: 720px) { .hero-float { display: none; } }

/* ----- Logo marquee (infinite scroll) ----- */
.marquee { overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scrollX 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font); font-weight: 800; font-size: 22px; color: #c6c2dd; white-space: nowrap; letter-spacing: .02em; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----- Image thumbs (cover + hover zoom) ----- */
.work-thumb, .post-thumb { background-size: cover; background-position: center; }
.work-item .work-thumb, .post-card .post-thumb { transition: transform .5s ease; }
.work-item:hover .work-thumb, .post-card:hover .post-thumb { transform: scale(1.06); }
.about-shape { background-size: cover; background-position: center; }
.post-hero { background-size: cover; background-position: center; }

/* ----- Animated counters keep layout stable ----- */
.stats-band strong { font-variant-numeric: tabular-nums; }

/* ----- Sections ----- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--body); }

/* ----- Cards / services ----- */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 20px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; }
.card .price-tag { font-family: var(--font); font-weight: 700; color: var(--brand); font-size: 18px; margin-top: 14px; }

/* ----- Portfolio grid ----- */
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work-item { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.work-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 16/11; }
.t1{background:linear-gradient(135deg,#6366f1,#a855f7)} .t2{background:linear-gradient(135deg,#0ea5e9,#22d3ee)}
.t3{background:linear-gradient(135deg,#f59e0b,#ef4444)} .t4{background:linear-gradient(135deg,#10b981,#14b8a6)}
.t5{background:linear-gradient(135deg,#ec4899,#8b5cf6)} .t6{background:linear-gradient(135deg,#f43f5e,#f59e0b)}
.work-meta { padding: 22px 24px; }
.work-meta h3 { font-size: 19px; }
.work-meta span { font-size: 14px; color: var(--muted); }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-shape { aspect-ratio: 1; border-radius: 30px; background: linear-gradient(150deg,#6d28d9,#db2777 55%,#f59e0b); box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(26px,3.5vw,38px); font-weight: 800; margin-bottom: 16px; }
.check-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; color: #fff; background: var(--brand); }

/* ----- Team ----- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; }
.av1{background:linear-gradient(135deg,#f472b6,#db2777)} .av2{background:linear-gradient(135deg,#60a5fa,#2563eb)}
.av3{background:linear-gradient(135deg,#34d399,#059669)} .av4{background:linear-gradient(135deg,#fbbf24,#d97706)}
.team-card h3 { font-size: 18px; } .team-card span { font-size: 14px; color: var(--muted); }

/* ----- Stats band ----- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats-band strong { display: block; font-family: var(--font); font-size: clamp(28px,4vw,40px); color: var(--ink); }
.stats-band span { font-size: 14px; color: var(--muted); }

/* ----- Pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--brand),var(--brand-2)); color:#fff; font-family: var(--font); font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.price-card h3 { font-size: 20px; margin-bottom: 12px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.price .amount { font-family: var(--font); font-size: 42px; font-weight: 800; color: var(--ink); }
.price .per { font-size: 16px; color: var(--muted); }
.price-card ul { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.price-card li { position: relative; padding-left: 28px; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ----- Blog ----- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/10; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.post-body h3 { font-size: 19px; margin-bottom: 10px; }
.post-body p { font-size: 15px; flex: 1; }
.post-meta { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ----- Single post ----- */
.article { max-width: 760px; margin: 0 auto; }
.article .post-hero { aspect-ratio: 16/8; border-radius: var(--radius); margin-bottom: 36px; }
.article h2 { font-size: 28px; margin: 36px 0 14px; }
.article h3 { font-size: 22px; margin: 28px 0 12px; }
.article p { margin-bottom: 18px; font-size: 17px; }
.article ul { margin: 0 0 18px 22px; }
.article ul li { margin-bottom: 8px; }
.article blockquote { border-left: 4px solid var(--brand); padding: 6px 0 6px 22px; margin: 24px 0; font-family: var(--font); font-size: 20px; color: var(--ink); font-style: italic; }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info-list { list-style: none; display: grid; gap: 22px; margin-top: 8px; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 19px; color: #fff; background: linear-gradient(135deg,var(--brand),var(--brand-2)); }
.ci-text strong { display: block; font-family: var(--font); color: var(--ink); }
.ci-text span { font-size: 15px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fbfbfe; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,40,217,.15); }
.form-note { margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-note.ok { color: #16a34a; } .form-note.err { color: #dc2626; }
.map-embed { margin-top: 40px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 320px; background: linear-gradient(135deg,#ece9fb,#f7f6fc); display: grid; place-items: center; color: var(--muted); font-family: var(--font); }

/* ----- Quote ----- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font); font-size: clamp(22px,3vw,30px); font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 22px; }
.quote footer { color: var(--muted); font-size: 15px; }

/* ----- CTA strip ----- */
.cta-strip { background: linear-gradient(135deg,#1a1430,#2a1a52); color: #fff; border-radius: 26px; padding: 56px 48px; text-align: center; }
.cta-strip h2 { color: #fff; font-size: clamp(26px,3.5vw,38px); font-weight: 800; margin-bottom: 12px; }
.cta-strip p { color: #c9c4e3; font-size: 17px; margin-bottom: 26px; }

/* ----- 404 ----- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .big { font-family: var(--font); font-weight: 800; font-size: clamp(90px,18vw,180px); line-height: 1; background: linear-gradient(120deg,var(--brand),var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 30px; margin: 8px 0 14px; }
.error-page p { font-size: 17px; margin-bottom: 28px; }

/* ----- Footer ----- */
.site-footer { background: #100c22; color: #aaa6c7; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid .logo { color: #fff; }
.footer-tag { margin-top: 14px; max-width: 280px; font-size: 15px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #6f6b8f; }

/* ----- Reveal ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ----- Responsive ----- */
@media (max-width: 940px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .cards-grid, .team-grid, .work-grid, .blog-grid, .pricing-grid, .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px 22px; transform: translateY(-130%); transition: transform .35s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .nav .nav-cta { margin-top: 12px; border: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards-grid, .team-grid, .work-grid, .blog-grid, .pricing-grid, .stats-band, .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
