/* ============================================
   Webblyfy — Neutral / Apple-inspired design
   Light + Dark themes, system fonts, no gradients
   ============================================ */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #fbfbfd;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-faint: #86868b;
  --accent: #1d1d1f;
  --accent-hover: #424245;
  --link: #0066cc;
  --link-hover: #0040a0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-border: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #161618;
  --surface-alt: #1d1d1f;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-faint: #6e6e73;
  --accent: #f5f5f7;
  --accent-hover: #ffffff;
  --link: #2997ff;
  --link-hover: #6cb6ff;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --nav-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--link); }
a.link:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--text); color: var(--bg); }

/* ================================
   Layout
   ================================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}
.container-wide { max-width: 1280px; }
.container-narrow { max-width: 760px; }

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

/* ================================
   Navigation
   ================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.25s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-brand img,
.nav-brand .logo-mark {
  height: 26px;
  width: 26px;
  display: block;
}
.footer-brand .logo-mark { height: 22px; width: 22px; }
.dash-side-brand .logo-mark { height: 18px; width: 18px; }
img.logo-mark { object-fit: contain; }
[data-theme="light"] img.logo-mark { filter: invert(1); }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.15s ease;
  font-weight: 400;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 500; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; stroke: var(--text); fill: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 16px; height: 16px; stroke: var(--text); }

/* Hide the mobile-only nav drawer on desktop by default.
   The mobile media query below re-enables it (when .nav is .open). */
.nav-mobile { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-mobile {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 24px;
    gap: 4px;
  }
  .nav-mobile { display: none; }
  .nav-mobile a {
    padding: 12px 4px;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile a:last-child { border-bottom: none; }
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-alt); }
.btn-link {
  color: var(--link);
  padding: 0;
  font-size: 14.5px;
  font-weight: 400;
}
.btn-link::after {
  content: "›";
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.btn-link:hover { color: var(--link-hover); }
.btn-link:hover::after { transform: translateX(3px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.lede {
  font-size: 21px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 640px;
}

/* ================================
   Hero
   ================================ */
.hero {
  padding: 88px 0 96px;
  text-align: center;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede { margin: 0 auto 32px; }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-image {
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .hero { padding: 56px 0 64px; }
}

/* ================================
   Cards
   ================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Visual cards (with image) */
.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.visual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.visual-card-image {
  aspect-ratio: 16 / 10;
  background: var(--surface-alt);
  overflow: hidden;
}
.visual-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.visual-card:hover .visual-card-image img { transform: scale(1.04); }
.visual-card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.visual-card .meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.visual-card h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.3; }
.visual-card h3 a:hover { color: var(--link); }
.visual-card .excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.visual-card .footer-link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--link);
  font-weight: 500;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================================
   Pricing
   ================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px;
  position: relative;
  transition: all 0.2s ease;
}
.plan:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.plan.featured {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.plan.featured .plan-name,
.plan.featured .plan-desc,
.plan.featured ul li { color: var(--bg); opacity: 0.86; }
.plan-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.plan-name {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0;
}
.plan-price {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}
.plan-price small {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}
.plan.featured .plan-price small { color: var(--bg); opacity: 0.7; }
.plan-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan.featured .plan-desc { border-color: rgba(255,255,255,0.16); }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan li {
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.plan li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
  margin-top: 3px;
}
.plan.featured li svg { stroke: var(--bg); }
.plan .btn { width: 100%; }
.plan.featured .btn-primary { background: var(--bg); color: var(--text); }

/* ================================
   Stats
   ================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  padding: 32px 22px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
.stat-num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ================================
   Feature grid (alternating)
   ================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse > div:first-child { order: 2; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-row.reverse > div:first-child { order: 0; }
}
.feature-row .image-block {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}
.feature-row .image-block img { width: 100%; height: 100%; object-fit: cover; }
.feature-row h2 { margin-bottom: 16px; }
.feature-row p {
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ================================
   Testimonials
   ================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 22px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ================================
   CTA banner
   ================================ */
.cta-banner {
  background: var(--surface-alt);
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.5;
}

/* ================================
   Article (blog post)
   ================================ */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px 80px;
}
.article-back {
  display: inline-block;
  font-size: 14px;
  color: var(--link);
  margin-bottom: 24px;
}
.article-back::before { content: "‹ "; }
.article .tag { margin-bottom: 16px; }
.article h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.article-meta span:not(:last-child)::after { content: " ·"; }
.article-hero {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 40px;
  background: var(--surface-alt);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.article-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.article-body h2 {
  font-size: 28px;
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}
.article-body h3 { font-size: 21px; margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; line-height: 1.6; }
.article-body strong { font-weight: 600; }

/* ================================
   Blog share toolbar
   ================================ */
.share-bar {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.share-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}
.share-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.share-btn.share-x:hover { background: #0a0a0c; color: #fff; border-color: #0a0a0c; }
.share-btn.share-linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn.share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.share-email:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.share-btn.share-copy:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.share-btn.share-copy svg { stroke: currentColor; fill: none; stroke-width: 1.7; }

.share-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.share-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text);
}
.share-btn.share-copy.copied .share-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px) {
  .share-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ================================
   Forms
   ================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--text);
}
textarea.form-control { min-height: 140px; resize: vertical; }

/* ================================
   Contact
   ================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info-list { list-style: none; }
.contact-info-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list h4 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-info-list a, .contact-info-list span { color: var(--text); font-size: 16px; }

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand-block .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 16px;
}
.footer-brand-block .footer-brand img { height: 22px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.footer-col h5 {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.footer-socials a:hover { color: var(--text); border-color: var(--border-strong); }
.footer-socials svg { width: 14px; height: 14px; }

/* ================================
   Apps page
   ================================ */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.app-card-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.app-card-mark svg { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.app-card-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--link);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.app-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.app-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}
.app-card-cta {
  font-size: 14.5px;
  color: var(--link);
  font-weight: 500;
}

.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
@media (max-width: 880px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero-image {
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface-alt);
}
.app-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.app-hero h2 { margin-bottom: 16px; }
.app-hero p { font-size: 17px; line-height: 1.55; margin-bottom: 20px; }

/* ================================
   Dashboard preview
   ================================ */
.dash-shell {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 620px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 880px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}
.dash-side {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
}
.dash-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}
.dash-side-brand img { height: 18px; }
.dash-side-section { margin-top: 14px; }
.dash-side-label {
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 10px;
  margin-bottom: 6px;
  font-weight: 600;
}
.dash-side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.dash-side-item:hover { background: var(--surface-alt); color: var(--text); }
.dash-side-item.active { background: var(--surface); color: var(--text); font-weight: 500; }
.dash-side-item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.dash-main { padding: 24px 28px; overflow-y: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.dash-header h2 { font-size: 22px; }
.dash-header .small { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.dash-search {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  color: var(--text);
  font-size: 13px;
  min-width: 220px;
}
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.dash-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.dash-kpi-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.dash-kpi-value { font-size: 24px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.dash-kpi-delta { font-size: 12px; color: var(--success); }
.dash-kpi-delta svg { width: 11px; height: 11px; }
.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
@media (max-width: 880px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.dash-panel h4 { font-size: 14px; margin-bottom: 14px; }
.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.dash-row:last-child { border-bottom: none; }
.dash-status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 500;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.dash-status.success { background: rgba(22,163,74,0.1); color: var(--success); border-color: rgba(22,163,74,0.2); }
.dash-status.info { background: rgba(0,102,204,0.1); color: var(--link); border-color: rgba(0,102,204,0.2); }
.dash-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--border);
}
.dash-chart-bar {
  flex: 1;
  background: var(--text);
  border-radius: 4px 4px 0 0;
  min-height: 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.dash-chart-bar:hover { opacity: 1; }

/* ================================
   Misc
   ================================ */
.divider { height: 1px; background: var(--border); border: none; margin: 60px 0; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 56px; }

/* ================================
   GridRank cycling demo inside MacBook
   ================================ */
.gridrank-demo {
  --g-blue: #4285F4;
  --g-red: #EA4335;
  --g-yellow: #FBBC04;
  --g-green: #34A853;
  --g-blue-d: #1a73e8;
  --g-blue-soft: #E8F0FE;
  --g-grey-50: #f8f9fa;
  --g-grey-100: #f1f3f4;
  --g-grey-200: #e8eaed;
  --g-grey-300: #dadce0;
  --g-grey-600: #5f6368;
  --g-grey-900: #202124;
  --rank-1: #34A853;
  --rank-2: #66BB6A;
  --rank-3: #FBBC04;
  --rank-4: #FF9800;
  --rank-5: #EA4335;
  --rank-x: #5F6368;
  --md-1: 0 1px 2px rgba(60,64,67,0.08), 0 1px 3px rgba(60,64,67,0.05);
  --md-2: 0 1px 2px rgba(60,64,67,0.10), 0 2px 6px rgba(60,64,67,0.08);
  --md-3: 0 4px 8px rgba(60,64,67,0.10), 0 1px 3px rgba(60,64,67,0.06);
  --gr-ease: cubic-bezier(0.4, 0, 0.2, 1);

  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  /* 3D stage for the spin + lid open animation */
  perspective: 1800px;
  perspective-origin: 50% 40%;
}
.gridrank-demo * { box-sizing: border-box; }
/* MacBook spins in from the back, then lands facing forward */
.gridrank-demo .macbook {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10.6;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.18));
  transform-style: preserve-3d;
  transform: rotateY(180deg) rotateX(-8deg);
  animation: gr-spin 1.6s cubic-bezier(0.32, 0.94, 0.6, 1) 0.2s forwards;
}
[data-theme="dark"] .gridrank-demo .macbook { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)); }
@keyframes gr-spin {
  0%   { transform: rotateY(180deg) rotateX(-8deg); }
  55%  { transform: rotateY(-25deg) rotateX(-10deg); }
  100% { transform: rotateY(0deg) rotateX(0deg); }
}
/* Lid opens after the spin completes (front view) */
.gridrank-demo .lid {
  position: relative; flex: 1;
  background: linear-gradient(180deg, #d8dadd 0%, #c4c7cc 50%, #b8bbc1 100%);
  border-radius: 12px 12px 3px 3px;
  padding: 5px 5px 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
  transform-origin: 50% 100%;
  transform: rotateX(-180deg);
  animation: gr-lid-open 3s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}
@keyframes gr-lid-open {
  0%   { transform: rotateX(-180deg); }
  100% { transform: rotateX(0deg); }
}
/* App content fades in once the lid is open, so scenes don't play in the closed laptop */
.gridrank-demo .app {
  opacity: 0;
  animation: gr-app-on 0.6s ease 4.4s forwards;
}
@keyframes gr-app-on { to { opacity: 1; } }
[data-theme="dark"] .gridrank-demo .lid {
  background: linear-gradient(180deg, #3a3d44 0%, #2a2c33 50%, #1f2127 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.gridrank-demo .display {
  position: relative; width: 100%; height: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.gridrank-demo .base {
  position: relative;
  width: 104%; margin-left: -2%;
  height: 18px;
  background: linear-gradient(180deg, #c4c7cc 0%, #b0b3b9 30%, #98a0a6 75%, #7a8088 100%);
  border-radius: 3px 3px 14px 14px / 3px 3px 24px 24px;
  margin-top: -1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.15), 0 4px 2px rgba(0,0,0,0.06);
}
[data-theme="dark"] .gridrank-demo .base {
  background: linear-gradient(180deg, #3a3d44 0%, #2a2c33 30%, #1f2127 75%, #0e0f12 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.5), 0 4px 2px rgba(0,0,0,0.4);
}
.gridrank-demo .base::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14%; height: 5px;
  background: linear-gradient(180deg, #6e747a, #4a4e54);
  border-radius: 0 0 6px 6px;
}
[data-theme="dark"] .gridrank-demo .base::before { background: linear-gradient(180deg, #0a0b0d, #050507); }
.gridrank-demo .base::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 24%; height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
}
[data-theme="dark"] .gridrank-demo .base::after { background: rgba(0,0,0,0.35); }

/* Browser */
.gridrank-demo .browser {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: #fff;
}
.gridrank-demo .chrome {
  height: 26px; background: #f1f3f4;
  border-bottom: 1px solid var(--g-grey-200);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px;
  flex-shrink: 0;
}
.gridrank-demo .traffic { display: flex; gap: 5px; }
.gridrank-demo .light { width: 8px; height: 8px; border-radius: 50%; }
.gridrank-demo .light.r { background: #ff5f57; }
.gridrank-demo .light.y { background: #febc2e; }
.gridrank-demo .light.g { background: #28c840; }
.gridrank-demo .urlbar {
  flex: 1; height: 18px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--g-grey-300);
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--g-grey-600);
  max-width: 380px;
  margin: 0 auto;
}
.gridrank-demo .urlbar .lock { color: var(--g-green); font-size: 8px; }

/* App */
.gridrank-demo .app {
  position: relative; flex: 1;
  background: #fff;
  overflow: hidden;
}
.gridrank-demo .progress-wrap {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  display: flex; gap: 2px; z-index: 50;
  background: var(--g-grey-100);
}
.gridrank-demo .progress-seg { flex: 1; height: 2px; background: transparent; overflow: hidden; }
.gridrank-demo .progress-seg .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--g-blue), var(--g-green)); }

.gridrank-demo .site-header {
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--g-grey-200);
  background: #fff;
}
.gridrank-demo .brand-row { display: flex; align-items: center; gap: 7px; }
.gridrank-demo .brand-mark-flat { width: 18px; height: 18px; }
.gridrank-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  -webkit-mask: url("../img/webblyfy-mark.png") center / contain no-repeat;
          mask: url("../img/webblyfy-mark.png") center / contain no-repeat;
}
.gridrank-mark > i { display: block; }
.gridrank-mark > i:nth-child(1) { background: #4285F4; }
.gridrank-mark > i:nth-child(2) { background: #EA4335; }
.gridrank-mark > i:nth-child(3) { background: #34A853; }
.gridrank-mark > i:nth-child(4) { background: #FBBC04; }
.gridrank-demo .brand-name-text {
  font-weight: 700; font-size: 12px;
  color: var(--g-grey-900);
  letter-spacing: -0.01em;
}
.gridrank-demo .nav-row { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--g-grey-600); }
.gridrank-demo .nav-row a { color: var(--g-grey-600); text-decoration: none; cursor: default; }
.gridrank-demo .credit-chip {
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--g-blue-soft);
  color: var(--g-blue-d);
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 9px; font-weight: 600;
  border: 1px solid rgba(66,133,244,0.2);
}

.gridrank-demo .stage {
  position: absolute; top: 36px; bottom: 22px; left: 0; right: 0;
  overflow: hidden;
}
.gridrank-demo .demo-controls {
  position: absolute; bottom: 0; left: 0; right: 0; height: 22px;
  background: var(--g-grey-50);
  border-top: 1px solid var(--g-grey-200);
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
}
.gridrank-demo .demo-caption { font-size: 10px; color: var(--g-grey-600); }
.gridrank-demo .demo-caption b { color: var(--g-grey-900); font-weight: 600; }

.gridrank-demo .scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 22px;
  opacity: 0;
  transition: opacity .4s var(--gr-ease);
  pointer-events: none;
}
.gridrank-demo .scene.active { opacity: 1; pointer-events: auto; }
.gridrank-demo .eyebrow {
  font-size: 8.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-blue-d);
  margin-bottom: 10px;
  font-weight: 600;
}

.gridrank-demo .gsearch {
  width: 320px; max-width: 100%;
  height: 34px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid var(--g-grey-300);
  display: flex; align-items: center;
  padding: 0 14px 0 12px;
  gap: 9px;
  box-shadow: var(--md-1);
}
.gridrank-demo .gsearch .gicon { width: 13px; height: 13px; flex-shrink: 0; color: var(--g-grey-600); }
.gridrank-demo .gsearch .gtxt { flex: 1; font-size: 12px; color: var(--g-grey-900); }
.gridrank-demo .gsearch .gtxt::after, .gridrank-demo .typed-text::after {
  content: "|"; color: var(--g-blue);
  animation: gr-blink 0.85s steps(2) infinite;
  margin-left: 1px;
}
@keyframes gr-blink { 50% { opacity: 0; } }

.gridrank-demo .question-line {
  margin-top: 14px;
  font-weight: 600; font-size: 18px;
  color: var(--g-grey-900);
  text-align: center; letter-spacing: -0.02em; line-height: 1.2;
  max-width: 360px;
}
.gridrank-demo .question-line .red { color: var(--g-red); }
.gridrank-demo .question-sub {
  margin-top: 7px;
  font-size: 11px; color: var(--g-grey-600);
  text-align: center; max-width: 320px; line-height: 1.45;
}
.gridrank-demo .brand-mark-big { width: 80px; height: 80px; }
.gridrank-demo .brand-name {
  font-weight: 600; font-size: 22px;
  color: var(--g-grey-900);
  margin-top: 10px; letter-spacing: -0.025em;
}
.gridrank-demo .brand-name .accent { color: var(--g-blue-d); }
.gridrank-demo .brand-tagline { margin-top: 6px; font-size: 11px; color: var(--g-grey-600); }

.gridrank-demo .tool-form {
  width: 380px; max-width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.gridrank-demo .tool-form-full { grid-column: 1/-1; }
.gridrank-demo .tool-input-group { display: flex; flex-direction: column; }
.gridrank-demo .tool-label {
  font-size: 8px; font-weight: 600; color: var(--g-grey-600);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em;
}
.gridrank-demo .tool-input {
  height: 26px; border-radius: 6px;
  border: 1px solid var(--g-grey-300);
  background: #fff; padding: 0 9px;
  font-size: 10.5px; color: var(--g-grey-900);
  display: flex; align-items: center;
}
.gridrank-demo .grid-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.gridrank-demo .grid-option {
  padding: 5px;
  border-radius: 5px;
  border: 1.5px solid var(--g-grey-300);
  background: #fff;
  text-align: center;
  font-size: 9.5px; font-weight: 600;
  color: var(--g-grey-600);
}
.gridrank-demo .grid-option .pts { display: block; font-size: 7.5px; font-weight: 400; margin-top: 1px; }
.gridrank-demo .grid-option.selected {
  border-color: var(--g-blue-d);
  background: var(--g-blue-soft);
  color: var(--g-blue-d);
}
.gridrank-demo .scan-btn {
  grid-column: 1/-1; margin-top: 3px; height: 28px;
  border-radius: 14px;
  background: var(--g-blue-d); color: #fff;
  font-weight: 600; font-size: 10.5px;
  display: flex; align-items: center; justify-content: center;
  gap: 5px; border: none; box-shadow: var(--md-2);
  cursor: pointer;
}

.gridrank-demo .scan-grid-wrap {
  display: grid; grid-template-columns: 170px 1fr;
  gap: 12px; align-items: center;
  width: 100%; max-width: 440px;
}
.gridrank-demo .scan-card {
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--g-grey-200);
  box-shadow: var(--md-1);
  padding: 7px;
  width: 100%;
}
.gridrank-demo .scan-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.gridrank-demo .scan-header .label {
  font-size: 8.5px; font-weight: 600;
  color: var(--g-green);
  display: flex; align-items: center; gap: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.gridrank-demo .scan-header .label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--g-green);
  box-shadow: 0 0 5px var(--g-green);
  animation: gr-pulse 1.2s infinite;
}
.gridrank-demo .scan-header.complete .label { color: var(--g-blue-d); }
.gridrank-demo .scan-header.complete .label::before { background: var(--g-blue-d); animation: none; }
@keyframes gr-pulse { 50% { opacity: 0.4; } }
.gridrank-demo .scan-header .progress-text { font-size: 8.5px; color: var(--g-grey-600); font-weight: 500; }
.gridrank-demo .scan-header .progress-text b { color: var(--g-grey-900); font-weight: 600; }

.gridrank-demo .map-bg {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 6px; overflow: hidden;
  background: #e8eef5;
}
.gridrank-demo .map-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80px 60px at 30% 30%, #d4e3d4, transparent 80%),
    radial-gradient(ellipse 70px 90px at 75% 60%, #cfdde9, transparent 80%),
    radial-gradient(ellipse 60px 80px at 20% 80%, #d4e3d4, transparent 80%);
  opacity: 0.6;
}
.gridrank-demo .map-streets { position: absolute; inset: 0; }
.gridrank-demo .map-streets::before,
.gridrank-demo .map-streets::after,
.gridrank-demo .map-streets > .s3 { content: ""; position: absolute; background: #fff; }
.gridrank-demo .map-streets::before { top: 38%; left: 0; right: 0; height: 5px; transform: rotate(-3deg); }
.gridrank-demo .map-streets::after { top: 0; bottom: 0; left: 55%; width: 5px; transform: rotate(2deg); }
.gridrank-demo .map-streets > .s3 { top: 0; bottom: 0; left: 20%; width: 3px; transform: rotate(-1deg); background: rgba(255,255,255,0.55); }
.gridrank-demo .map-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  z-index: 6; width: 16px; height: 24px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35));
}
.gridrank-demo .map-pin svg { display: block; width: 100%; height: 100%; }
.gridrank-demo .map-pin-shadow {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, 0);
  width: 10px; height: 3px; border-radius: 50%;
  background: rgba(0,0,0,0.25); z-index: 5; filter: blur(2px);
}
.gridrank-demo .grid-overlay {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr);
  gap: 3px; padding: 5px;
}
.gridrank-demo .cell {
  border-radius: 5px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 9px; font-weight: 700;
  transform: scale(0.6); opacity: 0;
  transition: transform 0.25s var(--gr-ease), opacity 0.25s var(--gr-ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.gridrank-demo .cell.filled { transform: scale(1); opacity: 1; }
.gridrank-demo .cell.r1 { background: var(--rank-1); }
.gridrank-demo .cell.r2 { background: var(--rank-2); }
.gridrank-demo .cell.r3 { background: var(--rank-3); color: var(--g-grey-900); }
.gridrank-demo .cell.r4 { background: var(--rank-4); }
.gridrank-demo .cell.r5 { background: var(--rank-5); }
.gridrank-demo .cell.rx { background: #5a6470; color: rgba(255,255,255,0.7); font-size: 8.5px; }

.gridrank-demo .result-side { display: flex; flex-direction: column; gap: 6px; }
.gridrank-demo .result-title { font-weight: 600; font-size: 12px; color: var(--g-grey-900); }
.gridrank-demo .result-desc { font-size: 10px; color: var(--g-grey-600); line-height: 1.45; }
.gridrank-demo .result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.gridrank-demo .stat {
  padding: 6px; border-radius: 6px;
  background: var(--g-grey-50);
  border: 1px solid var(--g-grey-200);
  text-align: center;
}
.gridrank-demo .stat .v {
  font-weight: 700; font-size: 14px;
  color: var(--g-grey-900);
  letter-spacing: -0.02em; line-height: 1;
}
.gridrank-demo .stat .v small { font-size: 9px; color: var(--g-grey-600); font-weight: 400; }
.gridrank-demo .stat .v.green { color: var(--g-green); }
.gridrank-demo .stat .v.red { color: var(--g-red); }
.gridrank-demo .stat .v.blue { color: var(--g-blue-d); }
.gridrank-demo .stat .l { font-size: 7.5px; color: var(--g-grey-600); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.gridrank-demo .insight {
  padding: 6px 8px; border-radius: 5px;
  background: #FEF3F2;
  border-left: 2px solid var(--g-red);
  font-size: 9px; color: var(--g-grey-900);
  line-height: 1.4;
  display: flex; gap: 5px; align-items: flex-start;
}
.gridrank-demo .insight .ic {
  flex-shrink: 0; width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--g-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 7.5px; font-weight: 700;
}
.gridrank-demo .insight b { color: var(--g-red); font-weight: 600; }

.gridrank-demo .endcard { text-align: center; display: flex; flex-direction: column; align-items: center; }
.gridrank-demo .endcard .brand-mark-big { width: 64px; height: 64px; }
.gridrank-demo .endcard .brand-name { font-size: 20px; margin-top: 8px; }
.gridrank-demo .sub-text {
  margin-top: 7px; max-width: 260px;
  font-size: 10.5px; color: var(--g-grey-600);
  text-align: center; line-height: 1.5;
}
.gridrank-demo .ext-fab {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 0 16px; height: 28px;
  border-radius: 14px;
  background: var(--g-blue-d);
  font-weight: 600; font-size: 10.5px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--md-3);
}
.gridrank-demo .ext-fab .arrow { width: 11px; height: 11px; }
.gridrank-demo .url-end { margin-top: 7px; font-family: 'SF Mono', ui-monospace, monospace; font-size: 9.5px; color: var(--g-blue-d); font-weight: 500; }

/* ================================
   Google Ads section + SERP mockup
   ================================ */
.ads-promo {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ads-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .ads-promo-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ads-promo-text h2 { margin-bottom: 16px; }
.ads-promo-text p { font-size: 17px; line-height: 1.55; margin-bottom: 18px; }
.ads-promo-text .ads-promo-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ads-stats-inline {
  display: flex;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.ads-stats-inline .ads-stat-item .ads-stat-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.ads-stats-inline .ads-stat-item .ads-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.ads-stage { position: relative; max-width: 540px; margin: 0 auto; }
.browser {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
[data-theme="dark"] .browser { box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.browser-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.browser-traffic { display: flex; gap: 6px; }
.browser-traffic span { width: 10px; height: 10px; border-radius: 50%; }
.browser-traffic span:nth-child(1) { background: #ff5f57; }
.browser-traffic span:nth-child(2) { background: #febc2e; }
.browser-traffic span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}
.browser-body { padding: 22px 22px 24px; min-height: 320px; background: var(--surface); }

.g-search {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.g-logo {
  font-family: Arial, sans-serif;
  font-weight: 500; font-size: 22px;
  flex-shrink: 0;
  display: flex;
}
.g-logo .b { color: #4285f4; }
.g-logo .r { color: #ea4335; }
.g-logo .y { color: #fbbc05; }
.g-logo .g { color: #34a853; }
.g-input {
  flex: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.g-input .g-typed { white-space: nowrap; overflow: hidden; width: 0; animation: g-type 1.4s steps(22, end) 0.8s forwards; }
@keyframes g-type { to { width: 100%; } }
.g-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px; opacity: 0; animation: gads-fade 0.5s ease 2.3s forwards; }
@keyframes gads-fade { to { opacity: 1; } }
.g-result {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: result-in 0.5s ease forwards;
}
.g-result:nth-child(3) { animation-delay: 2.6s; }
.g-result:nth-child(4) { animation-delay: 2.9s; }
.g-result:nth-child(5) { animation-delay: 3.1s; }
@keyframes result-in { to { opacity: 1; transform: translateY(0); } }
.g-result.sponsored { background: rgba(66,133,244,0.06); border: 1px solid rgba(66,133,244,0.15); }
[data-theme="dark"] .g-result.sponsored { background: rgba(66,133,244,0.1); border-color: rgba(66,133,244,0.25); }
.g-ad-label { display: inline-block; font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.g-result-url { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.g-result-title { font-size: 15px; color: #1a0dab; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
[data-theme="dark"] .g-result-title { color: #8ab4f8; }
.g-result-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.g-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.g-stars { color: #fbbc05; letter-spacing: 1px; font-size: 12px; }

.ads-floating {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0; z-index: 4;
}
[data-theme="dark"] .ads-floating { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ads-floating-1 { top: 18%; right: -12%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3.4s forwards; }
.ads-floating-2 { bottom: 30%; left: -10%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3.7s forwards; }
.ads-floating-3 { bottom: 6%; right: -8%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 4.0s forwards; }
@keyframes badge-pop { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } }
.ads-floating-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px; }
.ads-floating-value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ads-floating-trend { font-size: 11px; color: var(--success); margin-top: 3px; }
@media (max-width: 560px) {
  .ads-floating-1 { right: 2%; top: 6%; }
  .ads-floating-2 { left: 2%; bottom: 20%; }
  .ads-floating-3 { right: 2%; bottom: -4%; }
}

/* ================================
   Meta Ads section + phone mockup
   ================================ */
.meta-promo {
  scroll-margin-top: 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.meta-promo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .meta-promo-grid { grid-template-columns: 1fr; gap: 40px; }
  .meta-promo-grid .meta-promo-text { order: 2; }
  .meta-promo-grid .meta-stage { order: 1; }
}
.meta-promo-text h2 { margin-bottom: 16px; }
.meta-promo-text p { font-size: 17px; line-height: 1.55; margin-bottom: 18px; }
.meta-promo-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-feature-list { list-style: none; margin: 8px 0 24px; padding: 0; }
.meta-feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  font-size: 15.5px; color: var(--text);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.meta-feature-list li:last-child { border-bottom: none; }
.meta-feature-list .meta-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #0866ff, #d916bd);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.meta-feature-list .meta-check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; }
.meta-stats-inline {
  display: flex; gap: 28px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.meta-stats-inline .meta-stat-num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.meta-stats-inline .meta-stat-label { font-size: 12px; color: var(--text-muted); }

.meta-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: 280px;
  background: linear-gradient(180deg, #1d1d1f 0%, #0a0a0c 100%);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
}
[data-theme="dark"] .phone { box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); }
.phone::before {
  content: "";
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0a0a0c;
  border-radius: 12px; z-index: 2;
}
.phone-screen { background: #fff; border-radius: 28px; overflow: hidden; height: 500px; position: relative; }
.phone-statusbar { height: 40px; display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 26px 0; font-size: 11px; font-weight: 600; color: #0a0a0c; }
.phone-statusbar-time { font-weight: 700; }
.phone-statusbar-icons { display: flex; gap: 5px; align-items: center; opacity: 0.85; }

.ig-app { background: #fff; height: calc(100% - 40px); overflow: hidden; display: flex; flex-direction: column; }
.ig-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; border-bottom: 1px solid #efefef; }
.ig-logo { font-family: "Billabong", "Brush Script MT", cursive; font-size: 24px; color: #0a0a0c; }
.ig-icons { display: flex; gap: 12px; }
.ig-icons svg { width: 18px; height: 18px; stroke: #0a0a0c; fill: none; stroke-width: 1.7; }
.ig-feed { flex: 1; overflow: hidden; }
.ig-post { background: #fff; }
.ig-post-head { display: flex; align-items: center; padding: 10px 14px; gap: 10px; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f9a826, #d916bd, #0866ff); padding: 2px; }
.ig-avatar-inner { width: 100%; height: 100%; background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0a0a0c; }
.ig-handle { font-size: 13px; font-weight: 600; color: #0a0a0c; display: flex; align-items: center; gap: 4px; }
.ig-handle .verified { width: 12px; height: 12px; background: #0866ff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; }
.ig-sponsored { font-size: 11px; color: #737373; }
.ig-post-image { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #f9a826, #d916bd, #0866ff); position: relative; display: flex; align-items: flex-end; padding: 14px; color: #fff; overflow: hidden; }
.ig-post-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%); }
.ig-cta-overlay { position: relative; z-index: 1; }
.ig-cta-overlay h4 { font-size: 16px; font-weight: 700; color: #fff; }
.ig-cta-overlay p { font-size: 12px; color: rgba(255,255,255,0.95); margin: 0; }
.ig-post-actions { display: flex; justify-content: space-between; padding: 10px 14px; }
.ig-post-actions svg { width: 22px; height: 22px; stroke: #0a0a0c; fill: none; stroke-width: 1.6; }
.ig-actions-left { display: flex; gap: 12px; }
.ig-shop-cta { margin: 4px 14px 12px; background: #efefef; border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #0a0a0c; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.ig-shop-cta .arrow { font-size: 14px; opacity: 0.6; }

.meta-floating {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0; z-index: 4;
}
[data-theme="dark"] .meta-floating { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.meta-floating-1 { top: 14%; left: -8%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s forwards; }
.meta-floating-2 { bottom: 30%; right: -10%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.6s forwards; }
.meta-floating-3 { bottom: 6%; left: -10%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.9s forwards; }
.meta-floating-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px; }
.meta-floating-value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.meta-floating-trend { font-size: 11px; color: var(--success); margin-top: 3px; }
@media (max-width: 560px) {
  .meta-floating-1, .meta-floating-2, .meta-floating-3 { display: none; }
}

/* ================================
   AI Visibility section + ChatGPT mockup
   ================================ */
.ai-promo { background: var(--bg); border-bottom: 1px solid var(--border); }
.ai-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .ai-promo-grid { grid-template-columns: 1fr; gap: 40px; }
  .ai-promo-grid .ai-promo-text { order: 1; }
  .ai-promo-grid .ai-stage { order: 2; }
}
.ai-promo-text h2 { margin-bottom: 16px; }
.ai-promo-text p { font-size: 17px; line-height: 1.55; margin-bottom: 18px; }
.ai-promo-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.ai-platform-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
}
.ai-platform-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; }
.ai-stats-inline { display: flex; gap: 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.ai-stats-inline .ai-stat-num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.ai-stats-inline .ai-stat-label { font-size: 12px; color: var(--text-muted); }

.ai-stage { position: relative; display: flex; justify-content: center; }
.chat-window {
  width: 100%; max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.10);
}
[data-theme="dark"] .chat-window { box-shadow: 0 25px 60px rgba(0,0,0,0.5); }
.chat-titlebar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.chat-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.chat-title .chat-avatar { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #10a37f, #6dd6b6); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.chat-title small { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.chat-controls { display: flex; gap: 6px; }
.chat-controls span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.chat-body { padding: 22px; min-height: 360px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 10px; opacity: 0; transform: translateY(6px); animation: msg-in 0.5s ease forwards; }
.chat-msg.user { flex-direction: row-reverse; animation-delay: 0.8s; }
.chat-msg.bot { animation-delay: 1.5s; }
.chat-msg .msg-avatar { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.chat-msg.user .msg-avatar { background: var(--text); color: var(--bg); }
.chat-msg.bot .msg-avatar { background: linear-gradient(135deg, #10a37f, #6dd6b6); }
.chat-msg .msg-bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55; color: var(--text); }
.chat-msg.user .msg-bubble { background: var(--bg-alt); border: 1px solid var(--border); border-top-right-radius: 4px; }
.chat-msg.bot .msg-bubble { background: rgba(16, 163, 127, 0.06); border: 1px solid rgba(16, 163, 127, 0.18); border-top-left-radius: 4px; }
[data-theme="dark"] .chat-msg.bot .msg-bubble { background: rgba(16, 163, 127, 0.1); border-color: rgba(16, 163, 127, 0.25); }
.chat-msg .biz-mention { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; background: rgba(66,133,244,0.1); border: 1px solid rgba(66,133,244,0.25); border-radius: 4px; color: var(--link); font-weight: 600; white-space: nowrap; }
[data-theme="dark"] .chat-msg .biz-mention { background: rgba(41, 151, 255, 0.15); border-color: rgba(41, 151, 255, 0.3); }
.chat-msg .citation-sup { display: inline-block; background: var(--link); color: white; border-radius: 4px; font-size: 9px; font-weight: 700; padding: 1px 4px; margin-left: 3px; vertical-align: top; transform: translateY(-2px); }
.typing-indicator { display: inline-flex; align-items: center; gap: 4px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: #10a37f; animation: typing-bounce 1s infinite ease-in-out; }
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-typing { display: flex; gap: 10px; align-items: center; opacity: 0; animation: typing-fade 0.5s ease 1.2s forwards, typing-out 0.4s ease 2.0s forwards; }
@keyframes typing-fade { to { opacity: 1; } }
@keyframes typing-out { to { opacity: 0; height: 0; margin: -10px 0; } }
@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.chat-input-field { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; font-size: 13px; color: var(--text-muted); }
.chat-input-send { width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.chat-input-send svg { width: 13px; height: 13px; fill: currentColor; }

.ai-floating {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0; z-index: 4;
}
[data-theme="dark"] .ai-floating { box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.ai-floating-1 { top: 12%; right: -4%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.6s forwards; }
.ai-floating-2 { bottom: 32%; left: -4%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.9s forwards; }
.ai-floating-3 { bottom: 8%; right: -4%; animation: badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 3.2s forwards; }
@media (max-width: 1100px) {
  .ai-floating-1 { right: 4%; }
  .ai-floating-2 { left: 4%; }
  .ai-floating-3 { right: 4%; }
}
.ai-floating-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px; }
.ai-floating-value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.ai-floating-trend { font-size: 11px; color: var(--success); margin-top: 3px; }
@media (max-width: 560px) {
  .ai-floating-1, .ai-floating-2, .ai-floating-3 { display: none; }
}

/* ================================
   Featured services band
   ================================ */
.featured-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 800px) { .featured-services { grid-template-columns: 1fr; } }
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.featured-card .featured-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 14px;
}
.featured-card h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.featured-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex: 1;
}
.featured-card .featured-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.featured-card .featured-icon {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.featured-card .featured-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
}
.featured-card .featured-stats {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.featured-card .fs-item .fs-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.featured-card .fs-item .fs-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ================================
   Auth — sign-in banner & modal
   ================================ */
.auth-banner {
  background: linear-gradient(90deg, #4285F4, #34A853);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}
.auth-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.auth-banner-link {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  margin-left: 14px;
  transition: background 0.15s;
}
.auth-banner-link:hover { background: rgba(255,255,255,0.28); }

.signin-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: signin-fade 0.18s ease;
}
@keyframes signin-fade { from { opacity: 0; } to { opacity: 1; } }
.signin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
  position: relative;
}
.signin-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 16px; line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}
.signin-close:hover { color: var(--text); background: var(--surface-alt); }
.signin-logo {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: block;
}
[data-theme="light"] .signin-logo { filter: invert(1); }
.signin-card h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.signin-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.signin-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signin-card .form-control,
.signin-card .btn { width: 100%; }
.signin-message {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
  min-height: 18px;
}
.signin-message.success { color: #34A853; }
.signin-message.error { color: #EA4335; }

