:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #0f172a;
  --muted: #5b6475;
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-deep: #1f2467;
  --accent: #06b6d4;
  --line: #e5ebf8;
  --line-strong: #d6e0f4;
  --success-bg: #e9f2ff;
  --success-line: #bfd4ff;
  --success-text: #1d4ed8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 40px rgba(23, 38, 86, 0.08);
  --shadow-card: 0 18px 50px rgba(23, 40, 95, 0.11);
  --shadow-float: 0 24px 60px rgba(27, 47, 107, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 92% -10%, rgba(79, 70, 229, 0.12), transparent 40%),
    radial-gradient(circle at -8% 12%, rgba(6, 182, 212, 0.11), transparent 32%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(25, 42, 91, 0.05);
}

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

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-block;
  background-color: #fff;
  background-image: url("tapgate_logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid #d8e2f5;
  box-shadow: 0 8px 18px rgba(32, 54, 116, 0.14);
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

.brand span span {
  color: var(--brand);
}

.site-footer .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 19px;
  cursor: pointer;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 9px 14px;
}

.btn-md {
  padding: 12px 18px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #5b53ef 0%, #4f46e5 58%, #4038c7 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(67, 56, 202, 0.36);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(20, 37, 84, 0.05);
}

.btn-outline:hover {
  border-color: #c1cdec;
  background: #fafcff;
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #1a2a66, var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 36, 103, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 27, 75, 0.38);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 88px 0 76px;
  background:
    radial-gradient(circle at 7% 5%, rgba(137, 151, 255, 0.28), transparent 42%),
    radial-gradient(circle at 84% 14%, rgba(10, 195, 224, 0.18), transparent 38%),
    linear-gradient(180deg, #f6f8ff 0%, #f5f8ff 35%, transparent 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 4%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.22), transparent 64%);
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: 8%;
  left: -70px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid #c8d3ff;
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 12px;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: var(--accent);
}

h1 {
  margin: 16px 0 12px;
  line-height: 1.08;
  font-size: clamp(34px, 6vw, 62px);
}

h1 .gradient {
  background: linear-gradient(135deg, var(--brand) 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.micro {
  margin-top: 14px;
  font-size: 12px;
  color: #788196;
  letter-spacing: 0.02em;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c9d5f0;
  box-shadow: var(--shadow-float);
}

.preview-card {
  padding: 24px;
  background: linear-gradient(150deg, #ffffff 2%, #f8faff 100%);
}

.preview-card h3 {
  margin: 0;
  font-size: 17px;
}

.preview-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.preview-list li {
  padding: 11px 12px;
  border: 1px dashed #cedaf0;
  border-radius: 10px;
  background: #f9fbff;
}

.video-shell {
  margin-top: 36px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid #cfdcfd;
  position: relative;
  max-width: 940px;
  background: #161f47;
}

.video-shell video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(37, 45, 93, 0.45), rgba(14, 18, 40, 0.68));
  cursor: pointer;
  color: #fff;
}

.video-overlay.hidden {
  display: none;
}

.play-btn {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.24);
  font-size: 28px;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid #d1dbf1;
  padding: 5px 10px;
  font-size: 12px;
  color: #45516b;
  font-weight: 600;
  background: #f8faff;
}

.strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a 0%, #111b35 60%, #14234a 100%);
  color: #cfd7e4;
}

.strip::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -100px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 68%);
}

.strip .panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.strip h2,
.strip h3 {
  color: #fff;
}

.strip p {
  color: #c4cbd8;
}

.cta-band {
  margin-top: 30px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat {
  border: 1px solid #d6e1f7;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(17, 31, 71, 0.08);
}

.stat b {
  display: block;
  font-size: 26px;
  margin-bottom: 4px;
  color: var(--brand-deep);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card .price {
  font-size: 46px;
  line-height: 1;
  margin: 2px 0;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 6px;
  list-style: "✓  ";
}

.featured-plan {
  border-color: #b8c8ff;
  background: linear-gradient(160deg, #ffffff 0%, #f6f8ff 100%);
  box-shadow: 0 0 0 4px #eef2ff, 0 24px 52px rgba(79, 70, 229, 0.16);
}

.form-stack {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5deee;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #c7d2fe;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

#success-msg {
  display: none;
  margin-top: 14px;
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--success-text);
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
}

.faq-item {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #c9d6f1;
  box-shadow: 0 12px 28px rgba(19, 36, 85, 0.08);
}

.faq-trigger {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.faq-trigger span:last-child {
  color: var(--brand);
}

.faq-content {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.open .faq-content {
  display: block;
}

.page-title {
  padding: 62px 0 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.12), transparent 42%),
    radial-gradient(circle at 20% 10%, rgba(6, 182, 212, 0.08), transparent 34%);
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
}

.page-title p {
  max-width: 700px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid #d7e1f4;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}

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

.copyright {
  color: #7b8598;
  font-size: 13px;
}

.hide-desktop {
  display: none;
}

:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-group {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .nav-group.show {
    display: flex;
  }

  .nav-links,
  .nav-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle,
  .hide-desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .stats,
  .footer-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(32px, 11vw, 56px);
  }
}
