:root {
  --bg: #0b0b0d;
  --bg-alt: #0f0f12;
  --text: #ededf0;
  --muted: #93939c;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #8b7bff;
  --accent-soft: rgba(139, 123, 255, 0.14);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-soft);
}

.nav {
  display: flex;
  gap: 32px;
}

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

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}

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

.nav a:hover::after {
  width: 100%;
}

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

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.cart-link:hover {
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0b0d;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cart-count.hidden {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 123, 255, 0.22), transparent 70%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translateX(-52%) translateY(0); }
  to { transform: translateX(-48%) translateY(30px); }
}

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

.eyebrow {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 800;
  max-width: 780px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: #0b0b0d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(139, 123, 255, 0.5);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

button.btn {
  cursor: pointer;
  font-family: inherit;
}

button.btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none !important;
}

/* Sections */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

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

.section-num {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.grid-2 h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  margin: 0;
  position: sticky;
  top: 110px;
}

.grid-2 p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 18px;
}

.goal-text {
  margin-top: 20px !important;
  color: var(--text) !important;
}

.example-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--text) !important;
}

.section:not(.section-alt) .example-card {
  background: rgba(255, 255, 255, 0.03);
}

/* Tasks */

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.task-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}

.task-list li:hover {
  padding-left: 8px;
  color: var(--text);
}

.task-list li:last-child {
  border-bottom: none;
}

.task-index {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Features */

.features-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.features-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.features-head p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature-card .btn-cart {
  align-self: flex-start;
  margin-top: 6px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 123, 255, 0.4);
  background: var(--accent-soft);
}

.feature-index {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}

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

.feature-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.feature-more svg {
  transition: transform 0.3s var(--ease);
}

.feature-card:hover .feature-more svg {
  transform: translateX(4px);
}

.audience-line {
  margin: 48px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 620px;
}

/* Service detail pages */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.back-link:hover {
  color: var(--text);
  gap: 12px;
}

.page-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  max-width: 700px;
}

.prose {
  max-width: 700px;
}

.prose p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .example-card {
  color: var(--text);
}

.included-heading {
  color: var(--text) !important;
  font-weight: 700;
  margin: 8px 0 0 !important;
}

.included-list {
  list-style: none;
  margin: 14px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.included-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Cart page */

.cart-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
}

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

.cart-remove {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.cart-remove:hover {
  border-color: var(--accent);
  color: var(--text);
}

.order-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Reveal animation */

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-glow { transition: none; animation: none; opacity: 1; transform: none; }
}

/* Responsive */

@media (max-width: 860px) {
  .nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 h2 { position: static; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 140px 0 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
