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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-dark: #08080d;
  --surface: #1a1a26;
  --border: #2a2a3a;
  --text: #e0e0ec;
  --text-dim: #8888a0;
  --accent: #c22a2a;
  --accent-light: #e04040;
  --accent-glow: rgba(194, 42, 42, 0.25);
  --gold: #d4a642;
  --green: #2ea043;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links .btn {
  color: var(--text);
}

.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 70% 50% at 50% 0%,
      rgba(194, 42, 42, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 60% at 30% 100%,
      rgba(212, 166, 66, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(212, 166, 66, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.7;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.story-body p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-body strong {
  color: var(--text);
  font-weight: 600;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto 48px;
}

.step-card {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  min-width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(194, 42, 42, 0.2));
  margin-top: 27px;
  flex-shrink: 0;
}

.managed-banner {
  max-width: 700px;
  margin: 0 auto;
}

.managed-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  border: 1px solid rgba(46, 160, 67, 0.25);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.managed-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.managed-banner-inner h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--green);
}

.managed-banner-inner p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(194, 42, 42, 0.4);
  box-shadow: 0 0 30px rgba(194, 42, 42, 0.08);
}

.feature-card--highlight {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(194, 42, 42, 0.06)
  );
  border-color: rgba(194, 42, 42, 0.25);
}

@media (min-width: 768px) {
  .feature-card--highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
  }
  .feature-card--highlight .feature-icon {
    grid-row: 1;
  }
  .feature-card--highlight h3 {
    grid-row: 1;
    align-self: center;
  }
  .feature-card--highlight p {
    grid-column: 2;
  }
  .feature-card--highlight .feature-list {
    grid-column: 2;
  }
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.screenshot-card:hover {
  border-color: rgba(194, 42, 42, 0.35);
  box-shadow: 0 0 24px rgba(194, 42, 42, 0.08);
}

.screenshot-media {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  min-height: 220px;
}

.screenshot-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
}

.screenshot-body {
  padding: 16px 18px 20px;
}

.screenshot-body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.screenshot-body p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s;
}

.compliance-card:hover {
  border-color: rgba(46, 160, 67, 0.4);
}

.compliance-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.compliance-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.compliance-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.compliance-card a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.commands-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.command-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.command {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.command code {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

.command span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s;
}

.why-card:hover {
  border-color: var(--accent);
}

.why-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(194, 42, 42, 0.2);
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item[open] summary {
  color: var(--accent-light);
}

.faq-item p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.pricing-card-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-card {
  max-width: 420px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(212, 166, 66, 0.3);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
}

.pricing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dim);
}

.pricing-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 36px 24px;
  }
}

.cta-section {
  padding-bottom: 120px;
}

.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(
    135deg,
    var(--bg-card),
    rgba(194, 42, 42, 0.08)
  );
  border: 1px solid rgba(194, 42, 42, 0.2);
  border-radius: 20px;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-card > p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-form {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-optional {
  font-weight: 400;
  color: var(--text-dim);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--text-dim);
}

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

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
  line-height: 1.4;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
  text-align: center;
}

.form-error {
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(194, 42, 42, 0.1);
  border: 1px solid rgba(194, 42, 42, 0.3);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-error p {
  font-size: 0.88rem;
  color: var(--accent-light);
  line-height: 1.5;
}

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

.form-success {
  margin-top: 24px;
}

.success-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-left {
  max-width: 400px;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-legal {
  font-size: 0.75rem;
  color: rgba(136, 136, 160, 0.6);
}

.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-page ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 0;
}

.legal-page ul li {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.legal-page ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-page ul li strong {
  color: var(--text);
}

.legal-page a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }
  .hero-stats {
    gap: 24px;
  }
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step-card {
    max-width: 360px;
    padding: 0 0 8px;
  }
  .step-connector {
    width: 2px;
    height: 32px;
    min-width: 2px;
    background: linear-gradient(
      180deg,
      var(--accent),
      rgba(194, 42, 42, 0.2)
    );
    margin: 0;
  }
  .managed-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--highlight {
    grid-column: 1;
    display: block;
  }
  .commands-showcase {
    grid-template-columns: 1fr;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .screenshot-media img {
    max-height: 460px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .section {
    padding: 64px 0;
  }
  .cta-card {
    padding: 40px 24px;
  }
  .legal-page {
    padding: 100px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
}
