/* ═══════════════════════════════════════════════════
   HyperionMax — style.css
   Dark theme default · Light theme via :has() toggle
   CSS-only · No JS · No images
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── 1. CUSTOM PROPERTIES (dark theme defaults) ─── */
:root {
  --bg:          #07071a;
  --bg-surface:  #0d0d24;
  --bg-card:     #111130;
  --bg-card-h:   #161640;
  --border:      rgba(255,255,255,0.07);
  --border-hi:   rgba(99,102,241,0.35);

  --txt:         #eeeef5;
  --txt-2:       #8888a8;
  --txt-3:       #55556a;

  --a1: #6366f1;   /* indigo  */
  --a2: #a855f7;   /* purple  */
  --a3: #ec4899;   /* pink    */
  --a4: #06b6d4;   /* cyan    */
  --a5: #10b981;   /* emerald */

  --grad:      linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-r:    linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
  --grad-b:    linear-gradient(180deg, #6366f1 0%, #a855f7 100%);

  --nav-bg:    rgba(7,7,26,0.80);
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --shadow-hi: 0 8px 48px rgba(99,102,241,0.25);

  --toggle-bg: #1a1a40;
  --r:    16px;
  --r-sm: 8px;
  --r-lg: 24px;
  --r-xl: 40px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 2. LIGHT THEME OVERRIDES ─── */
html:has(#theme-toggle:checked) {
  --bg:         #f2f2fa;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;
  --bg-card-h:  #f5f5ff;
  --border:     rgba(0,0,0,0.07);
  --border-hi:  rgba(99,102,241,0.25);

  --txt:   #0d0d24;
  --txt-2: #555578;
  --txt-3: #9999b8;

  --nav-bg: rgba(242,242,250,0.85);
  --shadow:    0 4px 24px rgba(0,0,0,0.09);
  --shadow-hi: 0 8px 40px rgba(99,102,241,0.18);
  --toggle-bg: #ddddf0;
}

/* ─── 3. RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input { font-family: inherit; }
blockquote { font-style: italic; }

/* Global transition for theme switching */
*, *::before, *::after {
  transition: background-color 0.35s var(--ease),
              border-color 0.35s var(--ease),
              color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--a1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  white-space: nowrap;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Visually hidden but keyboard-accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Nav toggle: hidden on desktop (hamburger not shown), sr-only on mobile */
.nav-toggle-input { display: none; }
@media (max-width: 768px) {
  .nav-toggle-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

/* Focus rings via sibling selectors */
#theme-toggle:focus-visible + .theme-btn .theme-btn__track {
  outline: 2px solid var(--a1);
  outline-offset: 3px;
}
#nav-toggle:focus-visible ~ .site .hamburger {
  outline: 2px solid var(--a1);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ─── 4. LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ─── 5. TYPOGRAPHY UTILITIES ─── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a1);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--txt-2);
  line-height: 1.7;
}

/* ─── 6. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(99,102,241,0.55); }

.btn--outline {
  background: transparent;
  color: var(--txt);
  border: 1.5px solid var(--border-hi);
}
.btn--outline:hover {
  background: rgba(99,102,241,0.08);
  border-color: var(--a1);
}

.btn--lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }

/* ─── 7. LOGO ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--txt);
}

.logo__mark {
  width: 34px;
  height: 34px;
  background: var(--grad);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
}

.logo__mark::before,
.logo__mark::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}
.logo__mark::before {
  width: 12px; height: 3px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-35deg);
}
.logo__mark::after {
  width: 12px; height: 3px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(35deg);
}

/* ─── 8. NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--txt-2);
  position: relative;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav__links a:hover { color: var(--txt); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme toggle button */
.theme-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.theme-btn__track {
  position: relative;
  width: 54px;
  height: 28px;
  background: var(--toggle-bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background 0.3s;
}

.theme-btn__thumb {
  width: 20px;
  height: 20px;
  background: var(--grad);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.5);
  z-index: 1;
  flex-shrink: 0;
}

.theme-btn__icon {
  position: absolute;
  width: 13px;
  height: 13px;
  color: var(--txt-2);
  transition: opacity 0.3s;
}

.theme-btn__icon--moon { right: 7px; }
.theme-btn__icon--sun  { right: 7px; opacity: 0; }

/* When light mode is active */
html:has(#theme-toggle:checked) .theme-btn__thumb {
  transform: translateX(26px);
}
html:has(#theme-toggle:checked) .theme-btn__icon--moon { opacity: 0; }
html:has(#theme-toggle:checked) .theme-btn__icon--sun  { opacity: 1; right: auto; left: 7px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Mobile nav panel */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.nav__mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--txt-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav__mobile a:hover { color: var(--txt); }
.nav__mobile .btn { margin-top: 8px; width: 100%; }

/* Nav toggle open state */
#nav-toggle:checked ~ .site .nav__mobile {
  display: flex;
}

#nav-toggle:checked ~ .site .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle:checked ~ .site .hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .site .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── 9. HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

/* Background effects */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.hero__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  bottom: -100px; right: 10%;
  animation-delay: -3s;
}

.hero__glow--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 30%; right: 40%;
  opacity: 0.2;
  animation-delay: -6s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero__text { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-2);
  margin-bottom: 24px;
}

.hero__pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--a5);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--txt);
  margin-bottom: 24px;
}

.hero__h1 .gradient-text {
  display: block;
}

.hero__subtext {
  font-size: 17px;
  color: var(--txt-2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-val {
  display: block;
  order: -1;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-lbl {
  display: block;
  font-size: 12px;
  color: var(--txt-3);
  font-weight: 500;
  margin-top: 2px;
}

.hero__stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── 9a. CSS PHONE MOCKUP ─── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phone {
  position: relative;
  z-index: 2;
  animation: floatPhone 6s ease-in-out infinite;
}

.phone__frame {
  width: 240px;
  background: #0a0a1a;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.12);
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

html:has(#theme-toggle:checked) .phone__frame {
  background: #1e1e2e;
  border-color: rgba(255,255,255,0.15);
}

.phone__notch {
  width: 90px;
  height: 22px;
  background: #0a0a1a;
  border-radius: 0 0 16px 16px;
  margin: -12px auto 8px;
  position: relative;
  z-index: 2;
}

html:has(#theme-toggle:checked) .phone__notch { background: #1e1e2e; }

.phone__screen {
  background: #12122a;
  border-radius: 28px;
  padding: 12px;
  min-height: 440px;
  overflow: hidden;
}

html:has(#theme-toggle:checked) .phone__screen { background: #252545; }

.phone__status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
}

.phone__signal { letter-spacing: 2px; font-size: 6px; }

.phone__app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ph-line {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  height: 6px;
}
.ph-line--title { width: 80px; margin-bottom: 4px; }
.ph-line--sub   { width: 50px; height: 4px; }
.ph-line--label { width: 60px; margin-bottom: 8px; opacity: 0.6; }
.ph-line--amount{ width: 100px; height: 12px; }

.phone__app-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
}

.phone__balance-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(168,85,247,0.15) 100%);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.phone__chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 50px;
  margin-top: 12px;
}

.phone__chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: rgba(255,255,255,0.15);
  border-radius: 3px 3px 0 0;
}

.phone__chart-bar--hi {
  background: linear-gradient(180deg, #6366f1, #a855f7);
}

.phone__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone__action-btn {
  flex: 1;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.phone__txlist { display: flex; flex-direction: column; gap: 6px; }

.phone__tx {
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.phone__tx--sm { height: 24px; opacity: 0.5; }

.phone__home-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.phone__glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(99,102,241,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Floating badges */
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  z-index: 3;
}

.badge--tl { top: 60px; left: -40px; animation: floatBadge1 5s ease-in-out infinite; }
.badge--br { bottom: 80px; right: -30px; animation: floatBadge2 5s ease-in-out infinite; }

.badge__icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}

.badge__icon--check {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  position: relative;
}

.badge__icon--check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.badge__icon--star {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  position: relative;
}

.badge__icon--star::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.badge__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
}

.badge__sub {
  font-size: 11px;
  color: var(--txt-2);
}

/* ─── 10. MARQUEE ─── */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 20px 0;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}

.marquee__track {
  display: flex;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 14px;
  flex-shrink: 0;
}

.marquee__content span {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee__dot {
  width: 5px; height: 5px;
  background: var(--a1);
  border-radius: 50%;
  opacity: 0.5;
  font-style: normal;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── 11. SERVICES ─── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.svc-card--hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hi);
  border-color: var(--border-hi);
}

.svc-card--hero { padding: 40px; }

.svc-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin: 20px 0 12px;
}

.svc-card p {
  font-size: 15px;
  color: var(--txt-2);
  line-height: 1.65;
  margin-bottom: 24px;
}

.svc-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--a1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.svc-card__cta:hover { gap: 10px; }

.svc-card__deco {
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Service icon containers */
.svc-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* CSS-drawn service icons */
.svc-icon {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.svc-icon--ios {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}
.svc-icon--ios::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 26px;
  background: white;
  border-radius: 5px 5px 3px 3px;
  clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
}
.svc-icon--ios::after {
  content: '';
  position: absolute;
  bottom: 35%; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 2px;
  background: #1c1c1e;
  border-radius: 1px;
}

.svc-icon--web {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.svc-icon--web::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 20px;
  border: 2px solid white;
  border-radius: 4px;
}
.svc-icon--web::after {
  content: '';
  position: absolute;
  bottom: 11px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 2px;
  background: white;
  border-radius: 1px;
  box-shadow: 0 -4px 0 white;
}

.svc-icon--design {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}
.svc-icon--design::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 18px; height: 18px;
  border: 3px solid white;
  border-radius: 3px;
}
.svc-icon--design::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
}

.svc-icon--strategy {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.svc-icon--strategy::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 17px solid white;
}
.svc-icon--strategy::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: white;
  border-radius: 1px;
}

.svc-icon--saas {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}
.svc-icon--saas::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 16px;
  border: 2px solid white;
  border-radius: 5px;
  box-shadow: 0 6px 0 0 white, 0 7px 0 0 white;
}
.svc-icon--saas::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scaleX(1.4);
  width: 8px; height: 8px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
}

/* ─── 12. WORK / PORTFOLIO ─── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work__grid--single {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
}

.proj-card--large {
  grid-column: 1 / 3;
}

.work__grid--single .proj-card--large {
  grid-column: auto;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hi);
  border-color: var(--border-hi);
}

.proj-card__vis {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-card--large .proj-card__vis { height: 320px; }

.proj-vis {
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Finance vis */
.proj-vis--finance {
  background: linear-gradient(135deg, #0f0f30 0%, #1a0a30 50%, #0a1040 100%);
}

.pf-rings {
  position: absolute;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
}

.pf-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.pf-ring--1 { width: 160px; height: 160px; border-color: #6366f1; }
.pf-ring--2 { width: 110px; height: 110px; border-color: #a855f7; opacity: 0.6; }
.pf-ring--3 { width: 64px; height: 64px; background: linear-gradient(135deg, #6366f1, #a855f7); border: none; opacity: 0.8; }

.pf-bars {
  position: absolute;
  bottom: 20px; right: 30px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}

.pf-bar {
  width: 18px;
  height: var(--h, 50%);
  background: rgba(255,255,255,0.1);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}

.pf-bar--hi { background: linear-gradient(180deg, #6366f1, #a855f7); }

.pf-card {
  position: absolute;
  top: 20px; right: 20px;
  width: 100px; height: 60px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  padding: 12px;
}

.pf-card-line {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-bottom: 6px;
}
.pf-card-line--sm { width: 60%; height: 4px; }

/* Dashboard vis */
.proj-vis--dash {
  background: linear-gradient(135deg, #050520 0%, #0a0520 100%);
  flex-direction: column;
}

.pd-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pd-body {
  position: absolute;
  inset: 32px 0 0 0;
  display: flex;
}

.pd-sidebar {
  width: 44px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-sb-item {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  width: 100%;
}

.pd-sb-item--active {
  background: var(--a1);
  opacity: 0.8;
}

.pd-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-chart-area {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.pd-chart-line {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  border-radius: 1px;
}

.pd-chart-line--1 {
  bottom: 40%;
  background: rgba(99,102,241,0.6);
  clip-path: polygon(0 100%, 15% 20%, 35% 60%, 55% 10%, 75% 45%, 100% 5%, 100% 100%);
  height: 60%;
  background: linear-gradient(180deg, rgba(99,102,241,0.3) 0%, transparent 100%);
}

.pd-chart-line--2 {
  bottom: 20%;
  background: rgba(168,85,247,0.4);
  height: 40%;
  clip-path: polygon(0 100%, 20% 50%, 40% 70%, 60% 30%, 80% 55%, 100% 20%, 100% 100%);
  background: linear-gradient(180deg, rgba(168,85,247,0.2) 0%, transparent 100%);
}

.pd-kpis {
  display: flex;
  gap: 8px;
}

.pd-kpi {
  flex: 1;
  height: 28px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 6px;
}

/* Health vis */
.proj-vis--health {
  background: radial-gradient(ellipse at 50% 50%, #1a0520 0%, #080515 100%);
}

.ph-rings {
  position: relative;
  width: 140px; height: 140px;
}

.ph-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid;
  border-top-color: transparent !important;
}

.ph-ring--1 {
  width: 140px; height: 140px;
  border-color: #ef4444;
  transform: translate(-50%, -50%) rotate(-20deg);
  animation: ringGrow 3s ease-in-out infinite;
}

.ph-ring--2 {
  width: 100px; height: 100px;
  border-color: #10b981;
  border-width: 7px;
  transform: translate(-50%, -50%) rotate(30deg);
  animation: ringGrow 3s ease-in-out infinite 0.5s;
}

.ph-ring--3 {
  width: 62px; height: 62px;
  border-color: var(--a4);
  border-width: 6px;
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: ringGrow 3s ease-in-out infinite 1s;
}

.ph-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  background: var(--grad);
  border-radius: 50%;
}

/* Shop vis */
.proj-vis--shop {
  background: linear-gradient(135deg, #050520 0%, #15051a 100%);
  padding: 20px;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 220px;
}

.ps-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px;
}

.ps-item-img {
  width: 100%;
  height: 48px;
  border-radius: 5px;
  margin-bottom: 6px;
}

.ps-item-img--1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.ps-item-img--2 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.ps-item-img--3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.ps-item-img--4 { background: linear-gradient(135deg, #ef4444, #f59e0b); }

.ps-item-line {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-bottom: 4px;
}

.ps-item-line--sm { width: 60%; height: 3px; opacity: 0.6; }

.ps-cart {
  position: absolute;
  bottom: 12px; right: 12px;
}

.ps-cart-btn {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  position: relative;
}

.ps-cart-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 12px;
  border: 2px solid white;
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 -6px 0 0 white;
}

/* Portfolio card info */
.proj-card__info {
  padding: 20px 24px 24px;
}

.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.proj-card__tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--a1);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.03em;
}

.proj-card__info h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin-bottom: 8px;
}

.proj-card__info p {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.proj-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--a1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.proj-card__link:hover { gap: 8px; }

/* ─── 13. PROCESS ─── */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  list-style: none;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3));
  opacity: 0.3;
}

.process__step { position: relative; }

.process__num {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.process__connector {
  position: absolute;
  top: 28px; right: -16px;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: 0.3;
}

.process__step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 10px;
}

.process__step p {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.65;
}

/* ─── 14. ABOUT ─── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
  min-height: 460px;
}

.av-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatGlow 7s ease-in-out infinite;
}

.av-orb--1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  top: 0; left: 0;
}

.av-orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
  bottom: 40px; right: 0;
  animation-delay: -3.5s;
}

.av-shape {
  position: absolute;
  inset: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
}

.av-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.av-card--1 { top: 40px; left: 30px; }
.av-card--2 { top: 50%; right: 20px; transform: translateY(-50%); }
.av-card--3 { bottom: 40px; left: 40px; }

.av-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.av-icon--team   { background: linear-gradient(135deg, #6366f1, #a855f7); }
.av-icon--globe  { background: linear-gradient(135deg, #06b6d4, #10b981); }
.av-icon--award  { background: linear-gradient(135deg, #f59e0b, #ec4899); }

.av-card-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--txt);
}

.av-card-lbl {
  font-size: 11px;
  color: var(--txt-2);
  font-weight: 500;
}

.about__content .section-tag { margin-bottom: 16px; }
.about__content .section-title { margin-bottom: 20px; }

.about__content > p {
  font-size: 16px;
  color: var(--txt-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__feats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 36px;
}

.about__feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about__feat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
}

.about__feat-icon--1 { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.25); }
.about__feat-icon--2 { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.22); }
.about__feat-icon--3 { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.22); }

.about__feat-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 16px; height: 16px;
  border-radius: 4px;
}

.about__feat-icon--1::before { background: var(--a1); clip-path: polygon(20% 0%,80% 0%,100% 20%,100% 80%,80% 100%,20% 100%,0% 80%,0% 20%); }
.about__feat-icon--2::before { background: var(--a5); border-radius: 50%; }
.about__feat-icon--3::before { background: #f59e0b; clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }

.about__feat strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}

.about__feat p {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.55;
}

/* ─── 15. TESTIMONIALS ─── */
.testi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hi);
  border-color: var(--border-hi);
}

.testi-card--featured {
  background: linear-gradient(135deg,
    rgba(99,102,241,0.12) 0%,
    rgba(168,85,247,0.08) 100%);
  border-color: var(--border-hi);
}

.testi-card__stars {
  font-size: 16px;
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testi-card blockquote {
  font-size: 15px;
  color: var(--txt-2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testi-card__avatar--1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.testi-card__avatar--2 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.testi-card__avatar--3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.testi-card__author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.testi-card__author span {
  font-size: 13px;
  color: var(--txt-2);
}

/* ─── 16. CTA ─── */
.cta__box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 80px 60px;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta__glow--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
  top: -100px; left: -100px;
}

.cta__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

.cta__content { position: relative; z-index: 1; }

.cta__content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta__content > p {
  font-size: 17px;
  color: var(--txt-2);
  margin-bottom: 36px;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.cta__content > .btn {
  margin-bottom: 32px;
}

.cta__input {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--txt);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cta__input::placeholder { color: var(--txt-3); }

.cta__input:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.cta__note {
  font-size: 13px;
  color: var(--txt-3);
}

/* ─── 17. FOOTER ─── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px 60px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.7;
  margin: 20px 0 24px;
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-link svg { width: 14px; height: 14px; }

.social-link:hover {
  background: var(--grad);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col li,
.footer__col a {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.5;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--a1); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--txt-3);
}

.footer__bottom-inner nav {
  display: flex;
  gap: 24px;
}

.footer__bottom a {
  font-size: 13px;
  color: var(--txt-3);
  transition: color 0.2s;
}

.footer__bottom a:hover { color: var(--txt-2); }

/* ─── 18. KEYFRAME ANIMATIONS ─── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
  50%       { box-shadow: 0 0 0 10px rgba(16,185,129,0);   }
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1.5deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes ringGrow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* ─── 19. RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proj-card--large {
    grid-column: 1 / -1;
  }

  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .process__connector { display: none; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .nav__links { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero__eyebrow,
  .hero__actions { justify-content: center; }
  .hero__stats   { justify-content: center; }
  .hero__subtext { margin-left: auto; margin-right: auto; }

  .hero__visual {
    justify-content: center;
    min-height: 420px;
    order: -1;
  }

  .badge--tl { top: 20px; left: 0; }
  .badge--br { bottom: 20px; right: 0; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }
  .svc-card--hero { grid-row: auto; }

  /* Work */
  .work__grid { grid-template-columns: 1fr; }
  .work__grid--two { grid-template-columns: 1fr; }
  .proj-card--large { grid-column: auto; }

  /* Process */
  .process__steps { grid-template-columns: 1fr 1fr; }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__visual { min-height: 320px; }

  /* Testimonials */
  .testi__grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta__box { padding: 48px 24px; }
  .cta__form {
    flex-direction: column;
    align-items: stretch;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px 40px;
  }
  .footer__brand { grid-column: auto; }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .hero__h1 { font-size: 36px; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .hero__stat-sep { width: 40px; height: 1px; }

  .process__steps { grid-template-columns: 1fr; }

  .phone { transform: scale(0.85); transform-origin: center top; }
  .badge { display: none; }
}

/* ─── 20. REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── 21. FOCUS STYLES (accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 22. LANGUAGE SWITCHER ─── */

/* Hide radio inputs but keep them keyboard-accessible */
.lang-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--txt-2);
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  line-height: 1;
}

.lang-btn:hover { color: var(--txt); }

/* Active language pill */
html:has(#lang-en:checked) label[for="lang-en"],
html:has(#lang-ru:checked) label[for="lang-ru"],
html:has(#lang-kz:checked) label[for="lang-kz"] {
  background: var(--grad);
  color: #fff;
}

/* Focus rings on lang labels via sibling combinator */
#lang-en:focus-visible ~ .site .lang-switcher label[for="lang-en"],
#lang-ru:focus-visible ~ .site .lang-switcher label[for="lang-ru"],
#lang-kz:focus-visible ~ .site .lang-switcher label[for="lang-kz"] {
  outline: 2px solid var(--a1);
  outline-offset: 2px;
  border-radius: 7px;
}

/* Mobile: hide desktop switcher, show one inside mobile nav */
@media (max-width: 768px) {
  .nav__right .lang-switcher { display: none; }
  .nav__mobile .lang-switcher {
    display: flex;
    align-self: flex-start;
    margin-top: 4px;
    margin-bottom: 4px;
  }
}

/* ─── 23. WORK GRID — TWO COLUMNS ─── */
.work__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 100%;
}
/* Prevent --large from spanning both cols in the two-col layout */
.work__grid--two .proj-card--large {
  grid-column: auto;
}

/* ─── 24. LOGISTICS VISUAL ─── */
.proj-vis--logistics {
  background: linear-gradient(135deg, #030e1c 0%, #071422 60%, #040f1a 100%);
  position: relative;
}

/* Subtle grid overlay */
.pl-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

/* ── Telegram chat panel (left) ── */
.pl-chat {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  width: 96px;
  background: rgba(10,20,36,0.9);
  border: 1px solid rgba(34,158,217,0.25);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 6px 8px;
}

/* Telegram header bar */
.pl-chat-hdr {
  height: 20px;
  background: linear-gradient(90deg, #229ED9 0%, #1a8aba 100%);
  margin: 0 -6px 4px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  gap: 5px;
  flex-shrink: 0;
}

.pl-chat-hdr::before {
  content: '';
  width: 9px; height: 9px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  flex-shrink: 0;
}

.pl-chat-hdr::after {
  content: '';
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

/* Chat bubbles */
.pl-bubble {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.pl-bubble--in  { width: 75%; align-self: flex-start; }
.pl-bubble--out {
  width: 65%;
  align-self: flex-end;
  background: rgba(34,158,217,0.35);
}
.pl-bubble--sm  { width: 48%; }

/* Inline-keyboard button */
.pl-kbd {
  height: 13px;
  background: rgba(34,158,217,0.2);
  border: 1px solid rgba(34,158,217,0.4);
  border-radius: 5px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Center connector ── */
.pl-connector {
  position: absolute;
  top: 50%;
  left: calc(10% + 96px + 8px);
  width: calc(80% - 96px - 96px - 16px);
  height: 2px;
  background: linear-gradient(90deg, #229ED9 0%, #6366f1 50%, #10b981 100%);
  opacity: 0.5;
  transform: translateY(-50%);
}

/* Route dots on connector */
.pl-connector::before,
.pl-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
}

.pl-connector::before {
  left: 35%;
  width: 8px; height: 8px;
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99,102,241,0.8);
  margin-left: -4px;
  margin-top: 0;
}

.pl-connector::after {
  right: 0;
  width: 6px; height: 6px;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16,185,129,0.8);
  margin-right: -3px;
}

/* ── Web dashboard panel (right) ── */
.pl-web {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 96px;
  background: rgba(10,16,30,0.9);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 6px 8px;
}

/* Web top bar */
.pl-web-hdr {
  height: 20px;
  background: rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  margin: 0 -6px 4px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  gap: 3px;
  flex-shrink: 0;
}

.pl-web-hdr::before {
  content: '';
  width: 5px; height: 5px;
  background: #ef4444; border-radius: 50%;
}

.pl-web-hdr::after {
  content: '';
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-left: 4px;
}

/* Bar chart in web panel */
.pl-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  padding: 0 2px;
  flex-shrink: 0;
}

.pl-bar {
  flex: 1;
  height: var(--h, 40%);
  background: rgba(99,102,241,0.25);
  border-radius: 3px 3px 0 0;
}

.pl-bar--hi {
  background: linear-gradient(180deg, #6366f1, #a855f7);
}

/* Info rows */
.pl-row {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  flex-shrink: 0;
}

.pl-row--sm { width: 60%; }

/* ── Floating status badge ── */
.pl-status {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 20px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pl-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16,185,129,0.8);
  animation: pulse 2.5s ease-in-out infinite;
}

.pl-status-txt {
  font-size: 8px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.05em;
}

/* ─── 25. MULTILINGUAL CONTENT VISIBILITY ─── */

/*
  Hide rule uses :root prefix → specificity (0,2,0).
  This beats component rules like .legal-section ul {display:flex} at (0,1,1),
  so non-active language elements are always suppressed regardless of context.

  Show rules use html:has(#id:checked) → specificity (1,2,1) or higher,
  which always beats the hide rule above.
  Each element tag is targeted explicitly so the correct display type is restored:
    block  → p, h2, h3, div, and any other block-level element
    inline → span (inline text translations)
    flex   → ul (list items styled with gap via flexbox in legal pages)
*/

/* Default: hide all non-English content */
:root .t-ru,
:root .t-kz { display: none; }

/* ── Switch to Russian ── */
html:has(#lang-ru:checked) .t-en     { display: none;   }
html:has(#lang-ru:checked) .t-ru     { display: block;  }
html:has(#lang-ru:checked) span.t-ru { display: inline; }
html:has(#lang-ru:checked) ul.t-ru   { display: flex;   }

/* ── Switch to Kazakh ── */
html:has(#lang-kz:checked) .t-en     { display: none;   }
html:has(#lang-kz:checked) .t-kz     { display: block;  }
html:has(#lang-kz:checked) span.t-kz { display: inline; }
html:has(#lang-kz:checked) ul.t-kz   { display: flex;   }

/* ─── 26. LEGAL PAGES ─── */
.legal-hero {
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.legal-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.legal-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.legal-hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px; left: -100px;
}

.legal-hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: -150px; right: 10%;
}

.legal-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.legal-hero__inner {
  position: relative;
  z-index: 1;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  margin-bottom: 24px;
  transition: color 0.2s, gap 0.2s;
}

.legal-hero__back:hover { color: var(--a1); gap: 10px; }

.legal-hero__back::before {
  content: '←';
  font-size: 15px;
}

.legal-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--txt);
  margin-bottom: 16px;
}

.legal-hero__meta {
  font-size: 14px;
  color: var(--txt-3);
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-hero__meta::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* Legal body */
.legal-body {
  padding: 72px 0 100px;
}

.legal-body__inner {
  max-width: 780px;
}

.legal-section {
  margin-bottom: 52px;
}

.legal-section:last-child { margin-bottom: 0; }

.legal-section__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 8px;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--txt);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 15px;
  color: var(--txt-2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding-left: 0;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--txt-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  background: var(--a1);
  border-radius: 50%;
  opacity: 0.7;
}

.legal-section a {
  color: var(--a1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover { opacity: 0.8; }

/* Contact box at the end */
.legal-contact {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r);
  padding: 20px 28px;
  margin-top: 16px;
}

.legal-contact strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.legal-contact a {
  font-size: 14px;
  color: var(--a1);
  text-decoration: none !important;
}

/* Side-by-side page nav in footer area */
.legal-nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.legal-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s;
}

.legal-nav-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.legal-nav-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 6px;
}

.legal-nav-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 600px) {
  .legal-nav-cards { grid-template-columns: 1fr; }
  .legal-hero { padding: 120px 0 48px; }
  .legal-body { padding: 48px 0 72px; }
}
