/* Success Meter — shared styles */
:root {
  --dark: #17181c;
  --dark-2: #1f2026;
  --purple: #6c5ce7;
  --purple-dark: #5a4bd4;
  --text-muted: #a6a8b3;
  --white: #ffffff;
  --radius-lg: 40px;
  --radius-md: 24px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  color: var(--white);
  padding: 28px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

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

.site-nav a.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-nav a.nav-link:hover,
.site-nav a.nav-link.active {
  opacity: 1;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  border: none;
}

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

.btn-outline {
  border: 1.5px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero (Home) ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 120px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  white-space: pre-line;
  margin: 0 0 16px;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 32px;
  letter-spacing: 0.5px;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: typewriter-blink 0.8s steps(1) infinite;
}

@keyframes typewriter-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-card img {
  width: 100%;
  display: block;
}

.stats-banner {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0 100px;
  text-align: center;
}

.stats-banner p {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 20px;
  line-height: 1.5;
}

.stats-banner strong {
  color: var(--purple);
  font-size: 24px;
}

.stats-banner .highlight {
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Generic page hero (Solutions/Security/Pricing) ---------- */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 90px 0 140px;
  position: relative;
  overflow: hidden;
}

body[data-page="solutions"] .page-hero {
  padding-bottom: 64px;
}

.page-hero h1 {
  font-size: 46px;
  font-weight: 800;
  max-width: 760px;
  margin: 0 0 24px;
  line-height: 1.2;
}

.page-hero .lead {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 48px;
}

.section-subtitle {
  max-width: 720px;
  margin: -32px auto 32px;
  color: #555;
  font-size: 18px;
  text-align: center;
}

/* ---------- Solutions cards ---------- */
.solution-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid #ececec;
}

.solution-copy,
.solution-demo {
  min-width: 0;
}

.solution-demo iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #16171b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.solution-demo .btn {
  margin-top: 16px;
}

.solution-block:last-of-type {
  border-bottom: none;
}

.solution-block h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--purple);
}

.solution-block p {
  font-size: 17px;
  color: #444;
}

.solution-block ul {
  margin-top: 16px;
  padding-left: 20px;
  list-style: disc;
}

.solution-block ul li {
  padding: 8px 0;
  font-size: 16px;
  color: #444;
  border-bottom: 1px dashed #e0e0e0;
}

/* ---------- Feature / image boxes (Security) ---------- */
.card-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-top: -80px;
  position: relative;
  z-index: 2;
  padding: 56px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.feature-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature-card p {
  color: #555;
  font-size: 15px;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

.accordion-header::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.2s;
}

.accordion-item.open .accordion-header::after {
  content: '\2212';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding-bottom: 24px;
  color: #555;
  font-size: 16px;
}

.accordion-item.open .accordion-content {
  max-height: 800px;
}

.compliance-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.compliance-logos img {
  height: 48px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
}

.security-roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.security-roadmap h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.security-roadmap p,
.security-roadmap li {
  color: #555;
  font-size: 15px;
}

.security-roadmap-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.security-roadmap-badge {
  display: inline-flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
}

.security-roadmap-badge strong {
  color: var(--dark);
  font-size: 14px;
}

.security-roadmap-badge small {
  color: #637183;
  font-size: 11px;
}

.security-roadmap-note {
  max-width: 1000px;
  margin: 24px auto 0;
  color: #737b87;
  font-size: 13px;
}

/* ---------- Pricing ---------- */
.pricing-header {
  max-width: 900px;
  margin: 8px auto 28px;
  text-align: center;
}

.pricing-header h1 {
  margin: 0 0 4px;
  color: var(--dark);
  font-size: 36px;
  line-height: 1.2;
}

.pricing-header p {
  margin: 0;
  color: #647083;
  font-size: 16px;
}

.pricing-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.pricing-intro img {
  width: 96px;
}

.pricing-intro h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
}

.pricing-steps {
  text-align: center;
  margin-bottom: 64px;
}

.pricing-steps p {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
}

.pricing-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: #f7f5ff;
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 56px;
}

.pricing-note img {
  width: 72px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.price-card {
  min-width: 0;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 26px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.price-card:nth-child(1) {
  border-color: #b7e7ff;
}

.price-card:nth-child(3) {
  border-color: #cbd0ff;
}

.price-tier {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e1f3ff;
  color: #1681bd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card:nth-child(2) .price-tier {
  background: #f0f3f7;
  color: #4a5668;
}

.price-card:nth-child(3) .price-tier {
  background: #e8eaff;
  color: #5c54d9;
}

.price-card h3 {
  font-size: 19px;
  font-weight: 800;
  min-height: 0;
  margin: 0;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.price-tag .dollar {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
}

.price-tag .amount {
  font-size: 40px;
  font-weight: 800;
}

.price-tag .period {
  color: #888;
  font-size: 14px;
}

.price-card ul {
  flex-grow: 1;
  margin-bottom: 24px;
  list-style: none;
}

.price-card ul li {
  font-size: 14px;
  color: #444;
  padding: 7px 0 7px 21px;
  position: relative;
  line-height: 1.35;
}

.price-card ul li:not(.total)::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #16a6dc;
  color: #fff;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
  font-weight: 800;
}

.price-card:nth-child(3) ul li:not(.total)::before {
  background: #6659e8;
}

.price-card ul li.total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 12px 0 0;
  border-top: 1px solid #edf0f4;
  color: #738095;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card ul li.total strong {
  flex: 0 0 auto;
  color: #139764;
}

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

.price-card .disclaimer {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.package-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
  padding: 28px 32px;
  border: 2px solid #b7e7ff;
  border-radius: 12px;
  background: #f6fbff;
}

.package-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.package-copy p {
  margin: 0 0 12px;
  color: #555;
}

.package-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 12px;
  list-style: none;
}

.package-copy li {
  color: #444;
  font-size: 14px;
}

.package-copy li::before {
  content: '\2713';
  margin-right: 7px;
  color: #1681bd;
  font-weight: 800;
}

.package-copy .package-savings {
  margin: 0;
  color: #13875c;
  font-weight: 700;
}

.package-price {
  padding-left: 28px;
  border-left: 1px solid #dbe5ed;
}

.package-price .price-tag {
  margin: 0 0 12px;
}

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

.package-price .disclaimer {
  margin: 10px 0 0;
  color: #78818d;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .package-offer {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .package-price {
    padding: 16px 0 0;
    border-top: 1px solid #dbe5ed;
    border-left: 0;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top .brand img {
  width: 48px;
  height: 48px;
}

.footer-contact p {
  margin: 4px 0;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .solution-block,
  .pricing-intro,
  .pricing-note {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .security-roadmap {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--dark-2);
    flex-direction: column;
    padding: 100px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    align-items: flex-start;
    gap: 24px;
  }

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

  .nav-toggle {
    display: block;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .card-panel {
    padding: 32px 20px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }
}
