/* ============================================
   TechVerse Solution — Shared Stylesheet
   ============================================ */

:root {
  /* Colors */
  --color-bg: #f7f8fc;
  --color-bg-alt: #eef0fa;
  --color-surface: #ffffff;
  --color-text: #161a2b;
  --color-text-muted: #5b6178;

  --color-primary: #4f46e5;
  --color-primary-2: #7c3aed;
  --color-primary-dark: #1e1b4b;
  --color-primary-light: #ecebfd;

  --color-accent: var(--color-primary);
  --color-accent-2: var(--color-primary-2);
  --color-accent-dark: var(--color-primary);

  --color-border: #e5e7f5;

  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  --gradient-hero: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-primary-2) 75%, var(--color-accent-2) 100%);

  --dark-bg: #0b0e1c;

  /* Type */
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container-width: 1140px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 28px rgba(30, 27, 75, 0.1);
  --shadow-lg: 0 20px 48px rgba(30, 27, 75, 0.16);
  --shadow-glow-primary: 0 14px 34px rgba(79, 70, 229, 0.3);
  --shadow-glow-accent: 0 14px 34px rgba(79, 70, 229, 0.3);
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: #0e1122;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
}

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

section {
  padding: 88px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  z-index: 1;
}

.btn:hover::after {
  left: 130%;
}

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

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.38);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-on-dark {
  background: #ffffff;
  color: var(--color-primary-dark);
}

.btn-on-dark:hover {
  background: var(--color-bg-alt);
}

.btn-outline-on-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--color-accent-dark);
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(79, 70, 229, 0.3));
}

.site-footer .logo-icon {
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.45));
}

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

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a:not(.btn) {
  position: relative;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 8px 2px;
  transition: color 0.15s ease;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transition: right 0.25s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--color-primary);
}

.site-nav a:not(.btn):hover::after {
  right: 0;
}

.site-nav a.active {
  color: var(--color-primary);
}

.site-nav a.active::after {
  right: 0;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  background:
    radial-gradient(circle, rgba(79, 70, 229, 0.12) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--color-bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  background: var(--color-primary-2);
  top: -160px;
  left: -140px;
}

.hero::after {
  background: var(--color-accent-2);
  bottom: -180px;
  right: -120px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 70px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 0.45em;
}

.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  margin-bottom: 2.1em;
  max-width: 540px;
}

/* Hero visual: abstract browser mockup + floating chips */
.hero-visual {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.browser-mock {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }

.browser-url {
  margin-left: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.browser-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-nav {
  display: flex;
  gap: 10px;
}

.mock-nav span {
  width: 36px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-alt);
}

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: var(--gradient-primary);
}

.mock-line {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.mock-line.w-70 { width: 70%; }
.mock-line.w-50 { width: 45%; }

.mock-btn {
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  margin-top: 4px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-card {
  height: 50px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  animation: float 5s ease-in-out infinite;
  white-space: nowrap;
}

.floating-chip svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.chip-1 { top: -14px; right: -14px; animation-delay: 0s; }
.chip-2 { bottom: 40px; left: -36px; animation-delay: 1.1s; }
.chip-3 { bottom: -16px; right: 24px; animation-delay: 2.2s; }

/* ---------- Stats strip ---------- */
.stats-strip {
  padding: 0 0 40px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  margin-top: -64px;
  position: relative;
  overflow: hidden;
}

.stats-grid::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--color-primary-2);
  opacity: 0.08;
  filter: blur(80px);
  top: -120px;
  right: -60px;
  pointer-events: none;
}

.stat {
  position: relative;
  text-align: center;
  padding: 0 16px;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  width: 1px;
  background: var(--color-border);
}

.stat:hover {
  background: var(--color-primary-light);
  transform: translateY(-3px);
}

.stat-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat:hover .stat-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.32);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-primary);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
  transition: transform 0.25s ease;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.card > p:first-of-type {
  flex-grow: 1;
}

.card .quote-price {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 10px 0 4px;
}

.card .btn {
  margin-top: 18px;
}

.card-link {
  margin-top: 18px;
  font-weight: 600;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* ---------- Intro / Text blocks ---------- */
.intro {
  text-align: center;
}

.intro .container {
  max-width: 820px;
}

.intro p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Why block ---------- */
.why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-block .panel {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.why-block .panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(50px);
  top: -80px;
  right: -60px;
}

.why-block .panel h3,
.why-block .panel p {
  position: relative;
}

.why-block .panel h3 {
  color: #ffffff;
  font-size: 1.5rem;
}

.why-block .panel p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.why-list .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-list .item .num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}

.why-list .item h4 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}

.why-list .item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Closing CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #ffffff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  margin: 0 24px;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(70px);
  top: -120px;
  left: 10%;
}

.cta-banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  filter: blur(70px);
  bottom: -120px;
  right: 8%;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .cta-row {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2em;
  font-size: 1.05rem;
}

.cta-banner .cta-row {
  justify-content: center;
}

.cta-section {
  padding: 90px 0;
}

/* ---------- Service detail rows (Services page) ---------- */
main {
  counter-reset: service;
}

.service-row {
  counter-increment: service;
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.service-row::after {
  content: "0" counter(service);
  position: absolute;
  right: 4px;
  top: 34px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.2rem;
  color: var(--color-border);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .service-row::after {
    display: none;
  }
}

.service-row:last-child {
  border-bottom: none;
}

.service-row .card-icon {
  width: 64px;
  height: 64px;
}

.service-row .card-icon svg {
  width: 30px;
  height: 30px;
}

.service-row:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-row h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
  position: relative;
}

.service-row .desc {
  color: var(--color-text-muted);
  margin-bottom: 1em;
  position: relative;
}

.service-row .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
  margin-bottom: 1.2em;
  position: relative;
}

.service-row .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text);
  font-size: 0.96rem;
}

.service-row .features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.service-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* ---------- Pricing ---------- */
.pricing-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

table.pricing-table th,
table.pricing-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

table.pricing-table thead th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

table.pricing-table tbody tr {
  transition: background 0.15s ease;
}

table.pricing-table tbody tr:hover {
  background: var(--color-bg-alt);
}

table.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

table.pricing-table td.price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.tier-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tier-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    var(--gradient-primary) border-box;
  box-shadow: var(--shadow-glow-primary);
  transform: scale(1.03);
}

.tier-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--gradient-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.tier-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2em;
}

.tier-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--color-primary);
  margin-bottom: 0.7em;
}

.tier-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.tier-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.6em;
  flex-grow: 1;
}

.tier-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--color-text);
}

.tier-card ul li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 32px;
  font-size: 0.95rem;
}

/* ---------- About page ---------- */
.apart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.story-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.story-block p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ---------- Contact page ---------- */
.contact-methods {
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 100px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}

.site-footer .logo {
  color: #ffffff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  margin-top: 14px;
}

.footer-links h3,
.footer-contact h3 {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(79, 70, 229, 0.12) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--color-bg);
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--color-primary-2);
  filter: blur(110px);
  opacity: 0.22;
  top: -160px;
  left: -100px;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--color-accent-2);
  filter: blur(110px);
  opacity: 0.2;
  bottom: -160px;
  right: -100px;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .cta-row {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .why-block {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 10px 4px;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    margin: 0 16px;
    padding: 48px 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
    margin-top: -40px;
  }

  .stat:nth-child(2n)::after {
    display: none;
  }

  .stat:nth-child(-n+2)::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -14px;
    height: 1px;
    background: var(--color-border);
  }

  .floating-chip {
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .chip-2 {
    left: -12px;
  }
}

@media (max-width: 500px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-visual {
    max-width: 300px;
    margin-top: 34px;
  }

  .chip-1 { top: -38px; right: -6px; }
  .chip-3 { right: 4px; }
}
