/* ==========================================================================
   Subhendu Pan — Design System
   Brand: #C8102E · Glassmorphism · Dark/Light · Mobile-first
   ========================================================================== */

/* ---------- Fonts (self-hostable; using Google as fallback preconnect) ---- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --brand: #C8102E;
  --brand-600: #a90d26;
  --brand-300: #e8617a;
  --brand-glow: rgba(200, 16, 46, 0.35);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
  --header-h: 74px;
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --glass-border: rgba(20, 20, 30, 0.08);
  --glass-shadow: 0 8px 40px rgba(20, 20, 40, 0.08);
  --text: #14141c;
  --text-2: #4a4a58;
  --text-3: #8a8a98;
  --line: rgba(20, 20, 40, 0.09);
  --hero-grid: rgba(20, 20, 40, 0.05);
  --nav-bg: rgba(255, 255, 255, 0.7);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-2: #101018;
  --surface: rgba(22, 22, 32, 0.6);
  --surface-solid: #14141c;
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  --text: #f2f2f6;
  --text-2: #b4b4c2;
  --text-3: #70707e;
  --line: rgba(255, 255, 255, 0.08);
  --hero-grid: rgba(255, 255, 255, 0.04);
  --nav-bg: rgba(12, 12, 18, 0.6);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Atmosphere backdrop ----------------------------------------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: floatOrb 22s var(--ease) infinite alternate;
}
.bg-orbs span:nth-child(1) { width: 420px; height: 420px; background: var(--brand); top: -120px; left: -80px; opacity: 0.22; }
.bg-orbs span:nth-child(2) { width: 360px; height: 360px; background: #4f46e5; bottom: -100px; right: -60px; opacity: 0.16; animation-delay: -6s; }
.bg-orbs span:nth-child(3) { width: 300px; height: 300px; background: var(--brand-300); top: 40%; left: 55%; opacity: 0.14; animation-delay: -12s; }
@media (max-width: 700px) {
  .bg-orbs span:nth-child(1) { width: 300px; height: 300px; }
  .bg-orbs span:nth-child(3) { left: auto; right: -80px; }
}
@keyframes floatOrb { to { transform: translate3d(60px, -50px, 0) scale(1.15); } }

.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 84px) 0; }

/* ---------- Glass primitive --------------------------------------------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

/* ---------- Typographic helpers ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  padding: 7px 14px; border-radius: 100px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin: 18px 0 14px; }
.section-lead { color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 620px; }
.text-brand { color: var(--brand); }
.gradient-text {
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-300) 55%, #7b61ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 100px; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 26px -6px var(--brand-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px var(--brand-glow); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%); transition: transform 0.6s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn .ai { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .ai { transform: translateX(4px); }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled .nav-inner {
  background: var(--nav-bg); backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-color: var(--glass-border); box-shadow: var(--glass-shadow);
}
.site-header.hide { transform: translateY(-110%); }
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px 9px 16px; border-radius: 100px; border: 1px solid transparent;
  transition: all 0.4s var(--ease); margin-top: 10px; margin-inline: 22px;
}
.brand-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; min-width: 0; }
.brand-logo img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.brand-logo .bt { font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; line-height: 1.15; }
.brand-logo .bt small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--text-2);
  padding: 8px 14px; border-radius: 100px; position: relative; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-links a.active { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--glass-border); color: var(--text);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.08); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--glass-border); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px auto; border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Mobile nav --------------------------------------------------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 40px;
  transform: translateX(100%); transition: transform 0.5s var(--ease); visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-of-type { border: none; }

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; display: flex; align-items: center; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.hero p.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-2); max-width: 540px; margin: 20px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero inline stats */
.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .hs { display: flex; flex-direction: column; }
.hero-stats .hs strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--brand); letter-spacing: -0.02em; line-height: 1; }
.hero-stats .hs span { font-size: 0.82rem; color: var(--text-3); margin-top: 4px; }
.hero-stats .hs-div { width: 1px; height: 36px; background: var(--line); }

/* Hero visual: portrait + rotating badge + floating cards */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-portrait { position: relative; width: min(400px, 82vw); aspect-ratio: 1; }
.hero-portrait .ring-badge { position: absolute; inset: 0; animation: spin 30s linear infinite; z-index: 1; }
.hero-portrait img.face {
  position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 24px 70px -14px var(--brand-glow); border: 5px solid #fff;
}
.hero-portrait::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  filter: blur(30px); z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-float-card {
  position: absolute; display: flex; align-items: center; gap: 11px; padding: 13px 17px; border-radius: 16px; z-index: 3;
  animation: floatCard 4s var(--ease) infinite alternate;
}
.hero-float-card .hfc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex-shrink: 0; }
.hero-float-card .hfc-icon svg { width: 20px; height: 20px; }
.hero-float-card strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--text); }
.hero-float-card span { font-size: 0.76rem; color: var(--text-3); }
.hfc-1 { top: 12%; left: -6%; animation-delay: -1s; }
.hfc-2 { bottom: 14%; right: -8%; }
@keyframes floatCard { to { transform: translateY(-12px); } }

/* Track band under hero */
.track-band { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--brand) 3%, transparent); }
.track-band p { text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--text-2); font-size: clamp(0.85rem, 1.4vw, 1.02rem); margin: 0; }
.track-band .sep { color: var(--brand); margin: 0 6px; }

/* legacy trust-row (used on other pages) */
.trust-row { display: flex; align-items: center; gap: 26px; margin-top: 42px; flex-wrap: wrap; color: var(--text-3); font-size: 0.85rem; }
.trust-row strong { color: var(--text); font-family: var(--font-display); }

/* ---------- Stat counters ------------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 24px; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--brand); letter-spacing: -0.03em; }
.stat .lbl { color: var(--text-2); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Cards -------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.card-link svg { width: 16px !important; height: 16px !important; flex-shrink: 0; transition: transform 0.3s; }
.card:hover .card-link svg, .post:hover .card-link svg { transform: translateX(4px); }

/* ---------- Marquee ------------------------------------------------------ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollX 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Portfolio ---------------------------------------------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 100px; font-family: var(--font-display); font-weight: 500; font-size: 0.88rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--glass-border); transition: 0.3s var(--ease); }
.filter-btn.active, .filter-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }

/* Browser-frame project card */
.proj-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.browser-frame { position: relative; background: #e9eaee; border-radius: 12px 12px 0 0; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e4e5ea; border-bottom: 1px solid #d5d6dc; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 0.74rem; color: var(--text-3); font-family: var(--font-b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.browser-url svg { width: 11px; height: 11px; flex-shrink: 0; }
.browser-view { position: relative; height: 260px; overflow: hidden; background: #fff; }
.browser-view .shot { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; will-change: transform; }
.browser-view .no-shot { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-600), #2a1a3e); color: rgba(255,255,255,0.9); font-family: var(--font-display); font-weight: 700; }
.browser-view .no-shot svg { width: 54px; height: 54px; }
/* subtle hint that it scrolls */
.browser-view::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -30px 40px -20px rgba(0,0,0,0.12); }

.proj-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.proj-body .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.proj-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.proj-cat { font-size: 0.72rem; color: var(--brand); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.proj-body h3 { font-size: 1.18rem; margin: 2px 0 8px; }
.proj-body p { color: var(--text-2); font-size: 0.9rem; line-height: 1.55; margin-bottom: 14px; flex: 1; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.proj-tech span { font-size: 0.72rem; padding: 4px 10px; border-radius: 100px; background: var(--surface); border: 1px solid var(--glass-border); color: var(--text-2); font-weight: 500; }
.proj-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.proj-footer .mobile-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--text-3); }
.proj-footer .mobile-badge svg { width: 14px; height: 14px; }
.proj-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--brand); }
.proj-link svg { width: 15px; height: 15px; transition: transform 0.3s; }
.proj-card:hover .proj-link svg { transform: translateX(3px); }

.work .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,15,0.9), transparent 55%); opacity: 0; display: flex; align-items: flex-end; padding: 24px; transition: opacity 0.4s; }
.work:hover .overlay { opacity: 1; }
.work:hover .work-thumb img, .work:hover .work-thumb .ph { transform: scale(1.06); }
.work-thumb img, .work-thumb .ph { transition: transform 0.6s var(--ease); }

/* ---------- Testimonials ------------------------------------------------- */
.testi-card { padding: 34px; height: 100%; display: flex; flex-direction: column; }
.testi-card .stars { color: var(--brand); display: flex; gap: 3px; margin-bottom: 14px; }
.testi-card blockquote { font-size: 1.08rem; color: var(--text); line-height: 1.55; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testi-author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7b61ff); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; }
.testi-author .nm { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.testi-author .rl { color: var(--text-3); font-size: 0.82rem; }

/* ---------- Pricing ------------------------------------------------------ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.price-card { padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--brand); border-width: 1.5px; box-shadow: 0 24px 70px -20px var(--brand-glow); }
.price-card.featured::before { content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 6px 16px; border-radius: 100px; box-shadow: 0 6px 18px -4px var(--brand-glow); white-space: nowrap; }
.price-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand); margin-bottom: 18px; }
.price-icon svg { width: 26px; height: 26px; }
.price-card .plan { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.24rem; }
.price-card .plan-sub { color: var(--text-3); font-size: 0.84rem; font-style: italic; margin: 4px 0 14px; }
.price-card .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; margin: 6px 0 2px; letter-spacing: -0.03em; color: var(--text); }
.price-card .amt small { font-size: 0.82rem; font-weight: 500; color: var(--text-3); display: block; margin-top: 2px; letter-spacing: 0.02em; }
.price-card .plan-desc { color: var(--text-2); font-size: 0.9rem; margin: 14px 0 12px; line-height: 1.55; }
.price-card .delivery { font-size: 0.82rem; color: var(--text-3); margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.price-card .delivery svg { width: 15px; height: 15px; color: var(--brand); }
.price-divider { height: 1px; background: var(--line); margin: 20px 0; }
.price-card ul { margin: 0 0 22px; display: flex; flex-direction: column; gap: 13px; }
.price-card li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; line-height: 1.45; }
.price-card li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.price-bonus { padding: 13px 15px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 7%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); margin-bottom: 20px; font-size: 0.85rem; color: var(--text-2); line-height: 1.45; display: flex; gap: 9px; }
.price-bonus svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; width: 100%; }
.domain-note { display: flex; gap: 14px; padding: 22px 26px; align-items: flex-start; }
.domain-note svg { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.domain-note p { color: var(--text-2); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* ---------- FAQ / Accordion ---------------------------------------------- */
.accordion { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc-item { overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.acc-head .plus { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.acc-head .plus::before, .acc-head .plus::after { content: ''; position: absolute; background: var(--brand); border-radius: 2px; transition: transform 0.4s var(--ease); }
.acc-head .plus::before { width: 14px; height: 2px; top: 12px; left: 6px; }
.acc-head .plus::after { width: 2px; height: 14px; top: 6px; left: 12px; }
.acc-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.acc-body p { padding: 0 26px 24px; color: var(--text-2); }

/* ---------- Blog --------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.post { overflow: hidden; }
.post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-600), #24203a); position: relative; overflow: hidden; }
.post-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.9); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.post-body { padding: 26px; }
.post-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-3); margin-bottom: 12px; }
.post-meta .cat { color: var(--brand); font-weight: 600; }
.post-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.post-body p { color: var(--text-2); font-size: 0.92rem; }

/* ---------- Tech stack --------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.tech-chip { padding: 26px 18px; text-align: center; transition: transform 0.4s var(--ease), border-color 0.3s; }
.tech-chip:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.tech-chip .ic { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--brand); }
.tech-chip .nm { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tech-chip .cat { font-size: 0.76rem; color: var(--text-3); margin-top: 3px; }

/* ---------- Contact form ------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.88rem; margin-bottom: 8px; color: var(--text-2); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.96rem;
  background: var(--surface); border: 1px solid var(--glass-border); color: var(--text); transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info-item .ci { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.contact-info-item h4 { font-family: var(--font-display); font-size: 1rem; }
.contact-info-item p { color: var(--text-2); font-size: 0.92rem; }

/* ---------- CTA band ----------------------------------------------------- */
.cta-band { padding: clamp(48px, 7vw, 88px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
.cta-band p { color: var(--text-2); max-width: 540px; margin: 16px auto 30px; font-size: 1.08rem; }

/* ---------- Floating CTA ------------------------------------------------- */
.floating-cta {
  position: fixed; bottom: 158px; right: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px;
  background: var(--brand); color: #fff; border-radius: 100px; font-family: var(--font-display); font-weight: 600;
  box-shadow: 0 12px 34px -6px var(--brand-glow); transform: translateY(120px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s, box-shadow 0.3s;
}
.floating-cta.show { transform: translateY(0); opacity: 1; }
.floating-cta:hover { box-shadow: 0 18px 44px -6px var(--brand-glow); transform: translateY(-3px); }
.floating-cta svg { width: 18px; height: 18px; animation: pulseArrow 1.8s var(--ease) infinite; }
@keyframes pulseArrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 90px; right: 26px; z-index: 91; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.5); transition: transform 0.35s var(--ease), box-shadow 0.3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 16px 38px -6px rgba(37, 211, 102, 0.6); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: waPulse 2s var(--ease) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* Review / trust elements */
.review-card { padding: 30px; height: 100%; display: flex; flex-direction: column; }
.review-card .stars { color: #f5b301; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { color: var(--text); font-size: 1rem; line-height: 1.6; flex: 1; }
.review-card .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7b61ff); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.review-card .who .nm { font-family: var(--font-display); font-weight: 600; font-size: 0.94rem; }
.review-card .who .rl { color: var(--text-3); font-size: 0.8rem; }
.google-badge { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 100px; }
.google-badge .g { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.google-badge .g b:nth-child(1){color:#4285F4}.google-badge .g b:nth-child(2){color:#EA4335}.google-badge .g b:nth-child(3){color:#FBBC05}.google-badge .g b:nth-child(4){color:#4285F4}.google-badge .g b:nth-child(5){color:#34A853}.google-badge .g b:nth-child(6){color:#EA4335}
.reviews-trust-container { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.reviews-trust-container a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 100px; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; background: var(--surface); border: 1px solid var(--glass-border); transition: 0.3s var(--ease); }
.reviews-trust-container a:hover { border-color: var(--brand); transform: translateY(-3px); color: var(--brand); }

/* Map embed */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.1); }

/* Feature list (rich content) */
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature-list li svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.feature-list li strong { color: var(--text); font-family: var(--font-display); font-weight: 600; }

/* Two-col rich content */
.rich-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .rich-split { grid-template-columns: 1fr; gap: 32px; } }

/* Scroll-to-top */
.to-top { position: fixed; bottom: 26px; left: 26px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--glass-border); color: var(--text); backdrop-filter: blur(12px); opacity: 0; transform: scale(0.7); transition: 0.4s var(--ease); }
.to-top.show { opacity: 1; transform: scale(1); }
.to-top:hover { color: var(--brand); transform: scale(1.1); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { padding: 80px 0 30px; border-top: 1px solid var(--line); margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { color: var(--text-2); margin: 18px 0 22px; max-width: 340px; font-size: 0.95rem; line-height: 1.65; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-2); font-size: 0.94rem; padding: 7px 0; transition: color 0.25s, transform 0.25s; }
.footer-col a:hover { color: var(--brand); transform: translateX(4px); }
.footer-contact a { display: flex; align-items: center; gap: 10px; }
.footer-contact a svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--brand); }
.footer-contact a:hover { transform: none; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--glass-border); color: var(--text-2); transition: 0.3s var(--ease); padding: 0; }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.86rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- Page hero (interior) ---------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + 70px); padding-bottom: 20px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
.page-hero p { color: var(--text-2); max-width: 600px; margin: 18px auto 0; font-size: 1.1rem; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Legal / prose ------------------------------------------------ */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 14px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 8px; }

/* ---------- 404 ---------------------------------------------------------- */
.err-wrap { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: var(--header-h); }
.err-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 14rem); line-height: 1; letter-spacing: -0.05em; }

/* Global inline-SVG safety: any svg inside a text button/link stays icon-sized */
.btn > svg, a.card-link > svg, .post-body a > svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.btn-lg > svg { width: 18px; height: 18px; }

/* About page photo */
.about-photo { position: relative; width: min(420px, 84vw); }
.about-photo > img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  border: 6px solid #fff; box-shadow: 0 30px 80px -20px var(--brand-glow);
  background: #fff;
}
.about-photo::after {
  content: ''; position: absolute; inset: -14px -14px 30px 30px; border-radius: 32px; z-index: -1;
  border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.about-photo-badge {
  position: absolute; bottom: 18px; right: -18px; display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 16px;
}
.about-photo-badge .apb-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.about-photo-badge .apb-icon svg { width: 22px; height: 22px; }
.about-photo-badge strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.about-photo-badge span { font-size: 0.78rem; color: var(--text-3); }

/* ---------- Reveal animations (fallback if GSAP absent) ------------------ */
.reveal { opacity: 0; transform: translateY(30px); }
.is-visible .reveal, .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Education timeline ------------------------------------------ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 20%, transparent)); }
.tl-item { position: relative; padding: 0 0 34px 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.tl-year { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--brand); letter-spacing: 0.04em; margin-bottom: 6px; padding: 3px 12px; border-radius: 100px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.tl-item h3 { font-size: 1.12rem; margin: 4px 0 4px; }
.tl-item p { color: var(--text-2); font-size: 0.93rem; margin: 0; }

/* ---------- Technologies groups ----------------------------------------- */
.tech-group { margin-bottom: 40px; }
.tech-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tech-group-head .tg-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand); flex-shrink: 0; }
.tech-group-head .tg-icon svg { width: 24px; height: 24px; }
.tech-group-head h3 { font-size: 1.2rem; margin: 0; }
.tech-group-head p { color: var(--text-3); font-size: 0.85rem; margin: 2px 0 0; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 11px; }
.tech-pill { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--glass-border); font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--text); transition: 0.3s var(--ease); }
.tech-pill:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-3px); color: var(--brand); }
.tech-pill svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Blog ---------- (enhanced) */
.blog-featured { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: stretch; margin-bottom: 40px; }
.blog-featured .post-thumb { aspect-ratio: auto; min-height: 320px; }
.blog-featured .post-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 12px 0; }
.post .post-thumb .ph { background-size: cover; }
.post-thumb .thumb-icon { position: absolute; inset: 0; display: grid; place-items: center; }
.post-thumb .thumb-icon svg { width: 60px; height: 60px; color: rgba(255,255,255,0.9); }
.post-card-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); padding: 6px 13px; border-radius: 100px; }
.read-time { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Blog detail / article --------------------------------------- */
.article { max-width: 800px; margin: 0 auto; }
.article-hero { max-width: 860px; margin: 0 auto; text-align: center; }
.article-meta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: var(--text-3); font-size: 0.88rem; margin: 18px 0 0; }
.article-meta .cat { color: var(--brand); font-weight: 600; }
.article-cover { aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden; margin: 40px 0; position: relative; background: linear-gradient(135deg, var(--brand-600), #2a1a3e); display: grid; place-items: center; }
.article-cover svg { width: 90px; height: 90px; color: rgba(255,255,255,0.9); }
.article-body { font-size: 1.06rem; line-height: 1.8; color: var(--text-2); }
.article-body h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--text); }
.article-body h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body ul { padding-left: 24px; list-style: disc; margin-bottom: 18px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote { border-left: 3px solid var(--brand); padding: 6px 0 6px 22px; margin: 24px 0; font-family: var(--font-voice, Georgia), serif; font-style: italic; font-size: 1.15rem; color: var(--text); }
.article-body strong { color: var(--text); }
.article-share { display: flex; align-items: center; gap: 12px; margin: 40px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share span { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.article-toc { padding: 24px 28px; margin-bottom: 34px; }
.article-toc h4 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.article-toc a { display: block; color: var(--text-2); padding: 6px 0; font-size: 0.94rem; transition: color 0.25s, padding 0.25s; }
.article-toc a:hover { color: var(--brand); padding-left: 6px; }

@media (max-width: 800px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured .post-thumb { min-height: 220px; } }

/* ---------- Responsive --------------------------------------------------- */
/* ======================================================================
   RESPONSIVE — tablet & mobile optimization
   ====================================================================== */

/* ---- Tablet (≤980px) ---- */
@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-stats { justify-content: center; }
  .trust-row { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .blog-featured { grid-template-columns: 1fr; }
  .article-body { font-size: 1rem; }
}

/* ---- Large phone (≤768px) ---- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container { padding: 0 18px; }

  /* Header: give the nav bar room, shrink brand */
  .nav-inner { margin-inline: 12px; padding: 8px 8px 8px 12px; }
  .brand-logo img { width: 36px; height: 36px; }
  .brand-logo .bt { font-size: 0.95rem; }
  .brand-logo .bt small { font-size: 0.56rem; letter-spacing: 0.14em; }
  .nav-actions .btn { padding: 9px 15px !important; font-size: 0.85rem; }

  /* Typography scale-down */
  .hero h1 { font-size: clamp(2rem, 8vw, 2.9rem); }
  .hero p.lead { font-size: 1rem; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .page-hero p { font-size: 1rem; }
  .article-body h2 { font-size: 1.35rem; }
  .cta-band h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Cards & grids single/looser */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .price-card.featured { margin-top: 12px; }
  .card { padding: 26px; }
  .testi-card, .review-card { padding: 26px; }

  /* Trust row stacks */
  .trust-row { gap: 14px 22px; font-size: 0.82rem; }

  /* Hero visual: hide floating cards (they'd overlap), center stats */
  .hero-float-card { display: none; }
  .hero-stats { gap: 16px; margin-top: 30px; }
  .hero-stats .hs strong { font-size: 1.3rem; }
  .about-photo { margin-bottom: 20px; }
  .about-photo-badge { right: 10px; bottom: 10px; }

  /* Footer contact spacing */
  .footer-contact a { font-size: 0.9rem; }
}

/* ---- Small phone (≤560px) ---- */
@media (max-width: 560px) {
  :root { --header-h: 62px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  .nav-inner { margin-inline: 10px; }
  .brand-logo .bt small { display: none; }         /* hide subtitle to save width */
  .nav-actions .btn { padding: 8px 14px !important; }

  .hero { padding-top: calc(var(--header-h) + 30px); min-height: auto; padding-bottom: 30px; }
  .hero-portrait { width: min(260px, 70vw); }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); line-height: 1.12; }
  .eyebrow { font-size: 0.7rem; padding: 6px 12px; }
  .hero-stats { gap: 12px; }
  .hero-stats .hs-div { display: none; }
  .hero-stats .hs { flex: 1; min-width: 90px; align-items: center; padding: 12px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--glass-border); }
  .track-band p { font-size: 0.78rem; line-height: 1.6; }
  .track-band .sep { display: block; height: 0; overflow: hidden; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 22px 14px; }
  .stat .num { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .stat .lbl { font-size: 0.82rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Floating controls: keep clear of each other */
  .floating-cta { display: none; }                 /* declutter on tiny screens; WA + top remain */
  .wa-float { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 27px; height: 27px; }
  .to-top { bottom: 20px; left: 16px; width: 44px; height: 44px; }

  .btn-lg { padding: 14px 26px; font-size: 0.95rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .cta-band { padding: 40px 24px; }
  .cta-band .hero-cta { flex-direction: column; }
  .cta-band .hero-cta .btn { width: 100%; }

  .mobile-nav { padding: 30px 26px; }
  .mobile-nav a { font-size: 1.35rem; padding: 8px 0; }

  .article-cover { aspect-ratio: 16/10; }
  .article-cover svg { width: 60px; height: 60px; }
  .acc-head { padding: 18px 20px; font-size: 0.98rem; }
  .acc-body p { padding: 0 20px 20px; }

  .price-card { padding: 30px 24px; }
  .domain-note { flex-direction: column; gap: 12px; padding: 22px; }
  .tech-group-head h3 { font-size: 1.08rem; }
}

/* ---- Very small (≤380px) ---- */
@media (max-width: 380px) {
  .brand-logo .bt { font-size: 0.88rem; }
  .nav-actions .btn { padding: 7px 12px !important; font-size: 0.8rem; }
  .hero h1 { font-size: 1.7rem; }
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-portrait .ring-badge { animation: none; }
}

/* ---------- Minimal grid (replaces Bootstrap — used on contact/testimonials) */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"] { padding: 0 12px; flex: 0 0 100%; max-width: 100%; }
.row.g-4 { row-gap: 24px; }
@media (min-width: 768px) {
  .row > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
  .row > .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
