:root {
  color-scheme: light;
  --primary: #337ea9;
  --primary-dark: #2a6889;
  --primary-light: #dbebf1;
  --ink: #14202b;
  --ink-soft: #4b5b66;
  --paper: #ffffff;
  --paper-soft: #f6f8fa;
  --beige: #f4efe6;
  --border: #e6ebee;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 20px 45px -20px rgba(20, 32, 43, 0.18);
  --shadow-soft: 0 10px 30px -12px rgba(20, 32, 43, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: var(--paper-soft);
}

.lang-toggle button {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.lang-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.nav-lang-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(51, 126, 169, 0.55);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 16px 30px -10px rgba(51, 126, 169, 0.65);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 70px;
  background: linear-gradient(180deg, var(--primary-light) 0%, rgba(219, 235, 241, 0) 100%);
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  background: #4caf7d;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Composite: desktop screenshot large, tablet + mobile overlapping at the
   bottom-right corner — shows the same product working on every screen size
   in a single glance, rather than three separate flat images. */
.hero-shot-wrap {
  position: relative;
  margin: 56px auto 0;
  max-width: 1040px;
  padding-bottom: 60px;
}

.hero-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: #fff;
}

.hero-shot-desktop {
  width: 100%;
}

.hero-shot-tablet {
  position: absolute;
  width: 26%;
  right: 12%;
  bottom: -40px;
  border-radius: var(--radius-md);
  border-width: 3px;
  border-color: #fff;
  box-shadow: 0 16px 32px -14px rgba(20, 32, 43, 0.3);
}

.hero-shot-mobile {
  position: absolute;
  width: 14%;
  right: 0;
  bottom: -60px;
  border-radius: 12px;
  border-width: 3px;
  border-color: #fff;
  box-shadow: 0 16px 32px -14px rgba(20, 32, 43, 0.32);
}

/* ---------- Wave separators ---------- */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

.wave path {
  fill: var(--paper-soft);
}

.wave.flip {
  transform: scaleY(-1);
}

/* ---------- Section scaffolding ---------- */
section {
  position: relative;
}

.section-pad {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-head .kicker {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.bg-soft {
  background: var(--paper-soft);
}

/* ---------- Feature showcase (alternating) ---------- */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.showcase-row.reverse .showcase-text {
  order: 2;
}

.showcase-row.reverse .showcase-img {
  order: 1;
}

.showcase-text .tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.showcase-text h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.showcase-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 22px;
}

.showcase-text ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.showcase-text li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.showcase-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

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

.grid-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.grid-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.grid-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.grid-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Devices strip ---------- */
.devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.device-item svg {
  color: var(--primary);
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.billing-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  background: var(--paper-soft);
}

.billing-switch button {
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  padding: 9px 18px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.billing-switch button.active {
  background: var(--ink);
  color: #fff;
}

.save-badge {
  background: #e4f5ec;
  color: #1e8a54;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.billing-switch button:not(.active) .save-badge {
  background: rgba(30, 138, 84, 0.12);
}

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

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-card);
  position: relative;
  transform: translateY(-8px);
}

.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.price-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.price-card .plan-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 22px;
  min-height: 40px;
}

.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 26px;
}

.price-card .price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-card .price .period {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
}

.price-card li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.price-card li.muted {
  color: #b7bec3;
}

.price-card li.muted svg {
  color: #d3d8db;
}

.price-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 36px;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.35), transparent 70%);
  top: -160px;
  right: -120px;
}

.contact-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-actions .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.contact-actions .btn-primary:hover {
  background: var(--primary-light);
}

.contact-email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  text-align: center;
}

.contact-email a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: #9aa5ab;
  font-size: 0.82rem;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-lang-mobile {
    display: block;
    margin-top: 4px;
  }

  .nav-actions .lang-toggle,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-inner {
    justify-content: flex-start;
  }

  .nav-actions {
    gap: 10px;
    margin-left: auto;
    order: 2;
  }

  .nav-toggle {
    order: 3;
    margin-left: 4px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-row .showcase-text,
  .showcase-row.reverse .showcase-text,
  .showcase-row .showcase-img,
  .showcase-row.reverse .showcase-img {
    order: initial;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .price-card.featured {
    transform: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    text-align: center;
  }

  .contact-actions {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .section-pad {
    padding: 64px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

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

  .showcase {
    gap: 70px;
  }

  .contact-card {
    padding: 36px 20px;
  }

  /* Three nested screenshots would be too small to read on a phone screen —
     the desktop shot alone (still showing the same real product) reads
     better here than a cluttered composite. */
  .hero-shot-wrap {
    padding-bottom: 0;
  }

  .hero-shot-tablet,
  .hero-shot-mobile {
    display: none;
  }
}
