:root {
  --ink: #071225;
  --ink-2: #111a35;
  --navy: #070b1b;
  --deep: #101733;
  --panel: #f6f8fc;
  --line: #dce4f2;
  --muted: #52617c;
  --white: #ffffff;
  --cyan: #28d8ff;
  --blue: #6478ff;
  --purple: #5547ff;
  --green: #00bd85;
  --rose: #ff4b73;
  --shadow: 0 22px 70px rgba(9, 16, 37, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 9vw;
  border-bottom: 1px solid rgba(17, 26, 53, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #121847;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #34405a;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  max-width: 100%;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #704fff);
  box-shadow: 0 14px 34px rgba(85, 71, 255, 0.34);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.button.light {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(85, 71, 255, 0.22);
}

.button.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 675px;
  display: grid;
  place-items: center;
  padding: 110px 24px 92px;
  color: var(--white);
  background: var(--navy);
}

.hero.compact {
  min-height: 510px;
  padding-top: 90px;
  padding-bottom: 78px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(40, 216, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 11, 27, 0.38), rgba(7, 11, 27, 0.95)),
    url("hero-circuit.svg") center / cover no-repeat;
  opacity: 0.96;
}

.hero-inner {
  position: relative;
  width: min(880px, 100%);
  min-width: 0;
  text-align: center;
}

.trust-line {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 13px;
  border: 1px solid rgba(100, 120, 255, 0.6);
  border-radius: 999px;
  background: rgba(18, 24, 71, 0.72);
  color: #d8e4ff;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.hero h1 {
  background: linear-gradient(92deg, #ffffff 0 36%, #7384ff 54%, #23d7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 28px auto 0;
  color: #e6edff;
  font-size: 19px;
}

.hero-actions,
.hero-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.hero-strip {
  margin-top: 34px;
  color: #d9e5ff;
  font-size: 13px;
  font-weight: 800;
}

.hero-strip span {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.section {
  padding: 94px 9vw;
}

.section-heading {
  width: min(720px, 100%);
  min-width: 0;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.pricing-strip h2,
.integration-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p,
.split-copy p,
.pricing-strip p,
.integration-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
}

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

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

.info-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--purple);
  background: #e5e9ff;
  font-size: 13px;
  font-weight: 900;
}

.info-card h3 {
  margin: 28px 0 12px;
  font-size: 19px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 70px;
  align-items: center;
  padding: 96px 9vw;
  background: #f5f8fd;
}

.split-section.solution {
  background: var(--white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.section-label.danger {
  color: #c91f4b;
  background: #ffe7ee;
}

.section-label.success {
  color: #007f5d;
  background: #dbfff3;
}

.section-label.neutral {
  color: #dce5ff;
  background: rgba(255, 255, 255, 0.12);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame.soft {
  box-shadow: 0 20px 70px rgba(0, 189, 133, 0.16);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 72px 9vw;
  color: var(--white);
  background: linear-gradient(135deg, #1a1555, #151b3e 55%, #082c43);
}

.pricing-strip h2 {
  color: var(--white);
}

.pricing-strip p {
  max-width: 740px;
  color: #d8e4ff;
}

.related-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 64px 9vw;
  color: var(--white);
  background: #070b1b;
}

.related-product h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.related-product p:not(.section-label) {
  max-width: 740px;
  color: #d8e4ff;
  font-size: 17px;
}

.provider-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 22px;
}

.provider-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(900px, 100%);
  margin: 0 auto;
}

.provider-card {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(7, 18, 37, 0.06);
  text-align: center;
}

.provider-card.recommended {
  border-color: rgba(40, 216, 255, 0.52);
  background: linear-gradient(180deg, #ffffff, #f1fbff);
}

.provider-card img {
  width: min(188px, 100%);
}

.provider-card strong {
  font-size: 24px;
}

.provider-card span {
  color: var(--muted);
  font-weight: 700;
}

.process {
  padding: 96px 9vw;
  color: var(--white);
  background: var(--deep);
}

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

.blog-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-card {
  display: block;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(7, 18, 37, 0.06);
}

.blog-card span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: #e5e9ff;
  font-size: 12px;
  font-weight: 900;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: #f6f8fc;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-grid h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.contact-grid p {
  color: var(--muted);
  font-size: 17px;
}

.contact-grid a {
  color: var(--purple);
  font-weight: 900;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}

.lead-form label:has(textarea),
.lead-form button,
.form-status {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 3px solid rgba(40, 216, 255, 0.24);
  border-color: rgba(40, 216, 255, 0.72);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

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

.article-shell {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: 88px 0;
}

.article-shell h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-lede {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.article-body {
  margin-top: 54px;
  color: var(--ink-2);
  font-size: 18px;
}

.article-body h2 {
  margin: 42px 0 10px;
  font-size: 28px;
  line-height: 1.16;
}

.article-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-body a {
  color: var(--purple);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.assistant-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
  padding: 86px 9vw;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 11, 27, 0.78), rgba(7, 11, 27, 0.96)),
    url("hero-circuit.svg") center / cover no-repeat;
}

.assistant-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.assistant-hero-copy,
.assistant-panel {
  min-width: 0;
}

.assistant-hero-copy p:not(.trust-line) {
  color: #dce5ff;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.stripe-activation {
  margin-top: 26px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 229, 229, 0.35);
  border-radius: var(--radius);
  background: rgba(8, 13, 29, 0.72);
  box-shadow: var(--shadow);
}

.stripe-checkout {
  margin-top: 24px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 13, 29, 0.62);
}

.login-panel {
  margin-top: 22px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(100, 120, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(8, 13, 29, 0.62);
}

.magic-session {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stripe-checkout-form {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.stripe-checkout-form label {
  font-weight: 800;
  font-size: 13px;
  color: rgba(220, 229, 255, 0.9);
}

.stripe-checkout-form div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stripe-checkout-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.stripe-checkout-form input::placeholder {
  color: rgba(220, 229, 255, 0.6);
}

.stripe-activation h2 {
  margin: 10px 0 10px;
  font-size: 20px;
}

.stripe-activation .api-key {
  margin: 14px 0 0;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  overflow-x: auto;
  white-space: pre;
}

.assistant-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(100, 120, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(8, 13, 29, 0.92);
  box-shadow: var(--shadow);
}

.assistant-log {
  display: grid;
  gap: 14px;
  height: 360px;
  overflow-y: auto;
  padding: 22px;
}

.assistant-message {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 8px;
}

.assistant-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.assistant-message p {
  margin: 0;
  color: inherit;
}

.assistant-message.helper {
  color: #e6edff;
  background: rgba(255, 255, 255, 0.1);
}

.assistant-message.user {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), #704fff);
}

.assistant-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px 18px;
}

.assistant-prompts button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #e6edff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: normal;
}

.assistant-input {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.assistant-input label {
  display: block;
  margin-bottom: 8px;
  color: #dce5ff;
  font-size: 13px;
  font-weight: 900;
}

.assistant-input div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.assistant-input input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.founder-section {
  background: #f6f8fc;
}

.ecosystem {
  align-items: center;
}

.ecosystem-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: min(420px, 100%);
}

.ecosystem-links a {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  text-align: center;
}

.rtl-page {
  font-family: "Aptos", "Segoe UI", Tahoma, sans-serif;
}

.rtl-page main,
.rtl-page .hero-inner,
.rtl-page .section-heading {
  direction: rtl;
}

.rtl-page .card-grid,
.rtl-page .provider-row,
.rtl-page .contact-grid {
  direction: ltr;
}

.rtl-page .lead-form label,
.rtl-page .info-card,
.rtl-page .provider-card {
  direction: rtl;
  text-align: right;
}

.rtl-page .contact-grid > div,
.rtl-page .lead-form {
  direction: rtl;
  text-align: right;
}

.process-inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.section-heading.dark h2,
.section-heading.dark p {
  color: var(--white);
}

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

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: #c9d6ff;
}

.integration {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
  background: #f6f8fc;
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(100, 120, 255, 0.25);
  border-radius: var(--radius);
  background: #080d1d;
  box-shadow: var(--shadow);
}

.code-card pre {
  margin: 0;
  padding: 30px;
  overflow-x: auto;
  color: #e6edff;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.faq-list {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

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

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

details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.final-cta {
  padding: 82px 24px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #1d185b, #101733);
}

.final-cta h2 {
  width: min(850px, 100%);
  margin: 0 auto;
  color: var(--white);
}

.final-cta p {
  width: min(650px, 100%);
  margin: 18px auto 30px;
  color: #dce5ff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 9vw;
  color: #a6b3d0;
  background: #050917;
  font-size: 13px;
}

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

@media (max-width: 920px) {
  .site-header {
    padding: 0 24px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .card-grid,
  .card-grid.three,
  .provider-row,
  .provider-row.two,
  .split-section,
  .integration,
  .blog-grid,
  .blog-grid.four,
  .contact-grid,
  .assistant-hero,
  .ecosystem-links {
    grid-template-columns: 1fr;
  }

  .split-section.solution .media-frame {
    order: 2;
  }

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

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

  .assistant-hero {
    padding: 72px 24px;
  }
}

@media (max-width: 560px) {
  html,
  body,
  main,
  section,
  header,
  footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    min-height: 66px;
  }

  .button.small {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding-top: 86px;
  }

  .hero-inner,
  .hero-actions,
  .hero-strip,
  .hero-copy,
  .section-heading {
    width: min(100%, 300px);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero h1 {
    width: min(100%, 300px);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: normal;
    text-wrap: auto;
  }

  .hero-copy {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .section,
  .split-section,
  .process,
  .integration {
    padding: 72px 22px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .assistant-input div {
    grid-template-columns: 1fr;
  }

  .assistant-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .assistant-log {
    height: 315px;
    padding: 18px;
  }

  .assistant-prompts {
    padding-left: 18px;
    padding-right: 18px;
  }

  .assistant-input {
    padding-left: 18px;
    padding-right: 18px;
  }

  .assistant-message {
    max-width: 100%;
  }

  .article-shell {
    width: min(100% - 44px, 820px);
    padding: 68px 0;
  }

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

  .hero-strip {
    gap: 10px;
  }

  .hero-strip span {
    font-size: 12px;
  }

  .info-card,
  .provider-card,
  details,
  .code-card {
    min-width: 0;
  }

  .section-heading p,
  .info-card p,
  .split-copy p,
  .pricing-strip p,
  .related-product p,
  .integration-copy p,
  .steps p,
  details p {
    overflow-wrap: anywhere;
  }

  .code-card pre {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
