:root {
  --ink: #101720;
  --muted: #647181;
  --line: #d9e0e8;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --teal: #0f9f8f;
  --teal-dark: #08766d;
  --blue: #2454d6;
  --amber: #f0a023;
  --rose: #d94b6a;
  --shadow: 0 22px 70px rgba(16, 23, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 224, 232, 0.75);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 8px;
  font-size: 1rem;
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav {
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--teal-dark);
}

.header-actions {
  justify-content: flex-end;
}

.text-link {
  color: var(--muted);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(16, 23, 32, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(16, 23, 32, 0.2);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.button-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 145px);
  padding: clamp(32px, 4vw, 52px) clamp(20px, 5vw, 72px) 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 159, 143, 0.12), transparent 26%),
    linear-gradient(180deg, #f8fbfc 0%, #ffffff 74%);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 4.9vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-subtitle,
.section-heading p,
.split-section > div > p,
.site-footer p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

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

.hero-metrics span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--ink);
}

.product-preview {
  overflow: hidden;
  min-height: 450px;
  background: #111820;
  border: 1px solid #263544;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  color: #9eacba;
  border-bottom: 1px solid #263544;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: var(--rose);
}

.dot-amber {
  background: var(--amber);
}

.dot-green {
  background: var(--teal);
}

.preview-title {
  margin-left: 10px;
  font-size: 0.88rem;
}

.preview-layout {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 400px;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 30px;
  background: #0b1118;
}

.preview-sidebar span {
  width: 30px;
  height: 30px;
  background: #263544;
  border-radius: 8px;
}

.preview-sidebar .active {
  background: var(--teal);
}

.preview-main {
  padding: 28px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.status-row div,
.message-card,
.workflow-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-row div {
  padding: 18px;
}

.status-row p,
.message-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-row strong {
  font-size: 1.55rem;
}

.chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 132px;
  margin: 18px 0;
  padding: 20px;
  background: linear-gradient(180deg, #172431, #0e151d);
  border: 1px solid #263544;
  border-radius: 8px;
}

.chart span {
  flex: 1;
  min-width: 16px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
  border-radius: 8px 8px 0 0;
}

.message-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.badge,
.message-state,
.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.badge {
  color: var(--teal-dark);
  background: #e7f8f5;
}

.message-card h2 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.message-state {
  flex: 0 0 auto;
  color: #0f6f39;
  background: #e7f7ec;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--ink);
}

.logo-strip span {
  min-width: 135px;
  padding: 10px 16px;
  color: #cbd6e0;
  text-align: center;
  border: 1px solid #2f3d4b;
  border-radius: 8px;
}

.section,
.split-section,
.testimonial-section,
.cta-section {
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-card,
.price-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card p,
.price-card p,
.price-card li,
.workflow-step p,
.faq-list p {
  color: var(--muted);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.8rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--surface-soft);
}

.check-list,
.price-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.price-card li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before,
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px white;
}

.workflow-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.workflow-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.workflow-step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.pricing-section {
  background: #fbfcfd;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.billing-toggle button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.billing-toggle button.active {
  color: white;
  background: var(--ink);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.plan-label {
  width: max-content;
  color: #5c3700;
  background: #fff0cf;
}

.price {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

.price-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.price-card .button {
  margin-top: auto;
}

.testimonial-section {
  color: white;
  background: linear-gradient(135deg, #101720, #18382f);
}

.quote-mark {
  color: var(--amber);
  font-size: 5rem;
  line-height: 0.6;
}

blockquote {
  max-width: 970px;
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1.13;
  font-weight: 800;
}

.testimonial-section p {
  color: #cbd6e0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
}

details p {
  padding: 0 22px 22px;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: center;
  background: var(--surface-soft);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.contact-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 159, 143, 0.16);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-size: 0.94rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}

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

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 32, 0.68);
}

.checkout-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkout-dialog h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin: 20px 0;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-summary span,
.reference-box span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary strong {
  font-size: 1.4rem;
}

.checkout-summary small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 159, 143, 0.16);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.form-message.is-error {
  color: var(--rose);
}

.auth-card form,
.otp-form {
  display: grid;
  gap: 14px;
}

.auth-card label,
.otp-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.auth-card input,
.otp-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-card input:focus,
.otp-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 159, 143, 0.16);
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--teal-dark);
  font-weight: 900;
}

.dashboard-page {
  min-height: 100vh;
  background: var(--surface-soft);
}

.dashboard-shell {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 72px);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 22px;
  align-items: end;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-stats article,
.dashboard-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 45px rgba(16, 23, 32, 0.08);
}

.dashboard-stats article {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stats strong {
  overflow-wrap: anywhere;
  font-size: 1.35rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1fr);
  gap: 22px;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.activity-list strong {
  color: var(--ink);
}

.status-page {
  min-height: 100vh;
  background: var(--surface-soft);
}

.payment-status-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.payment-status-shell .brand {
  position: fixed;
  top: 24px;
  left: 28px;
}

.payment-status-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 48px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-status-card h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.payment-status-card p {
  color: var(--muted);
  font-size: 1.06rem;
}

.reference-box {
  display: grid;
  gap: 4px;
  margin: 24px 0;
  padding: 16px;
  overflow-wrap: anywhere;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
    width: 100%;
  }

  .site-header.nav-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-header.nav-open .site-nav a {
    padding: 10px 0;
  }

  .hero,
  .split-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-preview {
    min-height: 500px;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.7rem);
  }

  .hero,
  .section,
  .split-section,
  .testimonial-section,
  .cta-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .header-actions,
  .site-header.nav-open .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-preview {
    min-height: auto;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 16px;
  }

  .status-row,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .message-card {
    flex-direction: column;
  }

  .chart {
    gap: 7px;
  }

  .logo-strip span {
    min-width: 46%;
  }

  .checkout-dialog {
    padding: 22px;
  }

  .checkout-summary {
    grid-template-columns: 1fr;
  }

  .payment-status-shell {
    place-items: start stretch;
    padding: 92px 18px 24px;
  }

  .payment-status-shell .brand {
    left: 18px;
  }

  .status-actions {
    flex-direction: column;
  }

  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .activity-list li {
    flex-direction: column;
  }
}
