:root {
  --bg: #f4f8ff;
  --text: #0f1e31;
  --muted: #5d6a7b;
  --surface: #ffffff;
  --line: #dce6f6;
  --primary: #0057ff;
  --primary-2: #00a3ff;
  --accent: #ff7a00;
}

.w-100 { width: 100%; }
.d-none { display: none !important; }
.text-white { color: #fff !important; }

.btn-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, .18);
  cursor: pointer;
  position: relative;
}
.btn-close::before,
.btn-close::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 7px;
  width: 14px;
  height: 2px;
  background: #334155;
}
.btn-close::before { transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }

.app-modal .btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.app-modal .btn-light {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f1e31;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at 20% -10%, #dff0ff 0%, #f4f8ff 42%), var(--bg);
  color: var(--text);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  filter: blur(70px);
  opacity: .24;
}
.bg-shape-1 {
  width: 420px;
  height: 420px;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  top: -140px;
  right: -120px;
}
.bg-shape-2 {
  width: 380px;
  height: 380px;
  border-radius: 60% 40% 50% 50%;
  background: linear-gradient(120deg, #ffc58a, var(--accent));
  bottom: -120px;
  left: -120px;
}

.topbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.topbar.compact { padding-top: 14px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { font-weight: 700; letter-spacing: .2px; }
nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: #29415d;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
nav a svg.feather,
.topbar-actions a svg.feather,
.btn-primary svg.feather,
.btn-ghost svg.feather,
.inline-link svg.feather {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.topbar-actions {
  display: flex;
  gap: 8px;
}
.mobile-nav-toggle {
  display: none;
  border: 1px solid #c8daf3;
  background: #f4f8ff;
  color: #183b63;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.mobile-nav-toggle svg.feather {
  width: 16px;
  height: 16px;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px 50px;
}
main.subpage { padding-top: 14px; }
section { margin: 26px 0; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #385d84;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: "IBM Plex Sans", sans-serif;
  margin: 0;
}
h1 {
  margin-top: 10px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.sub-title { font-size: clamp(28px, 5vw, 46px); }
h1 span {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  margin-top: 16px;
  color: #2f4560;
  max-width: 64ch;
}

.hero {
  display: grid;
  grid-template-columns: 1.07fr .93fr;
  gap: 22px;
  align-items: center;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn-primary,
.btn-ghost,
.btn-nav {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-sm {
  padding: 9px 13px;
  font-size: 13px;
}
.btn-primary {
  background: linear-gradient(100deg, #004cff, #00a3ff);
  color: #fff;
}
.btn-ghost {
  border-color: #b9c8dc;
  color: #123154;
  background: rgba(255,255,255,.7);
}
.btn-nav {
  background: #0b1e3b;
  color: #fff;
}
.btn-primary.full,
.btn-ghost.full {
  width: 100%;
  justify-content: center;
}

.hero-points {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #3f556f;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(8, 37, 79, .08);
}
.hero-card-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: #3b5878;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f9fbff;
}
.hero-grid h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.showcase,
.modules,
.roadmap,
.final-cta,
.pricing,
.faq,
.social-grid,
.pricing-hero,
.compare-section,
.sales-flow,
.contact-section,
.auth-zone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.showcase p,
.final-cta p { color: var(--muted); }

.showcase-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.showcase-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.demo-mockups {
  background: linear-gradient(160deg, #ffffff, #f4f9ff);
  border: 1px solid #dbe7f8;
  border-radius: 24px;
  padding: 24px;
}
.demo-mockups p { color: var(--muted); }
.mockups-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mockup-card {
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 41, 84, .08);
}
.mockup-browser {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d4e1f5;
  background: #f5f9ff;
}
.mockup-browser-top {
  height: 28px;
  background: #edf3ff;
  border-bottom: 1px solid #d4e1f5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}
.mockup-browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9bb5dc;
}
.mockup-browser img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.mockup-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #133d77;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #c8daf7;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 6px 14px rgba(18, 59, 113, .14);
}
.mockup-chip svg.feather {
  width: 13px;
  height: 13px;
}
.mockup-chip-left {
  left: 10px;
  top: 38px;
}
.mockup-chip-right {
  right: 10px;
  bottom: 12px;
}
.mockup-card h3 {
  margin-top: 12px;
  font-size: 18px;
}
.mockup-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.modules-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.modules-grid article {
  background: #f8fbff;
  border: 1px solid #d8e5f7;
  border-radius: 14px;
  padding: 14px;
}
.modules-grid h3 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modules-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-zone-head p { color: var(--muted); }
.auth-zone-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fbfdff;
}
.auth-preview-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.auth-preview-card p { color: var(--muted); margin: 8px 0 12px; }
.inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: #1354a5;
  text-decoration: none;
  font-weight: 500;
}

.mini-form,
.contact-form {
  display: grid;
  gap: 10px;
}
.form-row {
  display: grid;
  gap: 6px;
}
.form-row label {
  font-size: 13px;
  color: #3b5677;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cad8eb;
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 14px;
  color: #0f1e31;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7aaeff;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .14);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.pricing-hero .trust-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-strip span {
  background: #f7fbff;
  border: 1px solid #d7e6fb;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #274868;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fbfdff;
}
.price-card.featured {
  border: 2px solid #76b5ff;
  background: linear-gradient(160deg, #f8fbff, #ecf5ff);
}
.plan-tag {
  font-size: 12px;
  font-weight: 700;
  color: #2d5a8d;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.price {
  font-size: 35px;
  font-weight: 700;
  margin: 10px 0 12px;
}
.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.price-card li {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: #2d4360;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #dce6f6;
}
th {
  font-size: 13px;
  text-transform: uppercase;
  color: #486487;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.flow-grid article {
  border: 1px solid #dce6f6;
  border-radius: 14px;
  padding: 14px;
  background: #f9fcff;
}
.flow-grid span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dce9ff;
  color: #184f9e;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.flow-grid p { color: var(--muted); margin: 8px 0 0; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.social-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}
.social-grid h3 {
  font-size: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.social-grid p { color: var(--muted); }

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #dce6f6;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 48px rgba(9, 38, 76, .12);
}
.auth-brand { margin-bottom: 10px; }
.auth-switch {
  margin-top: 12px;
  color: #4e6480;
  font-size: 14px;
}
.auth-switch a {
  color: #1558aa;
  text-decoration: none;
  font-weight: 600;
}

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 28px;
  color: #4e6480;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1140px) {
  .pricing { grid-template-columns: 1fr 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px;
  }
  nav { justify-content: flex-start; }
  main,
  footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero { grid-template-columns: 1fr; }
  .modules-grid,
  .showcase-grid,
  .mockups-grid,
  .social-grid,
  .auth-zone-grid,
  .contact-section,
  .pricing-hero .trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .topbar {
    width: calc(100% - 12px);
    margin: 8px auto 0;
    border-radius: 14px;
    gap: 10px;
  }
  .brand {
    width: auto;
  }
  .mobile-nav-toggle {
    display: inline-flex;
  }
  nav {
    width: 100%;
    display: grid;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .22s ease, opacity .22s ease;
  }
  .topbar.mobile-nav-open nav {
    max-height: 420px;
    opacity: 1;
  }
  nav a {
    width: 100%;
    padding: 8px 0;
  }
  nav a.btn-nav {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
  }
  .topbar-actions { width: 100%; }
  .topbar-actions a,
  .topbar-actions button { flex: 1; justify-content: center; }
  .modules-grid,
  .showcase-grid,
  .mockups-grid,
  .hero-grid,
  .pricing,
  .social-grid,
  .flow-grid,
  .auth-zone-grid,
  .contact-section,
  .pricing-hero .trust-strip { grid-template-columns: 1fr; }
  .showcase-grid img { height: 190px; }
  .showcase,
  .modules,
  .roadmap,
  .final-cta,
  .pricing,
  .faq,
  .social-grid,
  .pricing-hero,
  .compare-section,
  .sales-flow,
  .contact-section,
  .auth-zone { padding: 18px; }
  .mockup-browser img {
    height: 180px;
  }
  .auth-card {
    border-radius: 16px;
    padding: 18px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn-primary,
  .btn-ghost,
  .btn-nav {
    width: 100%;
    justify-content: center;
  }
  .showcase-grid img {
    height: 160px;
  }
  .sub-title {
    font-size: 28px;
  }
  section {
    margin: 16px 0;
  }
}
