/* ============ Webindexa — styles ============ */
:root {
  --bg: #07080f;
  --bg-2: #0d0f1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #9aa0bf;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 20px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { width: min(820px, 92%); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.orb-1 { width: 560px; height: 560px; background: var(--violet); top: -180px; left: -120px; }
.orb-2 { width: 480px; height: 480px; background: var(--cyan); top: 30%; right: -160px; animation-delay: -6s; opacity: .3; }
.orb-3 { width: 420px; height: 420px; background: var(--pink); bottom: -200px; left: 30%; animation-delay: -12s; opacity: .2; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.12); } }

.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .6); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: .6em 1.2em; font-size: .88rem; }
.btn.full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 15, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: 3rem; padding-top: 110px; padding-bottom: 60px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.hero .eyebrow { padding: .45em 1em; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; }
.rotating { display: block; transition: opacity .35s, transform .35s; }
.rotating.out { opacity: 0; transform: translateY(12px); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }

/* Hero visual */
.hero-visual { position: relative; height: 520px; perspective: 1200px; }
.browser {
  position: absolute; top: 30px; left: 0; width: 88%;
  background: linear-gradient(160deg, #161a2e, #0c0e1a);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(139,92,246,.15);
  transform: rotateY(-10deg) rotateX(6deg); animation: float 7s ease-in-out infinite;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f5c; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 14px; font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.05); padding: 3px 14px; border-radius: 6px; }
.browser-body { padding: 22px; }
.sk { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); margin-bottom: 12px; }
.sk-nav { width: 40%; height: 8px; margin-bottom: 26px; }
.sk-title { width: 75%; height: 22px; background: var(--grad); opacity: .85; }
.sk-line { width: 90%; }
.sk-line.short { width: 60%; }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.sk-cards div { height: 90px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.sk-cards div:nth-child(2) { background: linear-gradient(160deg, rgba(139,92,246,.35), rgba(34,211,238,.15)); }

.phone {
  position: absolute; right: 0; bottom: 10px; width: 190px; height: 380px;
  background: #0b0d18; border: 6px solid #1d2136; border-radius: 34px;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.9), 0 0 40px -10px rgba(34,211,238,.4);
  animation: float 6s ease-in-out infinite reverse; overflow: hidden;
}
.phone-notch { width: 70px; height: 18px; background: #1d2136; border-radius: 0 0 12px 12px; margin: 0 auto; }
.phone-screen { padding: 16px; }
.app-header { height: 14px; width: 60%; border-radius: 6px; background: rgba(255,255,255,.1); margin-bottom: 20px; }
.app-ring {
  width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 88%, rgba(255,255,255,.08) 0);
  display: grid; place-content: center; text-align: center; position: relative;
}
.app-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0b0d18; }
.app-ring span, .app-ring small { position: relative; }
.app-ring span { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; line-height: 1; }
.app-ring small { color: var(--muted); font-size: .65rem; }
.app-row { height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); margin-bottom: 10px; }
.app-row.short { width: 70%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.1rem; border-radius: 16px;
  background: rgba(20, 23, 40, .75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: 0 20px 40px -15px rgba(0,0,0,.7);
  animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: .72rem; }
.float-card strong { font-family: var(--font-head); font-size: 1.3rem; line-height: 1; }
.seo-card { top: 0; right: 12%; animation-delay: -2s; }
.fc-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-content: center; background: rgba(52,211,153,.15); color: #34d399; font-weight: 700; }
.speed-card { bottom: 40px; left: 4%; flex-direction: column; align-items: flex-start; gap: .5rem; animation-delay: -3.5s; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.bars i { width: 12px; height: var(--h); border-radius: 4px; background: var(--grad); }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); overflow: hidden; padding: 1.3rem 0; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--violet); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.sub { color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; padding: 2.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s, border-color .35s; overflow: hidden; isolation: isolate;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .4); }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .18), transparent 45%);
}
.glow:hover::before { opacity: 1; }
.card.featured { background: linear-gradient(170deg, rgba(139,92,246,.14), rgba(34,211,238,.05)); border-color: rgba(139,92,246,.35); }
.badge { position: absolute; top: 1.4rem; right: 1.4rem; font-size: .72rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: var(--grad); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-content: center; margin-bottom: 1.5rem;
  background: linear-gradient(140deg, rgba(139,92,246,.25), rgba(34,211,238,.15)); border: 1px solid var(--border);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; font-size: .93rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(34,211,238,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: background .3s, transform .3s; }
.feature:hover { background: var(--surface-2); transform: translateY(-4px); }
.feature:nth-child(even) { translate: 0 2rem; }
.f-ico { font-size: 1.6rem; display: block; margin-bottom: .8rem; }
.feature h4 { font-size: 1.1rem; margin-bottom: .4em; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.num {
  display: grid; place-content: center; width: 68px; height: 68px; margin: 0 auto 1.4rem; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  background: var(--bg-2); border: 1px solid rgba(139,92,246,.5); box-shadow: 0 0 30px -5px rgba(139,92,246,.6);
  position: relative;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.work-item { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s, border-color .35s; display: flex; flex-direction: column; }
.work-item:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); }
.w-1 { grid-column: span 4; } .w-2 { grid-column: span 2; } .w-3 { grid-column: span 2; } .w-4 { grid-column: span 4; }
.work-art { height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; }
.w-1 .work-art { background: linear-gradient(135deg, #3b1d6e, #12142a); }
.w-2 .work-art { background: linear-gradient(135deg, #0e4a5c, #12142a); }
.w-3 .work-art { background: linear-gradient(135deg, #5c1d4a, #12142a); }
.w-4 .work-art { background: linear-gradient(135deg, #1d2f6e, #0e3a3f); }
.work-item:hover .work-art > * { transform: scale(1.06); }
.work-art > * { transition: transform .5s; }
.work-meta { padding: 1.3rem 1.6rem 1.5rem; }
.work-meta span { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.work-meta h3 { font-size: 1.25rem; margin: .3em 0 0; }
.wa-shop { display: grid; grid-template-columns: repeat(4, 90px); gap: 14px; }
.wa-shop i { height: 120px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); position: relative; }
.wa-shop i::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 8px; border-radius: 4px; background: var(--grad); }
.wa-phone { width: 80px; height: 160px; border-radius: 18px; border: 4px solid rgba(255,255,255,.2); background: linear-gradient(180deg, rgba(34,211,238,.3), rgba(139,92,246,.2)); position: absolute; left: 30%; transform: rotate(-8deg); }
.wa-phone.p2 { left: auto; right: 26%; top: 60px; transform: rotate(8deg); background: linear-gradient(180deg, rgba(139,92,246,.35), rgba(244,114,182,.2)); }
.wa-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.wa-chart i { width: 26px; height: var(--h); border-radius: 6px; background: linear-gradient(180deg, var(--pink), var(--violet)); }
.wa-site { width: 70%; height: 170px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 18px; display: grid; gap: 10px; align-content: start; }
.wa-site b { height: 22px; width: 55%; border-radius: 6px; background: var(--grad); }
.wa-site i { height: 9px; border-radius: 5px; background: rgba(255,255,255,.12); }
.wa-site i:last-child { width: 70%; }

/* FAQ */
.faq { display: grid; gap: 1rem; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 0 1.5rem; transition: background .3s, border-color .3s; }
.faq details[open] { background: var(--surface-2); border-color: rgba(139,92,246,.35); }
.faq summary { cursor: pointer; list-style: none; padding: 1.3rem 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; }

/* Contact */
.contact-box {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; padding: 3.5rem;
  border-radius: 28px; border: 1px solid rgba(139,92,246,.3);
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,.2), transparent 50%), radial-gradient(circle at 100% 100%, rgba(34,211,238,.15), transparent 50%), var(--bg-2);
}
.mail { display: inline-block; margin-top: 1rem; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; border-bottom: 2px solid var(--violet); padding-bottom: 2px; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .45rem; font-size: .88rem; font-weight: 500; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: .9em 1em; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,.3); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.2); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .88rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--border); background: rgba(0,0,0,.25); color: var(--text); font-size: .88rem; transition: all .2s; }
.chips input:checked + span { background: var(--grad); border-color: transparent; }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-note { margin: 0; font-size: .9rem; color: #34d399; min-height: 1.4em; }

/* Footer */
.site-footer { margin-top: 100px; border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-inner nav a, .footer-inner p { color: var(--muted); font-size: .9rem; margin: 0; }
.footer-inner nav a:hover { color: var(--text); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 130px; min-height: auto; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero-visual { height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::before { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .w-1, .w-2, .w-3, .w-4 { grid-column: span 1; }
  .wa-shop { grid-template-columns: repeat(3, 70px); } .wa-shop i:nth-child(4) { display: none; }
  .contact-box { grid-template-columns: 1fr; padding: 2.2rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; inset-inline: 0; flex-direction: column; gap: 0; padding: 1rem 4% 2rem;
    background: rgba(7, 8, 15, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-links .btn { width: 100%; margin-top: 1.2rem; }
  .section { padding-top: 90px; }
  .hero-visual { height: 400px; }
  .phone { width: 150px; height: 300px; }
  .app-ring { width: 84px; height: 84px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { translate: none; }
  .steps, .work-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-box { padding: 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner nav { justify-content: center; }
}

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

/* =====================================================
   Sub-pages: Services, Blog, Articles
   ===================================================== */
.logo img { border-radius: 9px; }
.nav-links a[aria-current="page"] { color: var(--text); }
.center { text-align: center; margin-top: 2.5rem; }
.card-link { display: inline-flex; gap: .4em; margin-top: 1.6rem; font-weight: 600; font-size: .93rem; color: var(--cyan); transition: gap .2s; }
.card-link:hover, .post-card:hover .card-link { gap: .7em; }

/* Page hero */
.page-hero { padding: 160px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: .6rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a:hover { color: var(--text); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
.jump a { display: inline-flex; align-items: center; gap: .5rem; padding: .7em 1.3em; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; transition: background .2s, transform .2s, border-color .2s; }
.jump a:hover { background: var(--surface-2); border-color: rgba(139,92,246,.45); transform: translateY(-2px); }

/* Service detail blocks */
.svc { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; padding: 110px 0 20px; }
.svc.reverse .svc-copy { order: 2; }
.svc-num { display: block; font-family: var(--font-head); font-size: 5rem; font-weight: 700; line-height: 1; margin-bottom: .5rem; color: transparent; -webkit-text-stroke: 1px rgba(139,92,246,.6); }
.svc-copy .btn { margin-top: 2rem; }
.ticks.two-col { grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.svc-panel { padding: 2rem; border-radius: 24px; background: linear-gradient(165deg, rgba(139,92,246,.12), rgba(34,211,238,.04)), var(--bg-2); border: 1px solid var(--border); display: grid; gap: 1.6rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.panel-block h3 { font-size: .78rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6rem; }
.panel-block p { color: var(--muted); margin: 0; font-size: .95rem; }
.panel-block p strong { color: var(--text); }
.panel-block + .panel-block { padding-top: 1.6rem; border-top: 1px solid var(--border); }
.timeline-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); margin-bottom: .7rem; overflow: hidden; }
.timeline-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags span { font-size: .82rem; padding: .35em .85em; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mini-grid .feature:nth-child(even) { translate: none; }

/* CTA band */
.cta-band { text-align: center; padding: 4rem 2rem; border-radius: 28px; border: 1px solid rgba(139,92,246,.3); background: radial-gradient(circle at 20% 0%, rgba(139,92,246,.25), transparent 55%), radial-gradient(circle at 80% 100%, rgba(34,211,238,.18), transparent 55%), var(--bg-2); }
.cta-band .sub { max-width: 560px; margin: 0 auto 2rem; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-grid.two { grid-template-columns: 1fr 1fr; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s, border-color .35s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,.45); }
.post-art { height: 190px; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.post-art span { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; letter-spacing: .08em; color: rgba(255,255,255,.9); text-shadow: 0 10px 40px rgba(0,0,0,.4); transition: transform .5s; }
.post-card:hover .post-art span { transform: scale(1.1); }
.art-seo { background: linear-gradient(135deg, #0e4a5c, #3b1d6e); }
.art-apps { background: linear-gradient(135deg, #3b1d6e, #5c1d4a); }
.art-web { background: linear-gradient(135deg, #1d2f6e, #0e4a5c); }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.post-body h2, .post-body h3 { font-size: 1.28rem; margin: .5em 0 .5em; }
.post-body p { color: var(--muted); font-size: .95rem; }
.post-meta { color: var(--muted); font-size: .85rem; margin: auto 0 0; }

.blog-list { padding-bottom: 40px; }
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 1.5rem; }
.featured-post .post-art { height: auto; min-height: 320px; }
.featured-post .post-art span { font-size: 5rem; }
.featured-post .post-body { padding: 2.6rem; justify-content: center; }
.featured-post h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.suggest-card { border-style: dashed; background: transparent; }
.suggest-card .post-body { justify-content: center; }
.suggest-card .card-link { margin-top: .5rem; }
.post-card[hidden], .featured-post[hidden] { display: none; }
.empty-note { text-align: center; color: var(--muted); padding: 2rem 0; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.2rem; }
.filter { font: inherit; font-size: .9rem; font-weight: 500; color: var(--text); cursor: pointer; padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: background .2s, border-color .2s; }
.filter:hover { background: var(--surface-2); }
.filter.active { background: var(--grad); border-color: transparent; }

/* Article */
.article { padding-top: 150px; }
.article-head { text-align: center; }
.article-head .breadcrumb { flex-wrap: wrap; }
.article-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: .4em 0 .5em; }
.article-art { height: 300px; border-radius: 24px; margin: 2.5rem 0 3rem; border: 1px solid var(--border); }
.article-art span { font-size: 5rem; }
.prose { font-size: 1.08rem; line-height: 1.8; color: #d4d7ee; }
.prose .intro { font-size: 1.22rem; color: var(--text); }
.prose h2 { font-size: 1.75rem; margin: 2.2em 0 .7em; color: var(--text); }
.prose p { margin-bottom: 1.2em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--violet); }
.callout { margin: 2em 0; padding: 1.3em 1.5em; border-radius: 14px; border-left: 3px solid var(--cyan); background: linear-gradient(90deg, rgba(34,211,238,.1), rgba(139,92,246,.06)); font-size: 1rem; }
.table-wrap { overflow-x: auto; margin: 1.6em 0 2em; border-radius: 14px; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.prose th, .prose td { padding: .85em 1.1em; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { font-family: var(--font-head); color: var(--text); background: rgba(255,255,255,.04); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; }
.article-cta { margin-top: 4rem; }

@media (max-width: 1000px) {
  .svc { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 80px; }
  .svc.reverse .svc-copy { order: 0; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-art { min-height: 220px; }
}
@media (max-width: 760px) {
  .page-hero { padding-top: 130px; }
  .ticks.two-col, .mini-grid, .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .svc-num { font-size: 3.6rem; }
  .featured-post .post-body { padding: 1.6rem; }
  .article { padding-top: 120px; }
  .article-art { height: 200px; }
  .cta-band { padding: 3rem 1.4rem; }
}

/* =====================================================
   Light theme  (activate with <html data-theme="light">)
   ===================================================== */
html[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: #ffffff;
  --border: rgba(15, 18, 40, 0.09);
  --text: #0f1228;
  --muted: #5b6180;
  --cyan: #0891b2;
  --grad: linear-gradient(120deg, #7c3aed, #0891b2);
  color-scheme: light;
}
[data-theme="light"] .orb { opacity: .22; }
[data-theme="light"] .orb-2 { opacity: .18; }
[data-theme="light"] .orb-3 { opacity: .12; }
[data-theme="light"] .grid-overlay { background-image: linear-gradient(rgba(15,18,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,18,40,.05) 1px, transparent 1px); }
[data-theme="light"] .site-header.scrolled { background: rgba(255,255,255,.8); }
[data-theme="light"] .card, [data-theme="light"] .feature, [data-theme="light"] .post-card,
[data-theme="light"] .work-item, [data-theme="light"] .faq details { box-shadow: 0 1px 2px rgba(15,18,40,.04), 0 12px 32px -18px rgba(15,18,40,.18); }
[data-theme="light"] .suggest-card { box-shadow: none; }
[data-theme="light"] .btn-primary { box-shadow: 0 10px 30px -10px rgba(124,58,237,.55); }
[data-theme="light"] .marquee { background: rgba(255,255,255,.6); }
[data-theme="light"] .marquee-track span:nth-child(even) { color: #7c3aed; }

/* Hero mock-ups: light browser, phone stays dark as a contrast "device" */
[data-theme="light"] .browser { background: linear-gradient(160deg, #ffffff, #f1f2f8); box-shadow: 0 40px 80px -30px rgba(15,18,40,.35), 0 0 0 1px rgba(124,58,237,.12); }
[data-theme="light"] .browser-bar { background: #f4f5fa; }
[data-theme="light"] .browser-bar span, [data-theme="light"] .sk, [data-theme="light"] .sk-cards div { background: rgba(15,18,40,.06); }
[data-theme="light"] .sk-title { background: var(--grad); }
[data-theme="light"] .sk-cards div:nth-child(2) { background: linear-gradient(160deg, rgba(124,58,237,.3), rgba(8,145,178,.15)); }
[data-theme="light"] .phone { --text: #eef0ff; --muted: #9aa0bf; --cyan: #22d3ee; color: var(--text); box-shadow: 0 40px 70px -25px rgba(15,18,40,.5); }
[data-theme="light"] .float-card { background: rgba(255,255,255,.85); box-shadow: 0 20px 40px -15px rgba(15,18,40,.25); }

/* Illustrations: brighter, saturated tiles */
[data-theme="light"] .w-1 .work-art, [data-theme="light"] .art-apps { background: linear-gradient(135deg, #7c3aed, #c026d3); }
[data-theme="light"] .w-2 .work-art, [data-theme="light"] .art-seo { background: linear-gradient(135deg, #0891b2, #6366f1); }
[data-theme="light"] .w-3 .work-art { background: linear-gradient(135deg, #db2777, #7c3aed); }
[data-theme="light"] .w-4 .work-art, [data-theme="light"] .art-web { background: linear-gradient(135deg, #4f46e5, #0891b2); }
[data-theme="light"] .wa-chart i { background: linear-gradient(180deg, #fff, rgba(255,255,255,.5)); }
[data-theme="light"] .wa-shop i::after, [data-theme="light"] .wa-site b { background: #fff; }

/* Panels, forms, misc */
[data-theme="light"] .contact-box, [data-theme="light"] .cta-band { background: radial-gradient(circle at 0% 0%, rgba(124,58,237,.12), transparent 50%), radial-gradient(circle at 100% 100%, rgba(8,145,178,.12), transparent 50%), #fff; border-color: rgba(124,58,237,.2); }
[data-theme="light"] .svc-panel { background: linear-gradient(165deg, rgba(124,58,237,.07), rgba(8,145,178,.04)), #fff; box-shadow: 0 30px 60px -35px rgba(15,18,40,.3); }
[data-theme="light"] .contact-form input[type="text"], [data-theme="light"] .contact-form input[type="email"],
[data-theme="light"] .contact-form textarea, [data-theme="light"] .chips span { background: #f7f7fb; }
[data-theme="light"] .chips input:checked + span, [data-theme="light"] .filter.active { color: #fff; }
[data-theme="light"] .badge { color: #fff; }
[data-theme="light"] .timeline-bar, [data-theme="light"] .tags span, [data-theme="light"] .prose th { background: rgba(15,18,40,.05); }
[data-theme="light"] .num { box-shadow: 0 0 24px -6px rgba(124,58,237,.45); }
[data-theme="light"] .prose { color: #2d3250; }
[data-theme="light"] .callout { background: linear-gradient(90deg, rgba(8,145,178,.08), rgba(124,58,237,.05)); }
[data-theme="light"] .ticks li::before { background-color: rgba(8,145,178,.12); }
@media (max-width: 760px) { [data-theme="light"] .nav-links { background: rgba(255,255,255,.97); } }

/* ---- Warm sand palette (active site theme) — refines the light theme above ---- */
html[data-theme="light"]{--bg:#faf6ef;--bg-2:#fffdf8;--surface:rgba(255,253,248,.85);--surface-2:#fffdf8;--border:rgba(70,45,20,.1);--text:#1d1a16;--muted:#6f665c}
[data-theme="light"] .orb-1{background:#c4b5fd;opacity:.35}[data-theme="light"] .orb-2{background:#fdba74;opacity:.25}[data-theme="light"] .orb-3{background:#f9a8d4;opacity:.2}
[data-theme="light"] .grid-overlay{display:none}
[data-theme="light"] .contact-box,[data-theme="light"] .cta-band{background:radial-gradient(circle at 0% 0%,rgba(196,181,253,.3),transparent 50%),radial-gradient(circle at 100% 100%,rgba(253,186,116,.25),transparent 50%),#fffdf8}
[data-theme="light"] .browser-bar{background:#f6f1e8}
[data-theme="light"] .contact-form input[type="text"],[data-theme="light"] .contact-form input[type="email"],[data-theme="light"] .contact-form textarea,[data-theme="light"] .chips span{background:#faf6ef}
[data-theme="light"] .site-header.scrolled{background:rgba(250,246,239,.85)}
@media (max-width:760px){[data-theme="light"] .nav-links{background:rgba(250,246,239,.98)}}

/* Contact form: honeypot + status messages */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note.error { color: #dc2626; }
[data-theme="light"] .form-note { color: #047857; }
[data-theme="light"] .form-note.error { color: #b91c1c; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* Headings fix (h4 -> h3), legal note, 404 page */
.feature h3 { font-size: 1.1rem; margin-bottom: .4em; }
.form-legal { margin: 0; font-size: .8rem; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }
.not-found { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 120px; }
.nf-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0 0 .2em; }
.not-found h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.not-found .lead { margin: 0 auto; }
.not-found .hero-cta { justify-content: center; }
.article-head + .prose { margin-top: 3rem; }
