@font-face {
  font-family: FiraSans;
  font-display: swap;
  src: url("/local/templates/proto_template/fonts/FiraSans-Regular.woff2") format("woff2"),
    url("/local/templates/proto_template/fonts/FiraSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: FiraSans;
  font-display: swap;
  src: url("/local/templates/proto_template/fonts/FiraSans-Medium.woff2") format("woff2"),
    url("/local/templates/proto_template/fonts/FiraSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: FiraSans;
  font-display: swap;
  src: url("/local/templates/proto_template/fonts/FiraSans-Bold.woff2") format("woff2"),
    url("/local/templates/proto_template/fonts/FiraSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #f0f4ff;
  --text: #1d1369;
  --muted: #5f6388;
  --line: #dcdff5;
  --blue: #2550da;
  --blue-dark: #332a97;
  --cyan: #01d0bd;
  --cyan-light: #31e4f1;
  --violet: #553cdc;
  --deep: #1d1369;
  --graphite: #332a97;
  --green: #1eaa72;
  --red: #d94747;
  --shadow: 0 18px 55px rgba(29, 19, 105, .14);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: FiraSans, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section-pad {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49, 228, 241, .16);
  background: linear-gradient(45deg, rgba(51, 42, 151, .98) 0%, rgba(29, 19, 105, .98) 100%);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 200px;
}

.brand-logo {
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.main-nav {
  display: none;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 15px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 500;
  background: rgba(29, 19, 105, .72);
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: var(--violet);
  box-shadow: 0 8px 22px rgba(1, 208, 189, .16);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(49, 228, 241, .22);
  border-radius: var(--radius);
  background: rgba(29, 19, 105, .72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 10px;
  background: var(--cyan);
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav.is-open {
  position: fixed;
  inset: 72px 16px auto;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(49, 228, 241, .2);
  border-radius: var(--radius);
  background: linear-gradient(45deg, #332a97 0%, #1d1369 100%);
  box-shadow: var(--shadow);
}

.main-nav.is-open a {
  padding: 12px;
  border-radius: var(--radius);
}

.main-nav.is-open a:hover {
  background: var(--violet);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(49, 228, 241, .24), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(85, 60, 220, .2), transparent 28%),
    linear-gradient(45deg, #332a97 0%, #1d1369 100%);
  color: #fff;
}

.hero-grid,
.split-grid,
.challenge-grid,
.dashboard-grid,
.install-grid,
.faq-grid {
  display: grid;
  gap: 34px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 8vw, 70px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero .eyebrow,
.hero .lead {
  color: rgba(255, 255, 255, .82);
}

.hero .eyebrow::before {
  background: var(--cyan-light);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.section-head {
  max-width: 760px;
}

.section-head.centered {
  margin: 0 auto 36px;
  text-align: center;
}

.section-head.centered .eyebrow {
  margin-inline: auto;
}

.section-head p,
.card p,
.feature-card p,
.status-card p,
.scenario-card p,
.final-cta p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2550da 0%, #553cdc 58%, #01d0bd 100%);
  box-shadow: 0 14px 30px rgba(37, 80, 218, .28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #553cdc 0%, #2550da 58%, #31e4f1 100%);
}

.btn-secondary {
  color: var(--deep);
  border-color: rgba(1, 208, 189, .34);
  background: rgba(255, 255, 255, .92);
}

.btn-secondary:hover {
  color: var(--blue);
  box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
}

.btn-small {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 14px;
}

.price-badge {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(49, 228, 241, .38);
  border-radius: var(--radius);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  background: rgba(29, 19, 105, .34);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats div,
.metric-row div {
  padding: 16px;
  border: 1px solid rgba(49, 228, 241, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
}

.hero-stats strong,
.metric-row strong {
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
}

.hero-stats span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.hero-stats small,
.metric-row small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.hero-visual,
.image-panel {
  overflow: hidden;
  border: 1px solid rgba(49, 228, 241, .24);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual img,
.image-panel img {
  width: 100%;
}

.hero-visual {
  align-self: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.problem-grid,
.features-grid,
.seo-grid,
.audience-grid,
.scenario-grid {
  display: grid;
  gap: 16px;
}

.card,
.feature-card,
.status-card,
.pill-card,
.scenario-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(29, 19, 105, .07);
}

.card {
  padding: 22px;
}

.card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.feature-card,
.scenario-card {
  padding: 22px;
}

.feature-card img,
.scenario-card img {
  margin-bottom: 16px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--graphite);
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.status-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.status-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.status-card.allow::before {
  background: var(--green);
}

.status-card.deny::before {
  background: var(--red);
}

.status-card.neutral::before {
  background: var(--cyan);
}

.metric-row {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--graphite);
  background: #f0f4ff;
  font-size: 14px;
  text-transform: uppercase;
}

td:nth-child(2) {
  color: var(--green);
  font-weight: 800;
}

td:nth-child(3) {
  color: var(--muted);
}

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

.pill-card {
  display: flex;
  min-height: 86px;
  align-items: center;
  padding: 20px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--graphite);
  font-weight: 750;
}

.steps span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.faq-list {
  display: grid;
  gap: 12px;
}

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

.faq-item button {
  position: relative;
  width: 100%;
  padding: 18px 52px 18px 18px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  color: var(--blue);
  font-size: 24px;
  transform: translateY(-50%);
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-item div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.faq-item div > p {
  overflow: hidden;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
}

.faq-item.is-open div {
  grid-template-rows: 1fr;
}

.faq-item.is-open div > p {
  padding-bottom: 18px;
}

.final-cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(49, 228, 241, .2), transparent 28%),
    linear-gradient(45deg, #332a97 0%, #1d1369 100%);
}

.final-cta-inner {
  max-width: 860px;
  color: #fff;
  text-align: center;
}

.final-cta-inner .eyebrow {
  margin-inline: auto;
  color: #31e4f1;
}

.final-cta-inner p {
  max-width: 680px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .78);
}

.final-cta-inner .hero-actions {
  justify-content: center;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, .78);
  background: linear-gradient(45deg, #332a97 0%, #1d1369 100%);
}

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

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (min-width: 560px) {
  .hero-stats,
  .metric-row,
  .seo-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-grid,
  .features-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .section-pad {
    padding: 96px 0;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    align-items: center;
  }

  .split-grid,
  .challenge-grid,
  .dashboard-grid,
  .install-grid,
  .faq-grid {
    grid-template-columns: .78fr 1fr;
    align-items: start;
  }

  .dashboard-grid {
    grid-template-columns: .64fr 1.16fr;
  }

  .problem-grid,
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scenario-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .seo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .btn {
    width: 100%;
  }

  .price-badge {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .brand {
    min-width: auto;
  }

  .brand-logo {
    width: 172px;
    height: auto;
  }
}
