/* ============================================================
   Serge Business Development — v2 Site CSS
   Shared across all pages
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ---- Tokens ---- */
:root {
  --blue:      #1A5CFF;
  --charcoal:  #1A1A2E;
  --white:     #FFFFFF;
  --gray-bg:   #F8F9FC;
  --gray-mid:  #94A3B8;
  --gray-line: #E2E8F0;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --max-w: 1160px;
  --pad-x: clamp(20px, 5vw, 60px);
  --pad-section: clamp(72px, 10vw, 120px);

  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
}

/* ---- Section flow — soften hard bg transitions ---- */
section + section {
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* ---- Base ---- */
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--charcoal);
}

h1 { font-size: clamp(36px, 5.5vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: clamp(16px, 1.8vw, 20px); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--pad-section) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-line);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--charcoal); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.88 !important; color: var(--white) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue);
}

.btn-white:hover { opacity: 0.92; }

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

/* ---- Hero ---- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  text-align: center;
  overflow: hidden;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Tier Cards ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tier-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.tier-card:hover {
  box-shadow: 0 8px 32px rgba(26,92,255,0.12);
  transform: translateY(-2px);
}

.tier-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}

.tier-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.tier-price sub { font-size: 16px; font-weight: 500; }
.tier-price span { font-size: 14px; color: var(--gray-mid); font-weight: 400; }

.tier-hook {
  font-size: 15px;
  color: #475569;
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}

.tier-feature-list {
  list-style: none;
  margin-bottom: 1.75rem;
}

.tier-feature-list li {
  font-size: 14px;
  color: #475569;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-line);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tier-feature-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- What We Build ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 0.75rem;
}

.service-card h4 {
  margin-bottom: 0.35rem;
  font-size: 16px;
}

.service-card p {
  font-size: 14px;
  color: #475569;
  margin: 0;
}

/* ---- SERGE Method ---- */
.serge-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.serge-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.serge-letter {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.serge-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0.35rem;
}

.serge-desc {
  font-size: 13px;
  color: #64748B;
}

/* ---- Callout / Promise ---- */
.callout {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.callout h2 { color: var(--white); margin-bottom: 1rem; }
.callout p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 2rem; }

/* ---- Alfred Story ---- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.stat-label { font-size: 13px; color: #64748B; margin: 0; }

/* ---- Three Ways to Start ---- */
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.start-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.start-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ---- Section header ---- */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: #64748B; max-width: 540px; margin: 0 auto; }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }

details {
  border-bottom: 1px solid var(--gray-line);
  padding: 1.25rem 0;
}

summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after { content: "+"; color: var(--blue); font-size: 20px; }
details[open] summary::after { content: "−"; }

details p { margin-top: 0.75rem; color: #475569; }

/* ---- Comparison row ---- */
.compare-row {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.compare-col {
  flex: 1;
  border-radius: var(--radius);
  padding: 2rem;
}

.compare-col.bad {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
}

.compare-col.good {
  background: #EFF6FF;
  border: 1px solid #93C5FD;
}

.compare-col h4 { margin-bottom: 1rem; }
.compare-col ul { list-style: none; }
.compare-col ul li { padding: 0.4rem 0; font-size: 15px; display: flex; gap: 0.5rem; }

/* ---- White → dark section bridge ---- */
.to-dark-bridge {
  height: 110px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ccdaff 18%,
    #1a46c9 52%,
    #0b1840 80%,
    #1A1A2E 100%
  );
  margin: 0;
  padding: 0;
  display: block;
}

/* ---- Footer ---- */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: clamp(40px, 6vw, 72px) var(--pad-x) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--blue); }

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 13px;
}

/* ---- Background helpers ---- */
.bg-gray { background: var(--gray-bg); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-charcoal { background: var(--charcoal); color: var(--white); }

/* ---- Utility ---- */
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* ---- Capability Story Cards ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.cap-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(26,92,255,0.08);
}
.cap-icon { font-size: 28px; }
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
}
.cap-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}
.cap-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.5rem;
}
.cap-link:hover { text-decoration: underline; }

/* ---- Schedule Screen ---- */
.sc-sched-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-sched-alert { font-size: 13px; font-weight: 700; color: #F59E0B; }
.sc-sched-sub   { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 3px; letter-spacing: 0.04em; }

.sc-sched-body { flex: 1; padding: 6px 0; overflow: hidden; }
.sched-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.sched-msg.show { opacity: 1; transform: translateX(0); }
.smsg-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(26,92,255,0.25); border: 1px solid rgba(26,92,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.smsg-info { flex: 1; overflow: hidden; }
.smsg-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.75); }
.smsg-text { font-size: 11px; color: rgba(255,255,255,0.38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.smsg-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.smsg-tag.sent      { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }
.smsg-tag.confirmed { background: rgba(34,197,94,0.12);   color: #22C55E; border: 1px solid rgba(34,197,94,0.25); }

.sc-sched-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
}
.sched-stat       { font-weight: 600; }
.sched-stat.green { color: #22C55E; }
.sched-stat.muted { color: rgba(255,255,255,0.3); }
.sched-dot        { color: rgba(255,255,255,0.2); }
.sched-rebuilt    { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 0.04em; }
.sched-rebuilt.hidden { display: none !important; }

/* ---- Estimate Screen ---- */
.sc-est-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-est-job { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.sc-est-sub { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 3px; letter-spacing: 0.04em; }

.sc-est-prices { flex: 1; padding: 8px 0; }
.price-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.price-row.show { opacity: 1; transform: translateY(0); }
.pr-store { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.3); width: 66px; flex-shrink: 0; }
.pr-item  { flex: 1; color: rgba(255,255,255,0.7); }
.pr-val   { font-weight: 700; color: #22C55E; font-size: 12px; flex-shrink: 0; }
.pr-loading { color: rgba(255,255,255,0.25); font-weight: 400; animation: prPulse 0.8s ease-in-out infinite alternate; }
@keyframes prPulse { from{opacity:0.2} to{opacity:0.6} }

.sc-est-invoice {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px; flex-shrink: 0;
}
.sc-est-invoice.hidden { display: none !important; }
.inv-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.6); padding: 3px 0;
}
.inv-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 0; }
.inv-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 800; color: rgba(255,255,255,0.95);
  padding: 4px 0 10px;
}
.inv-send-btn {
  width: 100%; padding: 8px; background: var(--blue); border: none;
  border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.02em;
}

/* ---- Hero Split Layout ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  overflow: visible;
  text-align: left;
}

.hero-split .hero-sub { margin-left: 0; }
.hero-split .hero-actions { justify-content: flex-start; }

/* ---- Alfred App Widget ---- */
.hero-visual { display: flex; justify-content: center; }

.alfred-app {
  background: #0d1117;
  border: 1px solid rgba(26,92,255,0.22);
  border-radius: 14px;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(26,92,255,0.07),
    0 32px 80px rgba(0,0,0,0.65),
    0 0 120px rgba(26,92,255,0.09);
  position: relative;
}

/* Title bar */
.alfred-titlebar {
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.titlebar-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }
.alfred-window-title { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 500; }
.alfred-online { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #22C55E; font-weight: 600; letter-spacing: 0.04em; }
.pulse-dot-sm {
  width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  animation: pdsm 2s ease-in-out infinite;
}
@keyframes pdsm { 0%,100%{opacity:1;box-shadow:0 0 6px #22C55E}50%{opacity:.5;box-shadow:0 0 12px #22C55E} }

/* Screen container */
.screen-container-h { height: 340px; position: relative; overflow: hidden; }
.app-screen {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(18px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  pointer-events: none;
  display: flex; flex-direction: column;
}
.app-screen.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.app-screen.exiting { opacity: 0; transform: translateX(-18px); transition: opacity 0.3s ease, transform 0.3s ease; }

/* Avatar */
.sc-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #3a7fff, #0a2575 70%);
  box-shadow: 0 0 14px rgba(26,92,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  animation: avatarPulse 3.5s ease-in-out infinite;
}
.sc-avatar.small { width: 26px; height: 26px; font-size: 11px; }
@keyframes avatarPulse { 0%,100%{box-shadow:0 0 14px rgba(26,92,255,0.5)} 50%{box-shadow:0 0 24px rgba(26,92,255,0.75)} }

/* ── Chat Screen ── */
.sc-chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.sc-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.sc-sub  { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 1px; }

.sc-chat-body {
  flex: 1; padding: 14px 16px; display: flex;
  flex-direction: column; gap: 10px; overflow: hidden;
}

.bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.85);
}
.user-bubble  { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.alfred-bubble { background: #1c2231; align-self: flex-start; border-bottom-left-radius: 3px; border: 1px solid rgba(26,92,255,0.18); }
.alfred-typing {
  background: #1c2231; align-self: flex-start; border-bottom-left-radius: 3px;
  border: 1px solid rgba(26,92,255,0.18); display: flex; gap: 4px; align-items: center;
  padding: 12px 14px;
}
.tdot {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.4);
  animation: tdAnim 1.1s ease-in-out infinite;
}
.tdot:nth-child(2){animation-delay:0.18s}
.tdot:nth-child(3){animation-delay:0.36s}
@keyframes tdAnim{0%,80%,100%{transform:scale(0.6);opacity:0.35}40%{transform:scale(1);opacity:1}}
.hidden { display: none !important; }

.sc-chat-input {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.22); font-size: 12px; flex-shrink: 0;
}
.chat-cursor { color: var(--blue); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Map Screen ── */
.sc-map-header {
  padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.sc-map-label { font-size: 9px; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.sc-map-appt  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 3px; }

.sc-map-view { flex: 1; background: #111620; position: relative; overflow: hidden; }
.map-svg { width: 100%; height: 100%; display: block; }

.sc-map-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  flex-wrap: wrap;
}
.map-stat { display: flex; flex-direction: column; gap: 1px; }
.map-stat-lbl { font-size: 9px; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.map-stat-val { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.9); line-height: 1; }
.map-stat-val span { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.5); }
.map-stat-val.green { color: #22C55E; }
.map-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }
.map-traffic { font-size: 10px; color: #F59E0B; margin-left: auto; font-weight: 500; }

/* ── Email Screen ── */
.sc-email-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.sc-email-tag { font-size: 11px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.sc-email-meta { display: flex; flex-direction: column; gap: 5px; }
.er { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
.el { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; text-transform: uppercase; width: 18px; flex-shrink: 0; }
.ev { color: rgba(255,255,255,0.75); }

.sc-email-body {
  flex: 1; padding: 14px 16px; font-size: 12.5px; line-height: 1.65;
  color: rgba(255,255,255,0.7); overflow: hidden;
}
.email-body-text { display: inline; }
.email-cursor { color: var(--blue); animation: blink 0.9s step-end infinite; display: inline; }

.sc-email-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.email-btn {
  padding: 6px 16px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15); background: transparent;
  color: rgba(255,255,255,0.7); cursor: pointer;
}
.email-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.email-note { font-size: 10px; color: rgba(255,255,255,0.25); margin-left: auto; }

/* ── Tasks Screen ── */
.sc-tasks-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-shrink: 0;
}
.sc-tasks-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.9); }
.sc-tasks-count { font-size: 11px; color: rgba(255,255,255,0.35); }

.sc-tasks-list { padding: 8px 0; flex: 1; }
.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; font-size: 12.5px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s ease;
}
.task-row:last-child { border-bottom: none; }
.task-row.pending { color: rgba(255,255,255,0.35); }
.tcheck { font-size: 11px; color: rgba(255,255,255,0.2); flex-shrink: 0; width: 16px; font-weight: 700; }
.tcheck.done { color: #22C55E; }
.tcheck.pend { color: rgba(255,255,255,0.2); }
.ttext { transition: all 0.4s ease; }
.task-row.crossed .tcheck { color: #22C55E; }
.task-row.crossed .ttext { text-decoration: line-through; color: rgba(255,255,255,0.3); }

.alfred-sign-off {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  flex-shrink: 0;
}
.alfred-sign-off.hidden { display: none !important; }
.sign-off-text {
  font-size: 12px; color: rgba(255,255,255,0.55);
  font-style: italic; line-height: 1.4;
}

/* Screen nav dots */
.screen-nav-dots {
  padding: 10px 0; display: flex; justify-content: center; gap: 6px;
  background: #0d1117; border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2); transition: background 0.3s, transform 0.3s;
}
.nav-dot.active { background: var(--blue); transform: scale(1.3); }

/* ── Homepage: AI Assistant Teaser Cards ── */
.assist-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.assist-teaser-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.22s, transform 0.22s;
}
.assist-teaser-card:hover { box-shadow: 0 8px 32px rgba(26,92,255,0.1); transform: translateY(-3px); }
.assist-teaser-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.at-icon { font-size: 36px; margin-bottom: 1rem; }
.assist-teaser-card h3 { font-size: 22px; margin-bottom: 0.75rem; }
.assist-teaser-card p { color: #475569; font-size: 15px; line-height: 1.6; margin-bottom: 1.25rem; }
.at-link { color: var(--blue); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.at-link:hover { text-decoration: underline; }

/* ── Personal Page: Intro Stats ── */
.intro-stat { text-align: center; }
.intro-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--blue); line-height: 1; }
.intro-lbl { font-size: 13px; color: #94A3B8; margin-top: 4px; }

/* ── HERO: Sales-forward gradient treatment ── */

/* Override hero to clean light background */
.hero-sales {
  background: #F3F5FC !important;
  position: relative;
  overflow: visible;
}
.hero-sales h1          { color: var(--charcoal); }
.hero-sales h1 span     { color: var(--blue); }
.hero-sales .hero-sub   { color: #475569; }
.hero-sales .hero-trust span { color: #64748B; }

/* Background color orbs — Stripe-style */
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hbo {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}
.hbo-purple {
  width: 600px; height: 600px;
  background: rgba(120, 40, 200, 0.32);
  top: -220px; right: -80px;
  animation: hboDrift1 18s ease-in-out infinite alternate;
}
.hbo-blue {
  width: 460px; height: 460px;
  background: rgba(26, 92, 255, 0.38);
  bottom: -140px; right: 8%;
  animation: hboDrift2 22s ease-in-out infinite alternate-reverse;
}
.hbo-teal {
  width: 340px; height: 340px;
  background: rgba(20, 184, 166, 0.2);
  top: 25%; right: 28%;
  animation: hboDrift1 14s ease-in-out infinite alternate;
}
.hbo-pink {
  width: 280px; height: 280px;
  background: rgba(236, 72, 153, 0.14);
  top: 60%; left: 10%;
  animation: hboDrift2 16s ease-in-out infinite alternate;
}
@keyframes hboDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 25px) scale(1.08); }
}
@keyframes hboDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, -20px) scale(1.05); }
}

/* Hero trust signals row */
.hero-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.hero-trust span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── Gradient Sphere Visual ── */
.gsph-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Pulsing outer rings */
.gsph-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.gsr-1 {
  width: 480px; height: 480px;
  animation: ringGlow 7s ease-in-out infinite;
}
.gsr-2 {
  width: 400px; height: 400px;
  border-color: rgba(99, 102, 241, 0.25);
  animation: ringGlow 7s ease-in-out infinite 2.3s;
}
.gsr-3 {
  width: 330px; height: 330px;
  border-color: rgba(56, 189, 248, 0.2);
  animation: ringGlow 7s ease-in-out infinite 4.6s;
}
@keyframes ringGlow {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.015); }
}

/* The sphere itself */
.gsphere {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    #9B3FF5 0%,
    #4F46E5 28%,
    #1D4ED8 52%,
    #0e1a4f 78%,
    #060c24 100%
  );
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(139,92,246,0.45),
    0 0 160px rgba(79,70,229,0.25),
    0 0 240px rgba(26,92,255,0.15),
    inset 0 0 80px rgba(0,0,0,0.45);
  animation: sphereGlow 6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes sphereGlow {
  0%,100% {
    box-shadow: 0 0 80px rgba(139,92,246,0.45), 0 0 160px rgba(79,70,229,0.25);
  }
  50% {
    box-shadow: 0 0 110px rgba(155,63,245,0.6), 0 0 200px rgba(79,70,229,0.35), 0 0 60px rgba(192,132,252,0.2);
  }
}

/* Mesh overlay SVG inside sphere */
.gsph-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  animation: meshSpin 50s linear infinite;
  transform-origin: center;
}
@keyframes meshSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Specular highlight — makes it look 3D */
.gsph-shine {
  position: absolute;
  top: 10%;
  left: 14%;
  width: 48%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 50%, transparent 70%);
  pointer-events: none;
}

/* Badge positions relative to sphere wrap */
.gsph-wrap .s-badge { position: absolute; }
.gsph-wrap .sb-1 { top: 8%;  left: -2%;  animation: floatBadge 7s ease-in-out infinite 0s; }
.gsph-wrap .sb-2 { top: 22%; right: -1%; animation: floatBadge 7s ease-in-out infinite 1.8s; }
.gsph-wrap .sb-3 { bottom: 18%; right: 0%; animation: floatBadge 7s ease-in-out infinite 3.5s; }
.gsph-wrap .sb-4 { bottom: 8%; left: 4%;  animation: floatBadge 7s ease-in-out infinite 5.2s; }

/* ── 3D EXTRUDED RIBBON CANVAS ── */
.shape3d-wrap {
  position: relative;
  width: 610px;
  height: 690px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#hero-canvas {
  display: block;
  border-radius: 20px;
}

/* Badge positions for canvas wrap */
.shape3d-wrap .s-badge { position: absolute; }
.shape3d-wrap .sb-1 { top: 3%;    left: 0;    animation: floatBadge 7s ease-in-out infinite 0s; }
.shape3d-wrap .sb-2 { top: 3%;    right: 0;   animation: floatBadge 7s ease-in-out infinite 1.75s; }
.shape3d-wrap .sb-3 { bottom: 3%; right: 0;   animation: floatBadge 7s ease-in-out infinite 3.5s; }
.shape3d-wrap .sb-4 { bottom: 3%; left: 0;    animation: floatBadge 7s ease-in-out infinite 5.25s; }
.shape-caption {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.55s ease;
}
.shape-cap-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.shape-cap-sub {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
  font-weight: 500;
}

/* ── INDUSTRY CARDS — editorial, no fake browsers ── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.ind-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}

.ind-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}

/* Left accent bar */
.ind-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}

.ind-trade::before  { background: #1A5CFF; }
.ind-pro::before    { background: #0EA5E9; }
.ind-ecom::before   { background: #8B5CF6; }
.ind-tech::before   { background: #1A1A2E; }
.ind-np::before     { background: #10B981; }
.ind-port::before   { background: #F59E0B; }

.ind-num {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.45;
  color: var(--charcoal);
}

.ind-card h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.ind-card p {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.ind-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ind-tags span {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ── HERO 3D SHAPE (legacy — wireframe cube) ── */
.shape-wrap {
  position: relative;
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Background radial glow */
.shape-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,255,0.22) 0%, rgba(26,92,255,0.06) 45%, transparent 70%);
  pointer-events: none;
  animation: shapeGlowPulse 5s ease-in-out infinite;
}
@keyframes shapeGlowPulse {
  0%,100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

/* Outer decorative ring */
.shape-outer-ring {
  position: absolute;
  width: 490px;
  height: 490px;
  border-radius: 50%;
  border: 1px solid rgba(26,92,255,0.12);
  animation: outerRingSpin 60s linear infinite;
}
@keyframes outerRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Perspective scene */
.shape-scene {
  width: 360px;
  height: 360px;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  position: relative;
}

/* Master group — slow primary Y rotation */
.shape-group {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: shapeGroupRotate 30s linear infinite;
}
@keyframes shapeGroupRotate {
  from { transform: rotateX(14deg) rotateY(0deg); }
  to   { transform: rotateX(14deg) rotateY(360deg); }
}

/* Wireframe cube — 280px sides, centered in 360px scene (40px offset each side) */
.shape-cube {
  position: absolute;
  top: 40px; left: 40px;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
}

/* All 6 cube faces */
.scf {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1.5px solid rgba(26,92,255,0.5);
  background: rgba(26,92,255,0.018);
  box-sizing: border-box;
}
.sf-front  { transform: translateZ(140px); }
.sf-back   { transform: rotateY(180deg) translateZ(140px); }
.sf-right  { transform: rotateY(90deg)  translateZ(140px); }
.sf-left   { transform: rotateY(-90deg) translateZ(140px); }
.sf-top    { transform: rotateX(90deg)  translateZ(140px); }
.sf-bottom { transform: rotateX(-90deg) translateZ(140px); }

/* Interior cross planes — adds detail and depth inside the cube */
.sf-cross-h { transform: translateZ(0);           border-color: rgba(26,92,255,0.14); background: transparent; }
.sf-cross-v { transform: rotateX(90deg) translateZ(0); border-color: rgba(26,92,255,0.14); background: transparent; }
.sf-cross-d { transform: rotateY(90deg) translateZ(0); border-color: rgba(26,92,255,0.14); background: transparent; }

/* Orbital rings — centered, at 3 different tilt angles */
.s-orb {
  position: absolute;
  top: 50%; left: 50%;
  width: 350px;
  height: 350px;
  margin: -175px 0 0 -175px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,92,255,0.38);
  transform-style: preserve-3d;
}
.orb-1 { transform: rotateX(0deg);   border-color: rgba(26,92,255,0.45); }
.orb-2 { transform: rotateX(60deg);  border-color: rgba(26,92,255,0.32); }
.orb-3 { transform: rotateX(120deg); border-color: rgba(26,92,255,0.26); }

/* Floating nodes at key intersection points */
.s-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26,92,255,0.9);
  box-shadow: 0 0 10px rgba(26,92,255,0.7);
}
.snd-1 { top: 50%; left: 50%; transform: translate3d(140px,-140px,140px); }
.snd-2 { top: 50%; left: 50%; transform: translate3d(-140px,-140px,-140px); }
.snd-3 { top: 50%; left: 50%; transform: translate3d(140px,140px,-140px); }
.snd-4 { top: 50%; left: 50%; transform: translate3d(-140px,140px,140px); }

/* Center glowing core */
.s-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #1A5CFF;
  box-shadow: 0 0 18px rgba(26,92,255,0.9), 0 0 40px rgba(26,92,255,0.5), 0 0 70px rgba(26,92,255,0.25);
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse {
  0%,100% { box-shadow: 0 0 18px rgba(26,92,255,0.9), 0 0 40px rgba(26,92,255,0.5); }
  50%      { box-shadow: 0 0 28px rgba(26,92,255,1),   0 0 60px rgba(26,92,255,0.7), 0 0 90px rgba(26,92,255,0.3); }
}

/* Floating keyword badges around the shape */
.s-badge {
  position: absolute;
  background: rgba(26,92,255,0.1);
  border: 1px solid rgba(26,92,255,0.28);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  pointer-events: none;
  white-space: nowrap;
}
.sb-1 { top: 10%; left: 0%;    animation: floatBadge 7s ease-in-out infinite 0s; }
.sb-2 { top: 20%; right: 2%;   animation: floatBadge 7s ease-in-out infinite 1.8s; }
.sb-3 { bottom: 18%; right: 0%; animation: floatBadge 7s ease-in-out infinite 3.5s; }
.sb-4 { bottom: 8%; left: 5%;  animation: floatBadge 7s ease-in-out infinite 5.2s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0);   opacity: 0.6; }
  50%      { transform: translateY(-9px); opacity: 1; }
}

/* ── Homepage: Website Style Cards ── */
.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.ws-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.ws-card:hover { box-shadow: 0 12px 40px rgba(26,92,255,0.12); transform: translateY(-4px); }
.ws-card h4 { padding: 0 1.25rem; margin: 1rem 0 0.5rem; font-size: 16px; }
.ws-card p  { padding: 0 1.25rem; color: #475569; font-size: 13.5px; line-height: 1.6; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 1rem 1.25rem 1.25rem; }
.ws-tags span { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--gray-bg); color: #64748B; font-weight: 500; }

/* Mini browser */
.ws-mini-browser { width: 100%; border-bottom: 1px solid var(--gray-line); overflow: hidden; }
.ws-browser-bar { height: 22px; background: #f0f0f0; display: flex; align-items: center; padding: 0 10px; gap: 5px; border-bottom: 1px solid #ddd; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ws-dot.r { background: #FF5F57; } .ws-dot.y { background: #FEBC2E; } .ws-dot.g { background: #28C840; }
.ws-preview { width: 100%; height: 130px; overflow: hidden; padding: 6px; }

/* Nav bars in different styles */
.ws-nav-bar { height: 14px; border-radius: 3px; margin-bottom: 6px; background: #1A1A2E; }
.ws-nav-bar.dark { background: #0d1117; }
.ws-nav-bar.light { background: #ffffff; border: 1px solid #e2e8f0; }
.ws-nav-bar.warm { background: #7C3AED; }
.ws-nav-bar.minimal { background: transparent; }

/* Professional Services preview */
.ws-pro { background: #f8faff; }
.ws-hero-block { background: var(--blue); border-radius: 4px; padding: 8px; margin-bottom: 6px; }
.ws-h-text  { height: 8px; background: rgba(255,255,255,0.8); border-radius: 2px; width: 75%; margin-bottom: 4px; }
.ws-h-sub   { height: 5px; background: rgba(255,255,255,0.4); border-radius: 2px; width: 55%; margin-bottom: 6px; }
.ws-h-btn   { height: 12px; background: #fff; border-radius: 3px; width: 30%; }
.ws-icon-row { display: flex; gap: 4px; }
.ws-icon-item { flex: 1; height: 20px; background: #e2eaf8; border-radius: 3px; }

/* Local Business / Trade preview */
.ws-trade { background: #111827; }
.ws-trade-hero { background: #1A5CFF; height: 40px; border-radius: 3px; margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.ws-t-badge { width: 35px; height: 10px; background: rgba(255,255,255,0.9); border-radius: 20px; }
.ws-t-phone { width: 50px; height: 14px; background: #fff; border-radius: 3px; }
.ws-trade-services { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ws-ts-card { height: 22px; background: rgba(255,255,255,0.08); border-radius: 3px; }

/* E-commerce preview */
.ws-ecom { background: #fafafa; }
.ws-ecom-hero { height: 28px; background: linear-gradient(135deg, #1A5CFF, #6366f1); border-radius: 3px; margin-bottom: 5px; }
.ws-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ws-product { height: 30px; background: #e8edf5; border-radius: 3px; }

/* Tech / Dark mode preview */
.ws-dark { background: #0d1117; }
.ws-dark-hero { padding: 6px 4px; margin-bottom: 4px; }
.ws-d-tag { height: 8px; background: rgba(26,92,255,0.4); border-radius: 10px; width: 40%; margin-bottom: 4px; }
.ws-d-heading { height: 10px; background: rgba(255,255,255,0.7); border-radius: 2px; width: 80%; margin-bottom: 6px; }
.ws-d-btns { display: flex; gap: 4px; }
.ws-d-btn { height: 11px; border-radius: 3px; width: 35px; }
.ws-d-btn.primary { background: var(--blue); }
.ws-d-btn.outline { background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.ws-feature-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.ws-feat-card { height: 20px; background: rgba(255,255,255,0.06); border-radius: 3px; border: 1px solid rgba(255,255,255,0.08); }

/* Nonprofit preview */
.ws-nonprofit { background: #faf5ff; }
.ws-np-hero { background: linear-gradient(135deg, #7C3AED, #C026D3); border-radius: 3px; padding: 6px; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.ws-np-headline { flex: 1; height: 8px; background: rgba(255,255,255,0.85); border-radius: 2px; }
.ws-np-donate { height: 16px; width: 40px; background: #fff; border-radius: 3px; }
.ws-np-mission { display: flex; gap: 5px; align-items: flex-start; }
.ws-np-text { flex: 1; background: rgba(124,58,237,0.08); border-radius: 3px; height: 28px; }
.ws-np-stats { display: flex; flex-direction: column; gap: 3px; width: 50px; }
.ws-np-stat { height: 8px; background: rgba(124,58,237,0.15); border-radius: 2px; }

/* Portfolio preview */
.ws-portfolio { background: #111; }
.ws-port-hero { height: 28px; background: #2d3748; border-radius: 3px; margin-bottom: 4px; }
.ws-port-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4px; }
.ws-port-item { background: #374151; border-radius: 3px; height: 28px; }
.ws-port-item.tall { height: 100%; }
.ws-port-col { display: flex; flex-direction: column; gap: 4px; }

/* ── Personal Page: Assist Deep Grid ── */
.assist-deep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.assist-deep-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.assist-deep-card:hover { box-shadow: 0 8px 32px rgba(26,92,255,0.1); transform: translateY(-3px); }
.assist-deep-icon { font-size: 36px; margin-bottom: 1rem; }
.assist-deep-hook { color: var(--blue); font-weight: 600; font-size: 14px; margin: 0.5rem 0 1.25rem; }
.assist-scenarios { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.assist-scenarios li { font-size: 14px; color: #475569; padding-left: 1.25rem; position: relative; line-height: 1.55; }
.assist-scenarios li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── Personal Page: Memory Grid ── */
.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.memory-example {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.mem-quote {
  font-size: 14px; color: var(--charcoal); font-style: italic; line-height: 1.55;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--gray-line); margin-bottom: 0.85rem;
}
.mem-quote::before { content: '"'; color: var(--blue); font-weight: 700; font-style: normal; }
.mem-result { font-size: 13px; color: #22C55E; font-weight: 600; }

/* ── Personal Widget: Brief Screen ── */
.sc-brief-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-brief-greeting { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.sc-brief-date { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; letter-spacing: 0.04em; }

.sc-brief-body { flex: 1; padding: 10px 16px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.brief-section-lbl { font-size: 9px; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.brief-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0; transform: translateX(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.brief-item.show { opacity: 1; transform: translateX(0); }
.bi-time { font-size: 10px; color: rgba(255,255,255,0.35); flex-shrink: 0; width: 36px; }
.bi-label { font-size: 12px; color: rgba(255,255,255,0.8); flex: 1; }
.bi-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45);
}
.bi-tag.ready { background: rgba(34,197,94,0.15); color: #22C55E; }
.bi-tag.warn  { background: rgba(245,158,11,0.15); color: #F59E0B; }

.sc-brief-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.brief-stat { font-size: 10px; color: rgba(255,255,255,0.35); }
.brief-stat.blue { color: var(--blue); font-weight: 600; }
.brief-dot { color: rgba(255,255,255,0.15); }

/* ── Personal Widget: Research Screen ── */
.sc-res-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-res-label { font-size: 9px; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.sc-res-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }

.sc-res-body { flex: 1; padding: 6px 0; overflow: hidden; }
.res-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.res-row.show { opacity: 1; transform: translateY(0); }
.res-row:last-child { border-bottom: none; }
.res-key { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; text-transform: uppercase; width: 52px; flex-shrink: 0; }
.res-val { font-size: 12px; color: rgba(255,255,255,0.75); }

.sc-res-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  flex-shrink: 0;
}
.res-angle {
  font-size: 11px; color: var(--blue); font-weight: 500;
  opacity: 0; transition: opacity 0.4s ease;
}
.res-angle.show { opacity: 1; }

/* ── Personal Widget: Calendar Screen ── */
.sc-cal-hdr {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sc-cal-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.sc-cal-sub { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }

.sc-cal-body { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cal-conflict {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px; padding: 12px;
}
.cc-label { font-size: 9px; letter-spacing: 0.1em; color: #F87171; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.cc-items { display: flex; flex-direction: column; gap: 4px; }
.cc-item { font-size: 12px; color: rgba(255,255,255,0.7); }
.cc-vs { font-size: 18px; color: #F87171; font-weight: 700; text-align: center; line-height: 1; }

.cal-resolution {
  background: rgba(34,197,94,0.07); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px; padding: 12px;
  opacity: 0; transition: opacity 0.4s ease;
}
.cal-resolution.show { opacity: 1; }
.cr-label { font-size: 9px; letter-spacing: 0.1em; color: #22C55E; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.cr-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.7); padding: 3px 0; }
.cr-icon { width: 16px; flex-shrink: 0; }
.cr-check { color: #22C55E; font-weight: 700; margin-left: auto; opacity: 0; transition: opacity 0.3s ease; }
.cr-check.show { opacity: 1; }

.sc-cal-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

/* ---- Browser Mockup ---- */
.browser-mockup {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 0.85rem;
  background: #fff;
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F1F3F4;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.browser-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  height: 18px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 9px;
  color: #6b7280;
  font-family: monospace;
  display: flex;
  align-items: center;
  padding: 0 8px;
}
.browser-screen {
  height: 450px;
  overflow: hidden;
  position: relative;
}
.browser-screen:hover .mockup-scroll,
.ind-card:hover .mockup-scroll {
  animation-play-state: running;
}
/* Touch devices: the pan is finger-driven — see touchPanMockups() in
   animations.js. Drag inside a tile to scroll the example site. */
.mockup-scroll {
  width: 100%;
  display: block;
  animation: mockup-pan 8s ease-in-out infinite alternate;
  animation-play-state: paused;
  transform-origin: top center;
}
@keyframes mockup-pan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + 450px)); }
}
.bs-nav {
  height: 22px;
  width: 100%;
}

/* ---- Mobile only / hide utilities ---- */
.mobile-only { display: none; }
.nav-hamburger { display: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    z-index: 999;
    gap: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
  }
  .nav-links.open li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open li a { display: block; padding: 0.85rem 0; font-size: 16px; }
  .nav-links.open .nav-cta {
    margin-top: 0.75rem;
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 38px;
    height: 38px;
  }
  .nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.2s;
    transform-origin: center;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile show/hide */
  .mobile-hide { display: none !important; }
  .ind-grid { grid-template-columns: 1fr; }
  .mobile-only { display: block; }

  /* Mobile quick services grid */
  .mobile-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .mobile-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 0.75rem;
    background: #fff;
    border: 1.5px solid rgba(26,92,255,0.13);
    border-radius: 12px;
    text-decoration: none;
    gap: 0.4rem;
    transition: border-color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-service-card:active { transform: scale(0.96); border-color: var(--blue); }
  .ms-icon { font-size: 1.6rem; }
  .ms-label { font-size: 12px; font-weight: 600; color: var(--charcoal); text-align: center; }

  /* Layout */
  .serge-steps { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .story-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .start-grid { grid-template-columns: 1fr; }
  .assist-teaser-grid { grid-template-columns: 1fr; gap: 0.65rem; margin-top: 1.5rem; }
  .assist-teaser-card { padding: 1.1rem 1.25rem; }
  .at-icon { font-size: 24px; margin-bottom: 0.35rem; }
  .assist-teaser-card h3 { font-size: 17px; margin-bottom: 0.25rem; }
  .assist-teaser-card p { font-size: 13px; line-height: 1.5; margin-bottom: 0.5rem; }
  .assist-teaser-card.featured { box-shadow: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .compare-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .assist-deep-grid { grid-template-columns: 1fr; }
  .memory-grid { grid-template-columns: 1fr; }
  .ws-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .shape3d-wrap { width: 100%; max-width: 420px; height: 520px; }
  #hero-canvas { max-width: 100%; }

  /* Tighter hero on mobile */
  .hero-sales { padding-top: 3rem !important; padding-bottom: 2.5rem !important; }
  .hero-sales h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero-sub { font-size: 15px; }
  .hero-trust { justify-content: center; flex-wrap: wrap; gap: 0.5rem; }

  /* Hero orbs — scaled for mobile light bg */
  .hero-bg-orbs { display: block; }
  .hbo-blue  { width: 280px; height: 280px; background: rgba(26,92,255,0.13); top: -60px; right: -60px; animation-duration: 20s; }
  .hbo-purple { width: 220px; height: 220px; background: rgba(99,102,241,0.11); bottom: -40px; left: -40px; animation-duration: 24s; }
  .hbo-teal  { width: 160px; height: 160px; background: rgba(20,184,166,0.08); top: 40%; right: 10%; animation-duration: 16s; }

  /* Service cards — color left-border accent per card */
  .mobile-services-grid a:nth-child(1) { border-left: 3px solid #1A5CFF; }
  .mobile-services-grid a:nth-child(2) { border-left: 3px solid #6366F1; }
  .mobile-services-grid a:nth-child(3) { border-left: 3px solid #059669; }
  .mobile-services-grid a:nth-child(4) { border-left: 3px solid #7C3AED; }
  .mobile-services-grid a:nth-child(1):active { background: rgba(26,92,255,0.05); box-shadow: 0 4px 16px rgba(26,92,255,0.12); }
  .mobile-services-grid a:nth-child(2):active { background: rgba(99,102,241,0.05); box-shadow: 0 4px 16px rgba(99,102,241,0.12); }
  .mobile-services-grid a:nth-child(3):active { background: rgba(5,150,105,0.05); box-shadow: 0 4px 16px rgba(5,150,105,0.12); }
  .mobile-services-grid a:nth-child(4):active { background: rgba(124,58,237,0.05); box-shadow: 0 4px 16px rgba(124,58,237,0.12); }

  /* AI tier cards — top accent bar + icon bg tint */
  .at-personal  { border-top: 3px solid #1A5CFF !important; box-shadow: none !important; }
  .at-business  { border-top: 3px solid #6366F1 !important; box-shadow: none !important; }
  .at-enterprise { border-top: 3px solid #7C3AED !important; box-shadow: none !important; }
  .at-personal  .at-icon { background: rgba(26,92,255,0.08); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 0.5rem; }
  .at-business  .at-icon { background: rgba(99,102,241,0.08); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 0.5rem; }
  .at-enterprise .at-icon { background: rgba(124,58,237,0.08); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 0.5rem; }

  /* Promise callout compact */
  .callout h2 { font-size: clamp(20px, 5vw, 28px); }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ws-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .assist-deep-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .serge-steps { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}
