:root {
  --bg: #07111d;
  --bg-elevated: rgba(13, 19, 31, 0.8);
  --bg-card: rgba(15, 23, 42, 0.7);
  --surface: #101a2b;
  --surface-soft: #121f31;
  --panel: #0d1729;
  --text: #edf3ff;
  --muted: #a8b8d0;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --secondary: #22d3ee;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 64px rgba(8, 12, 22, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 22%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 26%),
    linear-gradient(180deg, #07111d 0%, #0a1322 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

main {
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 29, 0.7);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(90, 110, 255, 0.22));
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 35px rgba(120, 91, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(120, 91, 255, 0.38);
}

.button-small {
  padding: 0.7rem 1.2rem;
  font-size: 0.76rem;
}

.button-secondary {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(148, 163, 184, 0.12);
}

.hero {
  padding: 6.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 2.25rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--secondary);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  max-width: 680px;
}

.hero-subtitle {
  margin: 1.35rem 0 0;
  max-width: 660px;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-trust span {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.42);
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-window {
  width: min(420px, 100%);
  background: rgba(10, 17, 29, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.04);
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
}

.panel-topbar span:first-child {
  background: #ff5f57;
}

.panel-topbar span:nth-child(2) {
  background: #febc2e;
}

.panel-topbar span:nth-child(3) {
  background: #28c840;
}

.panel-content {
  padding: 1.5rem;
}

.panel-label {
  margin: 0 0 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.stat-row div {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.stat-row strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.stat-row span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-graph {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  height: 84px;
  margin: 1.4rem 0 1rem;
  padding: 1rem 0.35rem 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.26));
}

.bar {
  display: block;
  width: 18%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0.95;
}

.bar.a { height: 35%; }
.bar.b { height: 55%; }
.bar.c { height: 42%; }
.bar.d { height: 78%; }
.bar.e { height: 96%; }

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.panel-list li {
  position: relative;
  padding-left: 1.15rem;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

.metrics,
.services,
.process,
.showcase,
.about,
.cta-section {
  padding: 5.25rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.metric-card {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.metric-number {
  display: inline-block;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.metric-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

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

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.services-grid,
.case-grid,
.process-grid {
  display: grid;
  gap: 1.25rem;
}

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

.service-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.44);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.18));
  color: white;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.service-card p,
.case-card p,
.about-copy p,
.value-item p,
.process-step p {
  margin: 0;
  color: var(--muted);
}

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

.process-step {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
}

.step-index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

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

.case-card {
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.mini-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: #d6c6ff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-header strong {
  font-size: 1.35rem;
  color: white;
}

.case-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.about-copy {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.8rem;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: -0.06em;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text);
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 700;
}

.value-panel {
  display: grid;
  gap: 1rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.1rem;
}

.value-item span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.18));
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
  flex-shrink: 0;
}

.value-item h3 {
  margin: 0 0 0.38rem;
  font-size: 1.15rem;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  letter-spacing: -0.06em;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.footer-content p,
.footer-links a,
.divider {
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: white;
}

.policy-page,
.terms-page {
  min-height: 100vh;
  padding: 4rem 0 5rem;
}

.policy-page .container,
.terms-page .container {
  max-width: 860px;
}

.policy-page h1,
.terms-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
}

.policy-page .meta,
.terms-page .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.content-block {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.2rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul {
  padding-left: 1.2rem;
}

@media (max-width: 980px) {
  .hero-shell,
  .about-grid,
  .cta-box {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-box {
    justify-content: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-shell,
  .services-grid,
  .process-grid,
  .metrics-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .cta-box {
    padding: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.2rem;
  }

  .divider {
    display: none;
  }
}
