:root {
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand-navy: #1e3a8a;
  --brand-teal: #14b8a6;
  --brand-ink: #0f172a;
  --accent: #1e3a8a;
  --accent-dark: #172f72;
  --accent-soft: #e8f7f5;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.header-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.header-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-cta {
  color: var(--accent);
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.page-band {
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 9vw, 110px) 0 72px;
}

.hero-logo {
  width: 74px;
  height: 74px;
  margin-bottom: 26px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 570px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.button-primary {
  background: var(--brand-navy);
  color: white;
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.22);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #cbd5e1;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, 300px);
  aspect-ratio: 1080 / 2424;
  padding: 10px;
  border: 1px solid #d7dce4;
  border-radius: 38px;
  background: var(--brand-ink);
  box-shadow: var(--shadow);
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 78px;
  height: 22px;
  border-radius: 99px;
  background: var(--brand-ink);
  transform: translateX(-50%);
}

.device-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 29px;
  object-fit: contain;
  object-position: top center;
  image-rendering: auto;
  background: #f8fafc;
}

.device-frame-large {
  width: min(100%, 315px);
}

.phone {
  position: relative;
  width: min(100%, 318px);
  aspect-ratio: 0.49;
  padding: 13px;
  border: 1px solid #d7dce4;
  border-radius: 38px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-large {
  width: min(100%, 350px);
}

.phone-top {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 78px;
  height: 22px;
  border-radius: 99px;
  background: #111827;
  transform: translateX(-50%);
}

.screen {
  height: 100%;
  overflow: hidden;
  border-radius: 29px;
  background: #ffffff;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 56px 20px 18px;
  font-weight: 800;
}

.status-pill {
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--brand-teal);
  font-size: 13px;
  text-align: center;
}

.capture-box {
  margin: 0 18px 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
}

.task-list {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}

.task-row {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 16px;
  background: #fbfdff;
}

.task-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.task-row small {
  color: var(--muted);
}

.task-dot {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  border: 2px solid var(--brand-teal);
  border-radius: 50%;
}

.bottom-nav {
  position: absolute;
  right: 34px;
  bottom: 32px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bottom-nav span {
  height: 4px;
  border-radius: 99px;
  background: #e5e7eb;
}

.bottom-nav .active {
  background: var(--brand-teal);
}

.workflow,
.why,
.founder {
  padding: clamp(72px, 9vw, 118px) 0;
}

.screenshots,
.trust,
.final-cta {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 36px;
}

.feature-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.trust-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.feature-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.feature-card p,
.trust-card p,
.text-stack p,
.founder-text {
  color: var(--muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 18px 18px 20px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  text-align: left;
}

.screenshot-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.07);
}

.screenshot-frame {
  width: min(100%, 198px);
  margin: 0 auto;
  border-radius: 30px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.screenshot-frame::before {
  top: 15px;
  width: 58px;
  height: 17px;
}

.screenshot-frame img {
  border-radius: 22px;
}

.mini-phone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.56;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 30px;
  background: linear-gradient(#ffffff, #f8fafc);
}

.mini-phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 18px;
  width: 48%;
  height: 10px;
  border-radius: 99px;
  background: #111827;
  box-shadow:
    0 34px 0 #ccfbf1,
    0 68px 0 #e5e7eb,
    0 102px 0 #e5e7eb,
    0 136px 0 #e5e7eb;
}

.mini-phone::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-teal);
}

.mini-phone[data-view="projects"]::after {
  width: 66%;
  height: 10px;
  border-radius: 99px;
  background: #99f6e4;
  box-shadow: 0 -36px 0 #5eead4, 0 -72px 0 #ccfbf1;
}

.mini-phone[data-view="review"]::after {
  right: auto;
  left: 18px;
  width: calc(100% - 36px);
  height: 74px;
  border-radius: 18px;
  background: var(--accent-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 18px;
  font-size: 19px;
}

.text-stack p,
.founder-text {
  margin-bottom: 0;
}

.founder-text {
  max-width: 690px;
  font-size: 20px;
}

.legal-hero {
  padding: clamp(64px, 9vw, 110px) 0 clamp(36px, 6vw, 72px);
}

.legal-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-section {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.legal-document {
  max-width: 820px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.05);
}

.legal-document h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 16px;
}

.legal-document p {
  margin-bottom: 16px;
}

.legal-document ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 6px;
}

.legal-document a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.final-cta {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner .brand {
  color: var(--text);
}

.footer-inner p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(17, 24, 39, 0.72);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 750;
}

.lightbox-phone {
  width: min(380px, 82vw);
}

.lightbox-phone .device-frame {
  width: 100%;
}

.lightbox-screen {
  padding: 56px 20px 20px;
}

.lightbox-screen h3 {
  margin-bottom: 16px;
}

.mock-list {
  display: grid;
  gap: 10px;
}

.mock-item {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.mock-item span {
  display: block;
  width: 70%;
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: #ccfbf1;
}

@media (max-width: 920px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-copy {
    text-align: left;
  }

  .feature-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 14px 20px;
  }

  .header-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .section-shell,
  .footer-inner {
    width: min(100% - 32px, 1120px);
  }

  h1 {
    font-size: 46px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-grid,
  .trust-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .trust-card {
    min-height: auto;
  }

  .mini-phone {
    aspect-ratio: 0.84;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
