:root {
  --bg: #040b16;
  --bg-soft: #0a1628;
  --bg-soft-2: #0f1f35;
  --text: #f4f7ff;
  --muted: #b9c6e4;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #f2c75c;
  --gold-soft: #ffdf8f;
  --silver: #deebff;
  --radius: 18px;
  --radius-small: 12px;
  --shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.58;
  background:
    radial-gradient(860px 400px at 15% -5%, rgba(242, 199, 92, 0.14), transparent 60%),
    radial-gradient(700px 340px at 100% 0%, rgba(127, 176, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #02060d 0%, #041126 48%, #08162e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(135deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.03) 50%, transparent 52%, transparent 100%);
  background-size: 22px 22px;
}

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: 96px;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(820px, 92vw);
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 11, 22, 0.68);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(242, 199, 92, 0.35));
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.topnav a {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: #fff;
}

.hero {
  padding-top: 64px;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 26px;
}

.hero-grid > *,
.pro-shell > *,
.services-hero-grid > *,
.footer-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.72rem;
}

h1 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 8vw, 4.7rem);
  line-height: 1;
}

h2 {
  margin: 12px 0 20px;
  color: #dce6fc;
  font-size: clamp(1.08rem, 3vw, 1.66rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 20px;
  font-family: Sora, sans-serif;
  font-size: clamp(1.55rem, 4.2vw, 2.25rem);
  line-height: 1.2;
}

h4 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lead {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f2c75c, #d89f1f);
  color: #131927;
  box-shadow: 0 12px 28px rgba(216, 159, 31, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(216, 159, 31, 0.45);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #eaf0ff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card,
.panel,
.card {
  background: linear-gradient(160deg, rgba(17, 34, 60, 0.72), rgba(9, 20, 38, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
  align-self: center;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 140px at 70% 10%, rgba(242, 199, 92, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: min(250px, 100%);
  display: block;
  margin: 4px auto 16px;
  animation: float 4.3s ease-in-out infinite;
}

.hero-card-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-list li {
  margin: 8px 0;
}

.panel {
  padding: 24px;
}

.problem-list,
.pro-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.problem-list li,
.pro-list li {
  margin-bottom: 10px;
}

.text-large {
  font-size: 1.1rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.step-card {
  padding: 20px;
}

.step-num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: Sora, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}

.card {
  padding: 20px;
}

.pro-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  border: 1px solid rgba(242, 199, 92, 0.4);
  border-radius: var(--radius);
  padding: 24px;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(242, 199, 92, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(18, 34, 58, 0.82), rgba(7, 16, 30, 0.82));
  box-shadow: var(--shadow);
}

.pro-sub {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-weight: 700;
}

.pro-copy > p {
  color: var(--muted);
}

.pro-meta {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.pro-meta p {
  margin: 0;
}

.form {
  display: grid;
  gap: 12px;
}

.pro-form {
  background: rgba(6, 14, 27, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: inherit;
}

.form input:focus {
  outline: none;
  border-color: rgba(242, 199, 92, 0.7);
  box-shadow: 0 0 0 2px rgba(242, 199, 92, 0.16);
}

.checkbox {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.checkbox a {
  color: #e7efff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: #ffffff;
}

.form-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.92rem;
}

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

.package-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-card p {
  margin: 0;
}

.package-card > p:not(.price) {
  color: var(--muted);
}

.package-card .btn {
  margin-top: 6px;
}

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

.package-card-openclaw {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.25), 0 20px 46px rgba(153, 27, 27, 0.32);
  position: relative;
  overflow: hidden;
}

.package-card-openclaw::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 160px at 100% 0%, rgba(255, 77, 77, 0.14), transparent 70%);
}

.openclaw-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.openclaw-head h4 {
  margin: 0;
  flex: 1 1 200px;
}

.openclaw-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  filter: drop-shadow(0 4px 10px rgba(255, 77, 77, 0.35));
}

.package-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 77, 0.75);
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.22), rgba(153, 27, 27, 0.22));
  color: #ffd6d6;
  font-family: Sora, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.price {
  margin: 8px 0 2px;
  font-family: Sora, sans-serif;
  font-weight: 700;
  color: #ffe6ad;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.06);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
}

.cta {
  text-align: center;
}

.services-hero {
  min-height: auto;
  padding-top: 54px;
}

.services-hero h1 {
  overflow-wrap: anywhere;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.services-note {
  border: 1px solid rgba(242, 199, 92, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(460px 180px at 100% 0%, rgba(242, 199, 92, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(11, 23, 41, 0.86), rgba(4, 10, 20, 0.86));
  padding: 22px;
  box-shadow: var(--shadow);
}

.services-note h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  padding: 22px;
}

.service-card h4 {
  margin-bottom: 12px;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-list li {
  margin-bottom: 9px;
}

.examples-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  color: #d9e6ff;
}

.examples-grid .example-item:last-child {
  grid-column: 1 / -1;
}

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

.why-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(14, 27, 48, 0.78), rgba(6, 13, 25, 0.78));
  color: #eff5ff;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(700px 220px at 18% 0%, rgba(242, 199, 92, 0.08), transparent 70%),
    #040b16;
  padding: 34px 0 42px;
}

.footer-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.95), rgba(4, 10, 20, 0.95));
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38);
  padding: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.footer-main .brand-link {
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0 0 10px;
  color: #c6d5f4;
}

.footer-contact {
  margin: 6px 0;
  color: #b5c6e8;
}

.footer-contact a {
  color: #eaf1ff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2cf79;
}

.legal-links {
  display: grid;
  gap: 10px;
  justify-content: end;
  align-content: start;
}

.legal-links a {
  color: #e8f0ff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.legal-links a:hover {
  border-color: rgba(242, 199, 92, 0.65);
  background: rgba(242, 199, 92, 0.08);
  transform: translateX(-2px);
}

.footer-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(242, 199, 92, 0.45), rgba(255, 255, 255, 0.08));
}

.footer-bottom {
  display: grid;
  gap: 8px;
}

.legal-note,
.footer-meta,
.footer-copy {
  margin: 0;
  line-height: 1.45;
}

.legal-note {
  font-size: 0.78rem;
  color: #9db0d8;
}

.footer-meta {
  font-size: 0.82rem;
  color: #c4d3ef;
}

.footer-copy {
  font-size: 0.78rem;
  color: #90a5cf;
  letter-spacing: 0.02em;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(430px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 8, 15, 0.95);
  box-shadow: var(--shadow);
  padding: 14px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: #eef2f9;
  color: #111827;
}

.legal-page::before {
  display: none;
}

.legal-page main {
  width: min(920px, 92vw);
  margin: 34px auto;
  border: 1px solid #d7deed;
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
}

.legal-page h1,
.legal-page h2 {
  color: #0f1f40;
}

.legal-page a {
  color: #204d9a;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .pro-shell,
  .services-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 580px;
  }

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

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

  .services-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide,
  .examples-grid .example-item:last-child {
    grid-column: auto;
  }

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

@media (max-width: 860px) {
  .topnav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-links {
    justify-content: start;
  }

  .legal-links a {
    width: fit-content;
  }
}

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

  .topbar-inner {
    min-height: 70px;
  }

  .btn-small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .steps,
  .packages {
    grid-template-columns: 1fr;
  }

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

  .pro-shell {
    padding: 16px;
  }

  .footer-shell {
    padding: 16px;
  }

  .footer-divider {
    margin: 14px 0 12px;
  }

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