:root {
  --trade: #1a2f3d;
  --trail: #2b6f8f;
  --primary: #1e4d6b;
  --navy: #102b3a;
  --accent: #e07b2d;
  --accent-soft: #f4a261;
  --text: #3d4543;
  --muted: #6b7280;
  --bg: #f5f7fa;
  --mist: #eef3f8;
  --cream: #fffaf5;
  --white: #ffffff;
  --border: #dde4ec;
  --shadow-sm: 0 1px 3px rgba(16, 43, 58, 0.06);
  --shadow-md: 0 10px 32px rgba(30, 77, 107, 0.12);
  --shadow-lg: 0 22px 56px rgba(26, 47, 61, 0.16);
  --radius: 18px;
  --font-sans: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Libre Franklin", Inter, var(--font-sans);
  --header-h: 84px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
abbr { text-decoration: none; color: var(--accent); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.preview-bar {
  padding: 7px 16px;
  background: var(--navy);
  color: #d9edf5;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Header — bigger tm-v1 lockup (was 44px → 60px) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(221, 228, 236, 0.85);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.brand img.logo {
  height: 60px;
  width: auto;
  max-width: min(300px, 58vw);
}
.header-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.header-nav a:hover { color: var(--trail); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--mist); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 123, 45, 0.28);
}
.btn-primary:hover { background: #c86b22; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.02rem; }

/* Hero */
.hero {
  overflow: hidden;
  padding: 64px 0 52px;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(244, 162, 97, 0.16), transparent 60%),
    linear-gradient(180deg, #f5f7fa 0%, #e8eef4 55%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  color: var(--trail);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  color: var(--trade);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--trail); }
.hero .lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 0.88rem; }

.device-frame {
  background: var(--navy);
  border-radius: 18px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-lg);
}
.device-dots { display: flex; gap: 6px; padding: 4px 8px 10px; }
.device-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: #3d5a68;
}
.device-frame img {
  border-radius: 10px;
  width: 100%;
  cursor: zoom-in;
  background: #fff;
}

.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section.cream { background: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  color: var(--trail);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin: 0 0 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  color: var(--trade);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.who-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.who-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.who-card .tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.who-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--trade);
  font-weight: 700;
}
.who-card p { margin: 0; color: var(--muted); }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .shot {
  background: #dce5ed;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.feature-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.feature-card .body { padding: 20px 20px 22px; }
.feature-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--trade);
  font-weight: 700;
}
.feature-card p { margin: 0 0 12px; color: var(--muted); }
.feature-card ul {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 7px;
}
.feature-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--trade);
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.phone-col { text-align: center; }
.phone {
  width: min(260px, 100%);
  margin: 0 auto 16px;
  background: #11181f;
  border-radius: 34px;
  padding: 11px 9px 14px;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  display: block;
  width: 88px; height: 16px;
  background: #11181f;
  border-radius: 0 0 14px 14px;
  margin: -11px auto 8px;
}
.phone img { border-radius: 22px; width: 100%; cursor: zoom-in; }
.phone-col h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  color: var(--trade);
  font-weight: 700;
}
.phone-col p {
  margin: 0 auto;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* AI agents */
.agents-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
.agents-copy {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.agents-copy p { margin: 0 0 14px; color: var(--muted); }
.agents-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.agents-list li {
  position: relative;
  padding-left: 18px;
  color: var(--trade);
  font-size: 0.98rem;
}
.agents-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--trail);
}
.agents-note { font-size: 0.88rem !important; color: var(--muted) !important; }
.agents-callout {
  background: linear-gradient(160deg, #16394f, #1e4d6b 70%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
}
.agents-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ec5d6;
}
.agents-names {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.agents-callout p:last-child { margin: 0; color: #d5e2ea; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}
.about-card, .founder-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.about-blurb { margin: 0; color: var(--muted); font-size: 1.02rem; }
.founder-card h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  color: var(--trade);
  font-weight: 800;
  font-size: 1.2rem;
}
.founder-role {
  margin: 0 0 10px;
  color: var(--trail);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.founder-card p:last-child { margin: 0; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--trail);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}
.step h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--trade);
  font-weight: 700;
}
.step p { margin: 0; color: var(--muted); }

.final-cta {
  padding: 88px 0;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(224, 123, 45, 0.16), transparent 55%),
    linear-gradient(180deg, #16394f, #1e4d6b 70%);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.final-cta p {
  margin: 0 auto 26px;
  max-width: 540px;
  color: #d5e2ea;
  font-size: 1.06rem;
}
.final-cta .btn { min-width: 240px; }
.final-cta .cta-note {
  margin: 16px auto 0;
  max-width: 520px;
  color: #a9c0cc;
  font-size: 0.86rem;
}

.site-footer {
  background: #122632;
  color: #9eb0bb;
  padding: 32px 0 26px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}
.footer-brand img { height: 28px; width: 28px; border-radius: 7px; }
.footer-meta { display: grid; gap: 6px; text-align: right; }
.footer-meta a { color: #c5d6df; }
.footer-meta a:hover { color: #fff; }
.footer-legal {
  flex-basis: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(158, 176, 187, 0.25);
  font-size: 0.8rem;
  color: #7e929d;
  line-height: 1.45;
}

/* Invite modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 24, 0.72);
}
.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.modal-panel h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  color: var(--trade);
  font-size: 1.55rem;
  font-weight: 800;
}
.modal-lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--trade);
}
.form-grid label.span-2 { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(43, 111, 143, 0.35);
  border-color: var(--trail);
}
.form-actions { margin-top: 18px; }
.form-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.form-success {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--trade);
  font-size: 0.92rem;
}
.form-success a { color: var(--trail); font-weight: 700; text-decoration: underline; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1400px, 96vw);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--trade);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 110;
  max-width: min(420px, calc(100% - 32px));
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.65s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .header-nav { display: none; }
  .hero-grid,
  .who-grid,
  .dash-grid,
  .steps,
  .agents-panel,
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 64px 0; }
  .footer-meta { text-align: left; }
  .phones {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -4px;
  }
  .phone-col {
    flex: 0 0 min(220px, 72vw);
    scroll-snap-align: start;
  }
  .phone { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.span-2 { grid-column: auto; }
}

@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .wrap { width: calc(100% - 28px); }
  .brand img.logo {
    height: 46px;
    max-width: min(220px, 56vw);
  }
  .site-header .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.05rem); }
  .hero .lede { font-size: 1rem; }
  .btn-lg,
  .hero-actions .btn,
  .final-cta .btn { width: 100%; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .final-cta { padding: 64px 0; }
  .modal { padding: 12px; }
  .modal-panel { padding: 22px 18px 18px; }
}
