/* ===== Your AI Secretary ===== */

:root {
  --navy: #0F172A;
  --slate: #1E293B;
  --purple: #8B5CF6;
  --purple-dim: #7c4ff0;
  --gray-light: #E5E7EB;
  --lavender: #F5F3FF;
  --amber: #F59E0B;

  /* semantic tokens for the light theme */
  --bg: var(--lavender);
  --bg-alt: #ECE8FC;
  --text-heading: var(--navy);
  --text-body: #3F4A63;
  --text-muted: #6B7280;
  --border: rgba(15, 23, 42, 0.09);
  --card-bg: #FFFFFF;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(245, 243, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.nav .logo span { color: var(--purple); }
.logo-rotate {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.logo-rotate.swap {
  opacity: 0;
  transform: translateY(4px);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-body);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--purple); }

.nav-cta {
  background: var(--purple);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--purple-dim); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Hero / Frame 1 ---------- */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 60px;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.16;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(139,92,246,0.14), transparent 60%),
              linear-gradient(180deg, rgba(245,243,255,0.1) 0%, rgba(245,243,255,0.92) 92%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-heading);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--purple), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 14px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,92,246,0.28);
}
.btn-primary:hover { background: var(--purple-dim); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid rgba(15,23,42,0.18);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(139,92,246,0.8), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* ---------- Section shared ---------- */
section { position: relative; padding: 64px 0; }
.section-slate { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-tag {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--text-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Frame 2: Define the concierge ---------- */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.flash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.flash-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.flash-card .num {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.flash-card h3 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.flash-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Buzzword marquee ---------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 26px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 26px;
}
.marquee-track span::after {
  content: '\2022';
  color: var(--purple);
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Frame 3: Quote + where it lives ---------- */
.quote-block {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.quote-block blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 18px;
}
.quote-block cite {
  font-style: normal;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 600;
}

.lives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.lives-card {
  text-align: center;
  padding: 30px 18px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.lives-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.4); }
.lives-card .icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(139,92,246,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  font-size: 1.4rem;
}
.lives-card h4 { color: var(--text-heading); font-size: 1.02rem; margin-bottom: 6px; font-weight: 600; }
.lives-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Frame 4: Live demo ---------- */
.demo-panel {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(139,92,246,0.08), rgba(255,255,255,0.6));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 20px;
  padding: 36px;
}
.demo-window {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}
.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.demo-window-bar .dots { display: flex; gap: 6px; }
.demo-window-bar span.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(15,23,42,0.15);
}
.demo-agent-name {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-agent-name .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
}
.demo-chat {
  padding: 24px;
  height: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.demo-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-msg.caller {
  align-self: flex-start;
  background: var(--bg-alt);
  color: var(--text-body);
  border-bottom-left-radius: 4px;
}
.demo-msg.ai {
  align-self: flex-end;
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.demo-msg.typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-bottom-left-radius: 4px;
}
.demo-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.demo-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.demo-cta { text-align: center; margin-top: 28px; }
.demo-cta p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }

/* ---------- What we give you ---------- */
.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.give-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.give-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.4); }
.give-card .icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--amber);
}
.give-card h4 { color: var(--text-heading); font-size: 1.05rem; margin-bottom: 6px; font-weight: 600; }
.give-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 90px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.12), transparent 60%);
}
.final-cta h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  color: var(--text-heading);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.final-cta p {
  color: var(--text-body);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .logo { color: var(--text-heading); font-weight: 700; }
.footer-inner .logo span { color: var(--purple); }
.footer-links { display: flex; gap: 26px; font-size: 0.88rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--purple); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; margin-top: 20px; text-align: center; }

/* ---------- Our Work page ---------- */
.work-header { padding: 150px 0 56px; text-align: center; }
.work-header .eyebrow { margin-bottom: 20px; }
.work-header h1 { color: var(--text-heading); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.work-header p { color: var(--text-body); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 90px;
}
.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 12px rgba(15,23,42,0.05);
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); }
.work-card-visual {
  height: 200px;
  background: linear-gradient(135deg, rgba(139,92,246,0.28), rgba(245,158,11,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.work-card-body { padding: 24px; }
.work-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 10px;
}
.work-card h3 { color: var(--text-heading); font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.work-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 14px; }
.work-card .work-stats { display: flex; gap: 20px; }
.work-card .work-stats div { font-size: 0.82rem; color: var(--text-muted); }
.work-card .work-stats strong { display: block; color: var(--text-heading); font-size: 1.1rem; }

.work-card.placeholder { opacity: 0.6; }
.work-card.placeholder .work-card-visual { background: var(--bg-alt); color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .lives-grid, .flash-grid, .give-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { padding: 14px 20px; }
  .lives-grid, .flash-grid, .give-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .demo-panel { padding: 22px; }
}
