/* =====================================================
   AdScaleLab Marketing Site
   Light glassmorphism. Cream + indigo + serif italic accents.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Light glassmorphism palette */
  --bg:           #F5F1EA;
  --bg-2:         #EDE7DD;
  --bg-3:         #E8E0D2;
  --ink:          #1A1A1F;
  --ink-2:        #2D2D33;
  --ink-3:        #57575F;
  --ink-4:        #8E8E94;
  --ink-5:        #BDBDBD;

  --accent:       #4338CA;
  --accent-2:     #6366F1;
  --accent-3:     #818CF8;
  --accent-soft:  rgba(99,102,241,0.08);
  --accent-glow:  rgba(99,102,241,0.18);

  --warm:         #C2410C;
  --warm-soft:    rgba(194,65,12,0.08);
  --green:        #047857;
  --green-soft:   rgba(4,120,87,0.08);
  --danger:       #B91C1C;

  --glass:        rgba(255,255,255,0.45);
  --glass-2:      rgba(255,255,255,0.65);
  --glass-3:      rgba(255,255,255,0.85);
  --glass-border: rgba(26,26,31,0.08);
  --glass-border-strong: rgba(26,26,31,0.14);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(26,26,31,0.04), 0 4px 8px rgba(26,26,31,0.04);
  --shadow-md: 0 4px 6px rgba(26,26,31,0.05), 0 10px 24px rgba(26,26,31,0.06);
  --shadow-lg: 0 20px 50px rgba(26,26,31,0.10), 0 8px 16px rgba(26,26,31,0.06);
  --shadow-glow: 0 0 0 1px var(--accent-glow), 0 12px 30px rgba(99,102,241,0.18);

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(99,102,241,0.10), transparent 50%),
    radial-gradient(ellipse at 100% 30%, rgba(244,114,182,0.06), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(251,191,36,0.05), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper-grain noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(26px, 3vw, 40px); }
h4 { font-size: clamp(20px, 2vw, 26px); }

em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: '• '; color: var(--accent-3); }

/* ===== Containers ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 72px 0; }

/* ===== Glass surfaces ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.glass-strong {
  background: var(--glass-3);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.glass-interactive {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.glass-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-glow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 18px rgba(26,26,31,0.18);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(67,56,202,0.30);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(67,56,202,0.25);
}
.btn-accent:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.35);
}

.btn-glass {
  background: var(--glass-3);
  color: var(--ink);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(16px);
}
.btn-glass:hover {
  background: #fff;
  border-color: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  border-radius: 0;
}
.btn-link:hover { color: var(--accent); transform: none; box-shadow: none; }
.btn-link::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s var(--ease);
}
.btn-link:hover::after { transform: translateX(4px); }

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(245,241,234,0.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ink);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links .has-dropdown { position: relative; cursor: pointer; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 260px;
  padding: 10px;
  background: var(--glass-3);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--accent-soft); }
.nav-dropdown a img { width: 22px; height: 22px; object-fit: contain; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 120px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--glass-3);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(4,120,87,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(4,120,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(4,120,87,0); }
}
.hero-title { margin-bottom: 24px; }
.hero-sub {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-3);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--glass-border-strong);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ===== Pills + tags ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--glass-3);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-glow); }
.pill-warm   { background: var(--warm-soft); color: var(--warm); border-color: rgba(194,65,12,0.2); }
.pill-green  { background: var(--green-soft); color: var(--green); border-color: rgba(4,120,87,0.2); }

/* ===== Footer ===== */
.footer {
  margin-top: 120px;
  padding: 80px 0 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--glass-border-strong);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--glass-border);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
  font-weight: 500;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand-logo {
  width: 40px; height: 40px;
  background: var(--ink);
  border-radius: 10px;
  padding: 7px;
}
.footer-brand-logo img { width: 100%; height: 100%; }
.footer-tagline {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-3);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--ink-2);
  padding: 0;
  transition: all 0.2s var(--ease);
}
.footer-social a:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
  border-color: var(--ink);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-4);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--ink-4);
}
.footer-legal a:hover { color: var(--accent); }

/* ===== Cards / grids ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.card {
  padding: 30px;
  position: relative;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }
.card h4 { margin-bottom: 10px; font-size: 22px; }
.card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; }

/* ===== Network row (logos + meta) ===== */
.network-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.network-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.network-card-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--glass-3);
  padding: 7px;
  border: 1px solid var(--glass-border);
}
.network-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.network-card-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.network-card-price {
  margin-top: -4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
}
.network-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

/* ===== Sections with two-column hero ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1fr 1.1fr; }

/* ===== FAQ ===== */
.faq {
  border-top: 1px solid var(--glass-border);
}
.faq details {
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s var(--ease);
  width: 24px;
  text-align: center;
}
.faq details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq details p {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 720px;
}

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--bg); margin-bottom: 18px; }
.cta-banner h2 em { color: var(--accent-3); }
.cta-banner p {
  font-size: 18px;
  color: rgba(245,241,234,0.7);
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(99,102,241,0.20), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(244,114,182,0.10), transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.8s var(--ease) both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }
.fade-up-5 { animation-delay: 0.45s; }

/* ===== Team page ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.team-card { padding: 36px 28px 28px; text-align: center; }
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--glass-3);
  border: 1px solid var(--glass-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--accent);
  overflow: hidden;
  position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.team-bio {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ===== Pricing table ===== */
.pricing-row {
  display: grid;
  grid-template-columns: 56px 2fr 1fr 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--glass-border);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 24px;
  background: var(--bg-2);
}
.pricing-logo { width: 44px; height: 44px; padding: 7px; background: var(--glass-3); border-radius: 10px; border: 1px solid var(--glass-border); }
.pricing-logo img { width: 100%; height: 100%; object-fit: contain; }
.pricing-name { font-family: var(--font-display); font-size: 22px; }
.pricing-price { font-family: var(--font-mono); font-size: 17px; color: var(--accent); font-weight: 500; }
.pricing-fee { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.pricing-id { font-size: 13px; color: var(--ink-3); }

/* ===== Forms ===== */
.input, textarea.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-3);
  border: 1px solid var(--glass-border-strong);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-weight: 400;
}
.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}
textarea.input { min-height: 140px; resize: vertical; }

/* ===== Misc ===== */
.divider {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 60px 0;
}
.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.list-check li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.list-check li::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234338CA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .hero { padding: 60px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner { padding: 50px 30px; }
  .pricing-row {
    grid-template-columns: 48px 1fr;
    gap: 10px 14px;
    padding: 18px;
    align-items: start;
  }
  /* Name block sits next to the logo on the top line. */
  .pricing-row > .pricing-logo { grid-row: 1; grid-column: 1; }
  .pricing-row > div:nth-child(2) { grid-row: 1; grid-column: 2; align-self: center; }
  /* Price, fee, identifier each become a labelled row spanning full width. */
  .pricing-row > .pricing-price,
  .pricing-row > .pricing-fee,
  .pricing-row > .pricing-id {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 7px;
  }
  .pricing-row > .pricing-price:first-of-type { /* first data row gets spacing from name */ }
  .pricing-row > .pricing-price[data-label]::before,
  .pricing-row > .pricing-fee[data-label]::before,
  .pricing-row > .pricing-id[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    flex-shrink: 0;
  }
  .pricing-row > .pricing-cta {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
  .pricing-row > .pricing-cta .btn { width: 100%; }
  .pricing-row-head { display: none; }
}

/* Standalone Dashboard button: hidden on desktop (it lives in .nav-cta there),
   shown on mobile next to the burger so it is always reachable without opening the menu. */
.nav-dashboard-mobile { display: none; }
@media (max-width: 768px) {
  .nav-dashboard-mobile { display: inline-flex; margin-left: auto; margin-right: 8px; }
}

/* ===== Mobile menu panel ===== */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px 22px 26px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-2, #0d0f1f);
}
.nav-mobile-panel.is-open { display: flex; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  padding: 14px 4px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--glass-border);
}
.nav-mobile-links a:last-child { border-bottom: 0; }
.nav-mobile-links a:hover { color: var(--accent); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; }
/* The panel only matters on mobile; never show it on desktop */
@media (min-width: 769px) { .nav-mobile-panel { display: none !important; } }

/* ===== Blog ===== */
.blog-body h2 { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; font-size: 26px; margin: 32px 0 12px; line-height: 1.3; }
.blog-body h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; font-size: 20px; margin: 26px 0 10px; line-height: 1.35; }
.blog-body h4 { font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: 22px 0 8px; line-height: 1.4; }
.blog-body p { margin-bottom: 18px; }
.blog-body ul, .blog-body ol { margin: 0 0 18px 22px; }
.blog-body li { margin-bottom: 8px; }
.blog-body a { color: var(--accent); text-decoration: underline; }
.blog-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; border: 1px solid var(--glass-border); }
.blog-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 20px; margin: 22px 0; color: var(--ink-3); font-style: italic;
}
.blog-body pre {
  background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 16px; overflow-x: auto; margin: 20px 0; font-size: 14px;
}
.blog-body code { font-family: var(--font-mono, monospace); font-size: 0.92em; }

@media (max-width: 880px) {
  .blog-layout { grid-template-columns: 1fr !important; }
  .blog-sidebar { order: 2; }
  .blog-sidebar .glass { position: static !important; }
}

/* ===== Blog listing rows (image left, content right) ===== */
.blog-row {
  display: flex;
  gap: 22px;
  text-decoration: none;
  color: inherit;
  background: var(--glass-3);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-row:hover {
  border-color: var(--accent-glow, rgba(99,102,241,0.4));
  transform: translateY(-2px);
}
.blog-row-img {
  flex: 0 0 220px;
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.blog-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.blog-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.blog-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft, rgba(99,102,241,0.12));
  padding: 3px 8px;
  border-radius: 5px;
}
.blog-row-title { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
.blog-row-desc { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; margin: 0 0 12px; }
.blog-row-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-4, var(--ink-3)); }
.blog-row-readmore { color: var(--accent); font-weight: 600; }

@media (max-width: 600px) {
  .blog-row { flex-direction: column; gap: 14px; }
  .blog-row-img { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .blog-row-title { font-size: 18px; }
}

/* ===== Comments ===== */
.comment-flash { padding: 12px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.comment-flash.ok { background: rgba(16,185,129,0.85); border: 1px solid rgba(16,185,129,1); color: #0a0a0a; }
.comment-flash.warn { background: rgba(245,158,11,0.85); border: 1px solid rgba(245,158,11,1); color: #0a0a0a; }
.comment {
  background: var(--glass-3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.comment-author { font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.comment-date { font-size: 12px; color: var(--ink-3); }
.comment-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.comment-form { margin-top: 8px; }
.comment-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}
.comment-textarea:focus { outline: none; border-color: var(--accent); }
.blog-row-comments { color: var(--ink-3); }
