:root {
  --bg: #000000;
  --bg-2: #0d0d0d;
  --bg-3: #141414;
  --surface: #101010;
  --surface-2: #171717;
  --border: #242424;
  --border-2: #333333;
  --text: #ffffff;
  --text-2: #c9c9c9;
  --text-3: #8a8a8a;
  --accent: #1d9bf0;
  --accent-2: #00d1b2;
  --grad: linear-gradient(135deg, #1d9bf0 0%, #00d1b2 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo svg {
  width: 26px;
  height: 26px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--grad);
  color: #001018;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(29, 155, 240, 0.45);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-ghost:hover {
  background: var(--bg-3);
  border-color: var(--text-3);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16.5px;
}

.header-cta {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(29, 155, 240, 0.16) 0%,
    rgba(0, 209, 178, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 22px;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 40px;
}

/* ============ CHAT BOX ============ */
.chat-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.chat-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(29, 155, 240, 0.18);
}

.chat-box textarea {
  width: 100%;
  background: transparent;
  border: none;
  resize: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.5;
  padding: 10px 12px;
  min-height: 92px;
  outline: none;
}

.chat-box textarea::placeholder {
  color: var(--text-3);
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 2px;
}

.chat-hint {
  font-size: 13px;
  color: var(--text-3);
}

/* ============ SECTIONS ============ */
section.block {
  padding: 84px 0;
  position: relative;
}

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

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-2);
  font-size: 1.08rem;
}

h3 {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

p {
  color: var(--text-2);
}

.lead {
  font-size: 1.12rem;
  color: var(--text-2);
}

/* ============ CARDS GRID ============ */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--surface-2);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.card p {
  font-size: 0.98rem;
  color: var(--text-3);
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step .num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ PRICING ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-2);
}

.price-card.popular {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(29, 155, 240, 0.08), var(--surface));
}

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #001018;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.price-card .price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
}

.price-card .price span {
  font-size: 1rem;
  color: var(--text-3);
  font-weight: 500;
}

.price-card .tokens {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  flex: 1;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.97rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-card li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

/* ============ FAQ / ACCORDION ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.faq-item.open {
  border-color: var(--border-2);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q svg {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--text-2);
}

/* ============ USE CASES ============ */
.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.usecase:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}

.usecase .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 66px 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(29, 155, 240, 0.14),
    transparent 60%
  );
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 24px 0 0;
  font-size: 14px;
  color: var(--text-3);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .sep {
  color: var(--border-2);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-2);
}

/* ============ PAGE HEADER ============ */
.page-hero {
  padding: 56px 0 20px;
  position: relative;
}

.page-hero h1 {
  text-align: left;
  margin: 18px 0 18px;
  max-width: 860px;
}

.page-hero .subtitle {
  text-align: left;
  margin: 0;
  max-width: 720px;
  font-size: 1.15rem;
  color: var(--text-2);
}

/* ============ ARTICLE / PROSE ============ */
.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.7rem;
  margin: 42px 0 14px;
  text-align: left;
}

.prose h3 {
  margin: 30px 0 10px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.prose ul {
  margin: 0 0 20px 22px;
  color: var(--text-2);
}

.prose li {
  margin-bottom: 9px;
}

.prose strong {
  color: var(--text);
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text-2);
}

tr:last-child td {
  border-bottom: none;
}

td.highlight {
  color: var(--accent-2);
  font-weight: 600;
}

/* ============ FORM ============ */
.form {
  max-width: 560px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

.form-success {
  display: none;
  background: rgba(0, 209, 178, 0.1);
  border: 1px solid rgba(0, 209, 178, 0.35);
  color: var(--accent-2);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-size: 14px;
}

/* ============ CONTACT / INFO ============ */
.info-list {
  list-style: none;
  margin: 20px 0;
}

.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

.info-list a {
  color: var(--accent);
}

.info-list a:hover {
  color: var(--accent-2);
}

/* ============ FEATURE ROW ============ */
.feature-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-row .icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.feature-row h3 {
  margin-bottom: 6px;
}

.feature-row p {
  margin: 0;
  color: var(--text-3);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 34px;
  margin-top: 40px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 11px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-3);
}

.footer-bottom a {
  color: var(--text-3);
}

.footer-bottom a:hover {
  color: var(--text-2);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ============ MOBILE NAV PANEL ============ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav .sub a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  padding-left: 16px;
}

.mobile-nav .sub-label {
  padding: 15px 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.mobile-nav .btn {
  margin-top: 26px;
  width: 100%;
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.mobile-close svg {
  width: 28px;
  height: 28px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .pricing {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container {
    padding: 0 18px;
  }
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }
  section.block {
    padding: 60px 0;
  }
  .hero {
    padding: 60px 0 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-banner {
    padding: 48px 22px;
  }
}
