:root {
  --bg: #0f172a;
  --bg-light: #11203b;
  --bg-muted: #1d2a44;
  --accent: #00c0d9;
  --accent-dark: #008aa0;
  --text: #f8fafc;
  --text-muted: #cbd5f5;
  --text-soft: rgba(248, 250, 252, 0.7);
  --card: rgba(17, 32, 59, 0.72);
  --shadow: 0 32px 80px rgba(11, 25, 55, 0.45);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --transition: 220ms ease;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 0% -10%, rgba(0, 192, 217, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 100% 20%, rgba(0, 192, 217, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #0d1b33 0%, #050b17 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(4, 9, 21, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-logo {
  max-height: clamp(44px, 4.5vw, 64px);
  height: auto;
  width: auto;
}

.brand-standalone {
  margin-bottom: 2.5rem;
}

.brand-standalone .brand-logo {
  max-height: clamp(56px, 9vw, 72px);
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

.site-nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(0, 192, 217, 0.16);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: rgba(0, 192, 217, 0.2);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.link {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent) 0%, #3ee5ff 100%);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn.social {
  gap: 0.6rem;
}

.btn.social .social-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  flex-shrink: 0;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 34px rgba(0, 192, 217, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(62, 229, 255, 0.4);
  box-shadow: none;
}

.btn.ghost:hover,
.btn.ghost:focus {
  background: rgba(0, 192, 217, 0.12);
}

.hero {
  padding: clamp(5rem, 7vw, 8rem) 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.success-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
  list-style: disc;
}

.success-list a {
  color: #9cdfff;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 32ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.cta-form {
  display: flex;
  margin: 2rem 0 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: min(100%, 420px);
}

.cta-form input {
  flex: 1 1 240px;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 16, 33, 0.9);
  color: var(--text);
}

.cta-form input:focus {
  outline: 2px solid rgba(62, 229, 255, 0.6);
  outline-offset: 2px;
}

.cta-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-proof {
  color: var(--text-soft);
}

.social-proof p {
  margin: 0.5rem 0 0;
}

.social-proof p:first-child {
  margin-top: 0;
  color: var(--text);
  font-weight: 600;
}

.social-proof .note {
  font-size: 0.95rem;
}

.hero-card .card,
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card dl {
  margin: 0;
}

.hero-card dt {
  font-weight: 700;
}

.hero-card dd {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.section {
  padding: clamp(4rem, 6vw, 6rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}

.card ul,
.value-card ul,
.persona-card ul,
.pricing-card ul {
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.feature-section {
  background: rgba(15, 23, 42, 0.7);
  position: relative;
}

.feature-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 192, 217, 0.14), transparent 60%);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(17, 32, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 229, 255, 0.35);
}

.value-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(10, 20, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.results-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'quote'
    'timeline'
    'customer'
    'metrics';
}

.testimonial {
  grid-area: quote;
}

.results-timeline {
  grid-area: timeline;
}

.customer-story {
  grid-area: customer;
}

.results-grid .metrics {
  grid-area: metrics;
}

.results-timeline {
  margin: 0;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.results-timeline img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.results-timeline figcaption {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.timeline-highlights {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.timeline-highlights li {
  color: var(--text-soft);
}

.timeline-highlights span {
  color: var(--text);
  font-weight: 600;
}

.customer-story {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.customer-story-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.customer-story-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(10, 20, 40, 0.4);
}

.customer-story h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.customer-story-role {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.customer-story p {
  margin: 0;
}

.customer-story-lede {
  font-size: 1.05rem;
  color: var(--text);
}

.customer-story p:not(.customer-story-lede) {
  color: var(--text-soft);
}

.customer-story-body {
  display: grid;
  gap: 1rem;
  max-width: 48ch;
}

.customer-story-body p {
  margin: 0;
}

.customer-story-highlights {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.5rem;
}

.customer-story-highlights li::marker {
  color: rgba(62, 229, 255, 0.7);
}

@media (max-width: 640px) {
  .customer-story-header {
    flex-direction: row;
    align-items: center;
  }

  .customer-story {
    gap: 1.25rem;
  }
}

.testimonial {
  margin: 0;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 192, 217, 0.24) 0%, rgba(10, 20, 40, 0.8) 100%);
  font-size: 1.25rem;
  font-weight: 500;
  position: relative;
}

.testimonial::before {
  content: '“';
  position: absolute;
  font-size: 4rem;
  color: rgba(62, 229, 255, 0.3);
  top: -1rem;
  left: 1.5rem;
}

.testimonial footer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.metrics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
}

.metrics strong {
  font-size: 1.5rem;
  color: var(--text);
}

@media (min-width: 1200px) {
  .results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    grid-template-areas:
      'quote timeline customer'
      'metrics metrics metrics';
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      'quote customer'
      'timeline customer'
      'metrics metrics';
  }
}

@media (min-width: 1200px) {
  .results-grid .metrics {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: 0.5rem;
  }

  .results-grid .metrics ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .results-grid .metrics a {
    flex-shrink: 0;
  }
}

.comparison {
  background: rgba(8, 15, 30, 0.88);
}

.table-scroll {
  overflow-x: auto;
}

#comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

#comparison-table th,
#comparison-table td {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

#comparison-table th {
  background: rgba(17, 32, 59, 0.9);
  font-weight: 600;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  background: rgba(17, 32, 59, 0.82);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .billing-toggle {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
}

.pricing-card .billing-option {
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.pricing-card .billing-option .save-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.pricing-card .billing-option.is-active {
  background: #ffffff;
  color: #0a1426;
  box-shadow: 0 16px 30px rgba(0, 192, 217, 0.25);
}

.pricing-card .billing-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pricing-card .pricing-savings {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: -0.25rem 0 0.25rem;
}

.pricing-card .sub {
  color: var(--text-muted);
  margin: 0;
}

.pricing-card ul {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card .pricing-note {
  min-height: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.pricing-card .pricing-note:empty {
  margin: 0;
  min-height: 0;
}

.pricing-card .pricing-note.error {
  color: #ffb4c3;
}

.pricing-footnote {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-footnote a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(0, 192, 217, 0.32) 0%, rgba(17, 32, 59, 0.95) 100%);
  border: 1px solid rgba(62, 229, 255, 0.5);
  transform: translateY(-14px);
  box-shadow: 0 26px 60px rgba(0, 192, 217, 0.25);
}

.pricing-card.teams {
  background: linear-gradient(135deg, rgba(12, 21, 38, 0.92) 0%, rgba(5, 11, 23, 0.88) 100%);
  border: 1px solid rgba(62, 229, 255, 0.32);
  box-shadow: 0 22px 52px rgba(4, 16, 35, 0.38);
}

.pricing-card.teams .price {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  line-height: 1.1;
}

.pricing-card.teams .price span {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.pricing-card .badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(10, 20, 40, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.persona-card,
.highlight-grid .demo-card {
  background: rgba(17, 32, 59, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.persona-card {
  padding: 2rem;
}

.highlight {
  background: rgba(10, 20, 38, 0.92);
}

.highlight-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.highlight-grid .demo-card {
  padding: 0;
}

.demo-card {
  position: relative;
  overflow: hidden;
}

.demo-card .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.demo-card .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.demo-header {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 20, 40, 0.7);
}

.demo-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.demo-body {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.demo-title {
  margin: 0;
  font-weight: 600;
}

.faq details {
  background: rgba(17, 32, 59, 0.82);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.5rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details + details {
  margin-top: 1rem;
}

.site-footer {
  background: rgba(3, 8, 18, 0.92);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-form input {
  flex: 1 1 160px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 18, 36, 0.9);
  color: var(--text);
}

.footer-form input:focus {
  outline: 2px solid rgba(62, 229, 255, 0.5);
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-card .card,
  .card,
  .pricing-card,
  .persona-card,
  .value-card,
  .feature-card,
  .testimonial,
  .metrics {
    padding: 1.5rem;
  }

  .cta-form {
    flex-direction: column;
  }

  #comparison-table {
    min-width: 100%;
  }

  .pricing-card.featured {
    transform: none;
  }

  body {
    font-size: 15px;
  }
}

body.legal-page {
  display: flex;
  flex-direction: column;
}

.legal-header {
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(1rem, 4vw, 2rem);
}

.legal-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.legal-main {
  padding-top: 0;
}

.legal-card {
  background: rgba(12, 21, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.25rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.legal-card h1 {
  margin-top: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.legal-card h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.legal-card section:first-of-type h2 {
  margin-top: 1.5rem;
}

.legal-card h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
}

.legal-card ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.legal-card ul li strong {
  color: var(--text);
}

.legal-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-soft);
}

.legal-card address a {
  color: #9cdfff;
}

@media (max-width: 640px) {
  .legal-header {
    padding-bottom: 1.5rem;
  }

  .legal-card {
    padding: 1.75rem;
  }
}

.account-page .hero {
  padding-block: clamp(4rem, 6vw, 6.5rem) 3rem;
}

.account-support {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: space-between;
}

.account-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.account-form label {
  font-weight: 600;
  color: var(--text);
}

.account-form input,
.account-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 16, 33, 0.9);
  color: var(--text);
}

.account-form select {
  appearance: none;
}

.account-form input:focus,
.account-form select:focus {
  outline: 2px solid rgba(62, 229, 255, 0.6);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

.form-status.error {
  color: #fca5a5;
}

.form-status.success {
  color: #6ee7b7;
}

.account-help {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

.account-list {
  margin-top: 1.75rem;
  gap: 0.65rem;
}

@media (max-width: 768px) {
  .account-support {
    order: -1;
  }

  .account-support-actions {
    justify-content: flex-start;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}
