:root {
  --bg: #060d18;
  --surface: #0c1829;
  --surface-hover: #11223a;
  --border: rgba(45, 212, 191, 0.16);
  --border-active: rgba(45, 212, 191, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --teal-dark: #14b8a6;
  --cyan: #38bdf8;
  --radius: 12px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.6;
  background-image: radial-gradient(ellipse 75% 45% at 50% -10%, rgba(20, 184, 166, 0.14), transparent);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Redirect Bar */
.top-bar {
  background: #091627;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: var(--teal);
  font-weight: 600;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 24, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo strong {
  color: var(--teal);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #04111d;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.15rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #04111d;
}

.btn-outline {
  border-color: var(--border-active);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(45, 212, 191, 0.08);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.full-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tag-live {
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.tag-teal {
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-muted {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--teal);
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 540px;
  margin-bottom: 1.6rem;
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.metrics strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 1.05rem;
}

.metrics span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sample Card */
.sample-card {
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  padding: 1.4rem;
  animation: floatSlow 5s ease-in-out infinite;
}

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

.sample-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.sample-head code {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.sample-q {
  font-size: 0.94rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.sample-a {
  background: rgba(45, 212, 191, 0.08);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 0.9rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
}

.sample-a strong {
  display: block;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

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

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

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

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

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

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

.card-meta {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: rgba(45, 212, 191, 0.14);
  color: var(--teal);
  border-color: var(--border-active);
}

/* Pricing Box */
.pricing-box {
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pricing-box h2 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.35rem;
}

.pricing-box p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: 2rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--teal);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.78);
  display: none;
  place-items: center;
  padding: 1rem;
  z-index: 100;
}

.modal.open {
  display: grid;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 1.1rem;
}

.modal-card label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.modal-card input,
.modal-card select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.trial-confirm {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--teal);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 820px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}
