/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:       #F8F9FB;
  --surface:  #FFFFFF;
  --text:     #1A2332;
  --muted:    #5C6A7E;
  --border:   #DDE2EA;
  --primary:  #1E3A5F;
  --primary2: #2D5FA0;
  --shadow:   0 2px 16px rgba(30, 58, 95, 0.08);
  --radius:   14px;
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary2);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary2);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  list-style: none;
}

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  flex-shrink: 0;
}

.nav__logo:hover {
  color: var(--primary2);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav__link:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.05);
}

.nav__link--active {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}

.btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.3);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--secondary:hover {
  background: rgba(30, 58, 95, 0.05);
  color: var(--primary);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(45, 95, 160, 0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(30, 58, 95, 0.06) 0%, transparent 60%),
    var(--bg);
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary2);
  margin-bottom: 20px;
}

.hero__h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero__body {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.trust-strip__dot {
  color: var(--border);
  font-size: 1rem;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: 88px 0;
}

.section__heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-align: center;
  margin-bottom: 48px;
}

.section__heading--left {
  text-align: left;
  margin-bottom: 24px;
  font-size: 1.4rem;
}

/* ============================================================
   SECTION — PROBLEM
   ============================================================ */
.section--problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.prose p + p {
  margin-top: 16px;
}

.prose--centered {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

/* ============================================================
   SECTION — FEATURES GRID
   ============================================================ */
.section--features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.12);
}

.feature-card__icon {
  color: var(--primary2);
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 95, 0.06);
  border-radius: 10px;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   TOUR PAGE HERO
   ============================================================ */
.tour-page-hero {
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(45, 95, 160, 0.09) 0%, transparent 70%),
    var(--bg);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.tour-page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 16px;
}

.tour-page-hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   TOUR TEASER (homepage)
   ============================================================ */
.section--tour-teaser {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tour-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.tour-teaser__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 16px;
}

.tour-teaser__body {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.tour-teaser__screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.browser-frame--sm .browser-frame__bar {
  padding: 7px 10px;
}

.browser-frame--sm img {
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

.browser-frame--offset {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .tour-teaser__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tour-teaser__screens {
    grid-template-columns: 1fr 1fr;
  }

  .browser-frame--offset {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .tour-teaser__screens {
    grid-template-columns: 1fr;
  }

  .browser-frame--offset {
    margin-top: 0;
  }
}

/* ============================================================
   SECTION — PRODUCT TOUR
   ============================================================ */
.section--tour {
  background: var(--bg);
}

.section__eyebrow {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary2);
  text-align: center;
  margin-bottom: 12px;
}

.section__subhead {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: -28px auto 72px;
  line-height: 1.7;
}

.tour-item {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.tour-item:last-child {
  margin-bottom: 0;
}

.tour-item--reverse {
  grid-template-columns: 1.6fr 1fr;
}

.tour-item--reverse .tour-item__text {
  order: 2;
}

.tour-item--reverse .tour-item__screen {
  order: 1;
}

.tour-item__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary2);
  background: rgba(45, 95, 160, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.tour-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.tour-item__body {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
}

.tour-item__screen--paired {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-item__screen--paired .browser-frame img {
  max-height: 260px;
  object-fit: cover;
  object-position: top;
}

/* Browser frame mockup */
.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(30, 58, 95, 0.12);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F1F3F6;
  border-bottom: 1px solid var(--border);
}

.browser-frame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.browser-frame__dot:nth-child(1) { background: #FF5F57; }
.browser-frame__dot:nth-child(2) { background: #FFBD2E; }
.browser-frame__dot:nth-child(3) { background: #28C840; }

.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .tour-item,
  .tour-item--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .tour-item--reverse .tour-item__text,
  .tour-item--reverse .tour-item__screen {
    order: unset;
  }

  .section__subhead {
    margin-bottom: 48px;
  }
}

/* ============================================================
   SECTION — SECURITY / TWO-COL
   ============================================================ */
.section--security {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232D5FA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ============================================================
   SECTION — FINAL CTA
   ============================================================ */
.section--cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  padding: 100px 0;
}

.cta-final__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-final__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 20px;
}

.cta-final__body {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 36px;
}

.section--cta-final .btn--primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.section--cta-final .btn--primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  color: var(--primary);
}

/* ============================================================
   INNER PAGES (single.html)
   ============================================================ */
.inner-page {
  padding: 80px 0 96px;
}

.inner-page__header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
}

.inner-page__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.inner-page__content {
  max-width: 720px;
}

/* prose styles for inner pages */
.inner-page__content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 12px;
}

.inner-page__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 10px;
}

.inner-page__content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.inner-page__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.inner-page__content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.inner-page__content ul li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232D5FA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.inner-page__content a {
  color: var(--primary2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* form placeholder */
.form-placeholder {
  margin-top: 40px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-placeholder a {
  color: var(--primary2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* inner-page hr */
.inner-page__content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section--two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 72px 0 60px;
  }

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

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

  .nav__inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
    gap: 12px;
  }

  .nav__links {
    gap: 4px;
  }

  .section {
    padding: 64px 0;
  }

  .section--cta-final {
    padding: 72px 0;
  }
}
