:root {
  --bg: #06120f;
  --surf: #0a1c1a;
  --surf2: #143a35;
  --em: #0d9488;
  --em-d: #0f766e;
  --hi: #5eead4;
  --txt: #ecfdf9;
  --txt-m: #99f6e4;
  --mono: ui-monospace, "Courier New", monospace;
  --pixel: "Tiny5", ui-monospace, monospace;
  --sans: system-ui, -apple-system, sans-serif;
}

html.light {
  --bg: #f0f2f0;
  --surf: #f8faf9;
  --surf2: #d1d9d5;
  --em: #0d9488;
  --em-d: #0f766e;
  --hi: #14b8a6;
  --txt: #021a17;
  --txt-m: #115e59;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surf);
  border-bottom: 1px solid var(--surf2);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo canvas {
  display: block;
  height: 28px;
  image-rendering: pixelated;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--em);
}
.nav-theme-btn {
  font-family: var(--pixel);
  font-size: 12px;
  color: var(--txt);
  background: none;
  border: 1px solid var(--surf2);
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.nav-theme-btn:hover {
  border-color: var(--em);
  color: var(--em);
}
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--em);
}

/* GEM */
.gem-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(80vmin, 600px);
  height: min(80vmin, 600px);
  pointer-events: all;
  z-index: 0;
}
#gem-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* INTRO: hide nav before entering gem */
html[data-intro] nav {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* HERO TITLE (inside stage-0) */
#stage-0 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  user-select: none;
  pointer-events: all;
  line-height: 1;
  transform: scale(var(--ts, 1));
  opacity: var(--to, 1);
}
.hero-title canvas {
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.15));
  animation: flicker 6s infinite;
}
html.light .hero-title canvas {
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.15));
}
#stage-0 .hero-title canvas {
  image-rendering: pixelated;
}
@keyframes flicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.9; }
  98% { opacity: 1; }
  99% { opacity: 0.94; }
}

/* STAGE OVERLAYS – horizontal slide */
.stage {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), opacity 0.25s ease;
  transform: translateX(200px);
  opacity: 0;
  padding: 40px 24px;
  gap: 12px;
  text-transform: uppercase;
}
.stage.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.stage.prev {
  transform: translateX(-200px);
  opacity: 0;
}
.stage.next {
  transform: translateX(200px);
  opacity: 0;
}

/* PLANS */
.p-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
  width: min(820px, 94%);
  margin-top: 4px;
}
.p-plan-dur {
  font-family: var(--pixel);
  font-size: clamp(13px, 1.6vw, 18px);
  color: var(--hi);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.p-card--featured {
  border-color: var(--em);
  background: rgba(13, 148, 136, 0.08);
}
html.light .p-card--featured {
  background: rgba(13, 148, 136, 0.06);
}
.p-card--featured:hover {
  border-color: var(--hi);
}

/* Pricing grid — adjacent cards */
.p-pricing-grid {
  gap: 0;
}
.p-pricing-grid .p-card {
  border-right: none;
}
.p-pricing-grid .p-card:last-child {
  border-right: 1px solid var(--surf2);
}
html.light .p-pricing-grid .p-card:last-child {
  border-right-color: var(--surf2);
}
.p-pricing-grid .p-card:hover {
  border: 1px solid var(--hi);
  position: relative;
  z-index: 1;
}

/* IRON card — grey accent */
.p-card--iron {
  border-color: #6b7280;
}
html.light .p-card--iron {
  border-color: #9ca3af;
}
.p-card-title--iron {
  color: #9ca3af !important;
}
html.light .p-card-title--iron {
  color: #6b7280 !important;
}
.p-card--iron:hover {
  border-color: #6b7280 !important;
}

/* GOLD card — orange accent */
.p-card--gold {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.06);
}
html.light .p-card--gold {
  border-color: #b45309;
  background: rgba(217, 119, 6, 0.04);
}
.p-card--gold .p-badge {
  background: #d97706;
}
html.light .p-card--gold .p-badge {
  background: #b45309;
}
.p-card-title--gold {
  color: #d97706 !important;
}
.p-card--gold:hover {
  border-color: #d97706 !important;
}

/* DIAMOND card — teal accent */
.p-card--diamond {
  border-color: var(--em);
  background: rgba(13, 148, 136, 0.06);
}
html.light .p-card--diamond {
  border-color: var(--em-d);
  background: rgba(13, 148, 136, 0.04);
}
.p-card-title--diamond {
  color: var(--hi) !important;
}
html.light .p-card-title--diamond {
  color: var(--em) !important;
}
.p-card--diamond:hover {
  border-color: var(--em) !important;
}

/* PRICING */
.p-badge {
  font-family: var(--pixel);
  font-size: clamp(9px, 1.2vw, 12px);
  color: var(--bg);
  background: var(--hi);
  display: inline-block;
  padding: 2px 8px;
  letter-spacing: 1px;
  vertical-align: middle;
}
html.light .p-badge {
  color: var(--surf);
}
.p-pricing-subtitle .p-badge {
  opacity: 1;
}
.p-pricing-subtitle {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--txt-m);
  opacity: 0.6;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.p-pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.p-pricing-feature {
  font-family: var(--pixel);
  font-size: clamp(11px, 1.4vw, 14px);
  color: var(--txt);
  line-height: 1.6;
  opacity: 0.7;
  padding-left: 16px;
  position: relative;
}
.p-pricing-feature::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--em);
  opacity: 0.8;
}
.p-pricing-price {
  font-family: var(--pixel);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--hi);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.p-pricing-sub {
  font-family: var(--pixel);
  font-size: clamp(10px, 1.3vw, 13px);
  color: var(--txt-m);
  opacity: 0.45;
  letter-spacing: 0.5px;
}
.p-pricing-note {
  font-family: var(--pixel);
  font-size: clamp(9px, 1.1vw, 12px);
  color: var(--txt-m);
  opacity: 0.3;
  letter-spacing: 0.15em;
  text-align: center;
  max-width: 520px;
  margin-top: 16px;
  line-height: 1.5;
}

/* CALENDLY BUTTON */
.p-form-btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: clamp(14px, 1.8vw, 20px);
  background: var(--em);
  color: var(--bg);
  border: 2px solid var(--em);
  padding: 16px 36px;
  cursor: pointer;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, transform 0.2s;
  margin-top: 8px;
}
.p-form-btn:hover {
  background: transparent;
  color: var(--em);
  transform: scale(1.03);
}

/* PIXEL STAGE CONTENT – bold, no boxes, direct on gem */
.p-sec-label {
  font-family: var(--pixel);
  font-size: clamp(14px, 1.8vw, 20px);
  color: var(--txt-m);
  letter-spacing: 0.22em;
  opacity: 0.5;
  margin-bottom: 2px;
}

.p-title {
  font-family: var(--pixel);
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.1;
  text-align: center;
  color: var(--txt);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.p-title em {
  color: var(--em);
  font-style: normal;
}

.p-sub {
  font-family: var(--pixel);
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--txt-m);
  text-align: center;
  opacity: 0.7;
  max-width: 520px;
  line-height: 1.5;
}

/* STATS */
.p-stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(680px, 94%);
  margin-top: 4px;
}
.p-stat-item {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  align-items: flex-start;
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--surf2);
  background: rgba(10, 28, 26, 0.2);
  transition: border-color 0.15s, background 0.15s;
}
html.light .p-stat-item {
  background: rgba(248, 250, 249, 0.35);
}
.p-stat-item:hover {
  border-color: var(--hi);
  background: rgba(10, 28, 26, 0.35);
}
html.light .p-stat-item:hover {
  background: rgba(248, 250, 249, 0.65);
}
.p-stat-item .p-stat-num {
  font-family: var(--pixel);
  font-size: clamp(42px, 6vw, 64px);
  color: var(--em);
  line-height: 1;
  min-width: clamp(80px, 12vw, 120px);
  flex-shrink: 0;
  text-shadow: 0 0 30px rgba(13, 148, 136, 0.35);
}
.p-stat-info {
  flex: 1;
  min-width: 0;
}
.p-stat-lbl {
  font-family: var(--pixel);
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--txt);
  letter-spacing: 0.25em;
  opacity: 0.45;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.p-stat-desc {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--txt-m);
  line-height: 1.7;
  opacity: 0.65;
}

/* SERVICES */
.p-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.5vw, 28px);
  width: min(820px, 94%);
  margin-top: 4px;
}
.p-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--surf2);
  background: rgba(10, 28, 26, 0.25);
  transition: border-color 0.15s, background 0.15s, transform 0.2s;
}
html.light .p-card {
  background: rgba(248, 250, 249, 0.4);
}
.p-card:hover {
  border-color: var(--hi);
  background: rgba(10, 28, 26, 0.4);
  transform: translateY(-2px);
}
html.light .p-card:hover {
  background: rgba(248, 250, 249, 0.7);
}
.p-card-title {
  font-family: var(--pixel);
  font-size: clamp(16px, 2.2vw, 24px);
  color: var(--txt);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.p-card-body {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--txt-m);
  line-height: 1.7;
  opacity: 0.65;
}

/* BIO */
.p-bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(680px, 94%);
  margin-top: 4px;
}
.p-bio-text {
  font-family: var(--pixel);
  font-size: clamp(13px, 1.6vw, 17px);
  color: var(--txt-m);
  line-height: 1.8;
  opacity: 0.75;
}

/* SERVICES */
.p-services-grid {
  width: min(820px, 94%);
  margin-top: 4px;
}
.p-services-grid .p-card {
  display: flex;
  flex-direction: column;
}
.p-services-grid .p-card-body {
  flex: 1;
}
.p-service-icon {
  color: var(--em);
  margin-bottom: 14px;
  line-height: 1;
}
.p-service-icon svg {
  display: block;
}

/* FAQ */
.p-faq {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(680px, 94%);
  margin-top: 4px;
}
.p-faq-item {
  border: 1px solid var(--surf2);
  background: rgba(10, 28, 26, 0.2);
  transition: border-color 0.15s;
}
html.light .p-faq-item {
  background: rgba(248, 250, 249, 0.35);
}
.p-faq-item:hover {
  border-color: var(--hi);
}
.p-faq-item.open {
  border-color: var(--em);
}
.p-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
  cursor: pointer;
  user-select: none;
  font-family: var(--pixel);
  font-size: clamp(13px, 1.6vw, 17px);
  color: var(--txt);
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.p-faq-chevron {
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--em);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
  line-height: 1;
}
.p-faq-item.open .p-faq-chevron {
  transform: rotate(45deg);
}
.p-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.22,1,.36,1), padding 0.3s ease;
  padding: 0 clamp(16px, 2.5vw, 24px);
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 15px);
  color: var(--txt-m);
  line-height: 1.7;
  opacity: 0.65;
}
.p-faq-item.open .p-faq-answer {
  max-height: 300px;
  padding: 0 clamp(16px, 2.5vw, 24px) clamp(16px, 2vw, 22px);
}

/* STEPS */
.p-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(720px, 94%);
  margin-top: 4px;
}
.p-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 24px) clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--surf2);
  background: rgba(10, 28, 26, 0.2);
  transition: border-color 0.15s, background 0.15s, transform 0.2s;
}
html.light .p-step {
  background: rgba(248, 250, 249, 0.35);
}
.p-step:hover {
  border-color: var(--hi);
  background: rgba(10, 28, 26, 0.35);
  transform: translateX(4px);
}
html.light .p-step:hover {
  background: rgba(248, 250, 249, 0.65);
}
.p-step-num {
  font-family: var(--pixel);
  font-size: clamp(32px, 4.5vw, 48px);
  color: var(--em);
  min-width: 52px;
  flex-shrink: 0;
  line-height: 1;
  text-shadow: 0 0 16px rgba(13, 148, 136, 0.25);
}
.p-step-title {
  font-family: var(--pixel);
  font-size: clamp(15px, 2vw, 22px);
  color: var(--txt);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.p-step-body {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--txt-m);
  line-height: 1.7;
  opacity: 0.65;
}

/* TESTIMONIALS */
.p-testis {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(720px, 94%);
  margin-top: 4px;
}
.p-testi {
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--surf2);
  background: rgba(10, 28, 26, 0.2);
  transition: border-color 0.15s, background 0.15s, transform 0.2s;
}
html.light .p-testi {
  background: rgba(248, 250, 249, 0.35);
}
.p-testi:hover {
  border-color: var(--hi);
  background: rgba(10, 28, 26, 0.35);
  transform: translateX(4px);
}
html.light .p-testi:hover {
  background: rgba(248, 250, 249, 0.65);
}
.p-testi-stars {
  font-family: var(--pixel);
  font-size: clamp(15px, 2vw, 22px);
  color: var(--em);
  margin-bottom: 8px;
  letter-spacing: 5px;
}
.p-testi-body {
  font-family: var(--pixel);
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--txt);
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 10px;
  font-style: normal;
}
.p-testi-author {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--txt-m);
  opacity: 0.55;
}

/* CONTACT FORM */
.p-form {
  display: flex;
  max-width: 400px;
  width: 90%;
  border: 2px solid var(--em);
}
.p-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--txt);
  font-family: var(--pixel);
  font-size: clamp(12px, 1.6vw, 16px);
  outline: none;
}
.p-form input::placeholder {
  color: var(--txt-m);
  opacity: 0.4;
}
.p-form button {
  font-family: var(--pixel);
  font-size: clamp(12px, 1.6vw, 16px);
  background: var(--em);
  color: var(--bg);
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background 0.15s;
}
.p-form button:hover {
  background: var(--em-d);
}
.p-note {
  font-family: var(--pixel);
  font-size: clamp(9px, 1.2vw, 12px);
  color: var(--txt-m);
  opacity: 0.35;
  letter-spacing: 0.15em;
  text-align: center;
}

@media (max-width: 640px) {
  nav {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surf);
    padding: 16px 24px;
    border-bottom: 1px solid var(--surf2);
    z-index: 99;
  }
  .nav-menu-btn {
    display: flex;
  }
  .gem-wrap {
    width: min(45vmin, 158px);
    height: min(45vmin, 158px);
  }
  .hero-title {
    transform: scale(calc(var(--ts, 1) * 0.35));
  }
  .stage {
    overflow: hidden;
  }
  .stage {
    padding: 20px 14px;
    gap: 8px;
  }
  .p-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 8px;
  }
  .p-sec-label {
    font-size: clamp(11px, 2.5vw, 14px);
  }
  .p-sub {
    font-size: clamp(11px, 2.5vw, 14px);
    max-width: 300px;
  }
  .p-stat-num {
    font-size: clamp(40px, 14vw, 56px);
    letter-spacing: 1px;
  }
  .p-stat-item {
    flex-direction: column;
    gap: 8px;
  }
  .p-stat-item .p-stat-num {
    min-width: auto;
    font-size: clamp(36px, 14vw, 48px);
  }
  .p-grid-2 {
    grid-template-columns: 1fr;
    width: min(400px, 94%);
  }
  .p-card {
    padding: 14px 16px;
  }
  .p-card-title {
    font-size: clamp(13px, 3vw, 16px);
  }
  .p-card-body {
    font-size: clamp(11px, 2.5vw, 13px);
  }
  .p-service-icon svg {
    width: 26px;
    height: 26px;
  }
  .p-service-icon {
    margin-bottom: 10px;
  }
  .p-steps {
    width: min(400px, 94%);
  }
  .p-step {
    padding: 12px 14px;
    gap: 12px;
  }
  .p-step-num {
    font-size: clamp(22px, 5vw, 28px);
    min-width: 36px;
  }
  .p-step-title {
    font-size: clamp(12px, 2.8vw, 15px);
  }
  .p-step-body {
    font-size: clamp(11px, 2.5vw, 13px);
  }
  .p-bio-text {
    font-size: clamp(12px, 2.8vw, 15px);
  }
  .p-testis {
    width: min(400px, 94%);
  }
  .p-testi {
    padding: 14px 16px;
  }
  .p-testi-body {
    font-size: clamp(12px, 2.8vw, 15px);
  }
  .p-form {
    max-width: 320px;
  }
  .p-grid-3 {
    grid-template-columns: 1fr;
    width: min(400px, 94%);
  }
  .p-pricing-grid {
    gap: 0;
  }
  .p-pricing-grid .p-card {
    border-right: 1px solid var(--surf2);
  }
  .p-pricing-grid .p-card:last-child {
    border-right: 1px solid var(--surf2);
  }
  .p-plan-dur {
    font-size: clamp(12px, 2.8vw, 15px);
  }
  .p-form-btn {
    padding: 12px 24px;
    font-size: clamp(12px, 2.8vw, 15px);
  }
  .p-pricing-feature {
    font-size: clamp(11px, 2.5vw, 14px);
    padding-left: 14px;
  }
  .p-pricing-price {
    font-size: clamp(20px, 5vw, 26px);
  }
  .p-pricing-subtitle {
    font-size: clamp(11px, 2.5vw, 14px);
  }
  .p-pricing-note {
    font-size: clamp(9px, 2vw, 11px);
    max-width: 320px;
  }
  .p-faq-question {
    font-size: clamp(12px, 2.8vw, 15px);
    padding: 12px 14px;
  }
  .p-faq-answer {
    font-size: clamp(11px, 2.5vw, 14px);
  }
  .p-form input {
    padding: 10px 12px;
    font-size: clamp(11px, 2.5vw, 14px);
  }
  .p-form button {
    padding: 10px 14px;
    font-size: clamp(11px, 2.5vw, 14px);
  }
}
