:root {
  --cream: #F2EDE3;
  --ink: #111111;
  --orange: #FF4D00;
  --yellow: #FFE600;
  --ink-mid: #333333;
  --ink-light: #666666;
}

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
::selection { background: var(--yellow); color: var(--ink); }

@keyframes ent-spin { from { transform: rotateX(-16deg) rotateY(0deg); } to { transform: rotateX(-16deg) rotateY(360deg); } }
@keyframes ent-float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-16px); } }
@keyframes ent-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ent-marquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }

.container { max-width: 1440px; margin: 0 auto; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--cream);
}
.logo-text { font-weight: 900; font-size: 20px; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--orange); }

/* ===== BUTTONS ===== */
.btn {
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
}
.btn-nav-cta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 20px;
}
.btn-nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-nav-cta:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--ink); }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 72px 64px 88px;
  max-width: 1440px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(52px, 6.2vw, 96px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 28px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-title span { display: block; }
.hero-highlight {
  display: inline-block;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 0 16px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 540px;
  margin: 0 0 32px 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-hero-primary {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFFFF;
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 28px;
}
.btn-hero-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-hero-primary:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--ink); }
.btn-hero-secondary {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--ink);
  background: #FFFFFF;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 28px;
}
.btn-hero-secondary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); }
.btn-hero-secondary:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--ink); }
.hero-note {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ===== HERO VISUAL (3D) ===== */
.hero-visual { position: relative; min-height: 540px; }
.gl-mount { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; pointer-events: none; }

.chip {
  position: absolute;
  border: 2px solid var(--ink);
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.chip-seo {
  top: 6%; right: 4%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 5px 5px 0 var(--yellow);
  animation: ent-float 6s ease-in-out 0.4s infinite;
}
.chip-draft {
  top: 14%; left: 0%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  animation: ent-float 5s ease-in-out infinite;
}
.chip-pub {
  position: absolute;
  bottom: 10%; right: 2%;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--orange);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ent-float 4.2s ease-in-out 0.9s infinite;
}
.chip-pub-check {
  width: 26px; height: 26px;
  background: var(--orange);
  border: 2px solid var(--ink);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; flex-shrink: 0;
}
.chip-pub-text { display: flex; flex-direction: column; gap: 2px; }
.chip-pub-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.chip-pub-meta { font-size: 9px; color: var(--ink-light); font-weight: 600; }
.chip-star {
  position: absolute;
  bottom: 4%; left: 7%;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 900; color: var(--orange);
  text-shadow: 3px 3px 0 var(--ink);
  animation: ent-rot 9s linear infinite;
}

/* CSS 3D fallback (used only if WebGL fails to initialize) */
.hero-fallback {
  display: none;
  position: absolute;
  inset: 0;
  perspective: 1200px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-fallback.is-active { display: flex; }
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ent-cube {
  width: 170px; height: 170px;
  position: relative;
  transform-style: preserve-3d;
  animation: ent-spin 16s linear infinite;
}
.ent-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  border: 3px solid var(--ink);
  color: var(--ink);
  backface-visibility: hidden;
}
.ent-face--y0 { transform: rotateY(0deg) translateZ(85px); }
.ent-face--y90 { transform: rotateY(90deg) translateZ(85px); }
.ent-face--y180 { transform: rotateY(180deg) translateZ(85px); }
.ent-face--y270 { transform: rotateY(270deg) translateZ(85px); }
.ent-face--x90 { transform: rotateX(90deg) translateZ(85px); }
.ent-face--xneg90 { transform: rotateX(-90deg) translateZ(85px); }

.ent-post-card {
  position: absolute; top: 12px; left: -6px;
  transform: translateZ(120px);
  width: 184px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  animation: ent-float 5s ease-in-out infinite;
}
.ent-post-thumb {
  height: 56px;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(45deg, #FFE600 0px, #FFE600 8px, #F2EDE3 8px, #F2EDE3 16px);
}
.ent-bar { height: 8px; background: rgba(17,17,17,0.14); }
.ent-bar--ink { background: var(--ink); }
.ent-bar--82 { width: 82%; }
.ent-bar--100 { width: 100%; }
.ent-bar--94 { width: 94%; }
.ent-bar--62 { width: 62%; }
.ent-post-tag {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 7px;
}
.ent-pub-card {
  position: absolute; bottom: 30px; right: -10px;
  transform: translateZ(150px);
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--orange);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  animation: ent-float 4.2s ease-in-out 0.9s infinite;
}
.ent-seo-card {
  position: absolute; top: -4px; right: 16px;
  transform: translateZ(60px);
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
  padding: 10px 14px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  animation: ent-float 6s ease-in-out 0.4s infinite;
}
.ent-star {
  position: absolute; bottom: -8px; left: 22px;
  transform: translateZ(40px);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 900; color: var(--orange);
  text-shadow: 3px 3px 0 var(--ink);
  animation: ent-rot 9s linear infinite;
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 20px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-track {
  display: inline-flex;
  animation: ent-marquee 26s linear infinite;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  will-change: transform;
}
.marquee-item { display: inline-flex; align-items: center; gap: 30px; margin-right: 30px; }
.marquee-item .dot { color: var(--orange); }

/* ===== EYEBROWS / SECTION HEADERS ===== */
.eyebrow {
  display: inline-flex;
  border: 2px solid var(--ink);
  padding: 7px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.eyebrow--yellow { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.eyebrow--orange { background: var(--orange); color: #FFFFFF; box-shadow: 3px 3px 0 var(--ink); }
.features-section .eyebrow--yellow { box-shadow: 3px 3px 0 var(--orange); }

.section-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  margin: 22px 0 12px 0;
}
.section-title--light { color: var(--cream); }
.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 620px;
  margin: 0 0 48px 0;
}
.section-sub--dark { color: #999999; max-width: 600px; }
.pricing-section .section-sub { margin-bottom: 56px; }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 96px 64px; max-width: 1440px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.how-card {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.how-card:hover {
  transform: perspective(900px) rotateX(3deg) rotateY(-3deg) translate(-3px, -3px);
  box-shadow: 9px 11px 0 var(--ink);
}
.how-num { font-size: 44px; font-weight: 900; letter-spacing: -2px; color: var(--orange); }
.how-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.how-title { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; }
.how-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 8px;
}
.how-desc { font-size: 15px; line-height: 1.7; color: var(--ink-mid); margin: 0; }

/* ===== FEATURES ===== */
.features-section {
  background: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 96px 64px;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--orange);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--orange); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.feature-title { font-size: 16px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; }
.feature-desc { font-size: 14px; line-height: 1.65; color: var(--ink-mid); margin: 0; }

/* ===== PRICING ===== */
.pricing-section { padding: 96px 64px 110px; max-width: 1440px; margin: 0 auto; }
.pricing-controls { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.toggle-group { display: inline-flex; background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.toggle-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: none;
  border-left: 2px solid var(--ink);
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.toggle-btn:first-child { border-left: none; }
.toggle-btn:not(.is-active):hover { background: var(--cream); }
.toggle-btn.is-active { background: var(--ink); color: var(--cream); }
.toggle-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 6px;
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.price-card--dark { background: var(--ink); color: var(--cream); box-shadow: 6px 6px 0 var(--orange); }
.price-card--dark:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--orange); }
.price-card-badge {
  position: absolute; top: -15px; left: 24px;
  background: var(--orange);
  color: #FFFFFF;
  border: 2px solid var(--ink);
  padding: 5px 12px;
  font-size: 9px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
}
.price-tier { font-size: 12px; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-light); }
.price-tier--accent { color: var(--yellow); }
.price-amount-row { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-size: 46px; font-weight: 900; letter-spacing: -2px; }
.price-from { font-size: 16px; font-weight: 700; color: var(--ink-light); }
.price-period { font-size: 14px; font-weight: 700; color: var(--ink-light); }
.price-period--dark { color: #999999; }
.price-annual-note { margin-top: -10px; font-size: 12px; font-weight: 700; color: var(--ink-light); }
.price-annual-note--dark { color: #999999; }
.price-annual-note:empty { display: none; margin: 0; }
.price-cap {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  align-self: flex-start;
}
.price-cap--accent { background: var(--yellow); color: var(--ink); }
.price-features { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; flex: 1; }
.price-feature { display: flex; gap: 10px; }
.price-feature .check { color: var(--orange); font-weight: 900; }
.price-cta {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 15px 10px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.price-cta--light { color: var(--ink); background: var(--cream); }
.price-cta--light:hover { background: var(--yellow); }
.price-cta--orange { color: #FFFFFF; background: var(--orange); box-shadow: 3px 3px 0 var(--yellow); }
.price-cta--orange:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--yellow); }

.pricing-footnote {
  margin-top: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--orange);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 92px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
  max-width: 900px;
}
.btn-cta-band {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
  padding: 20px 36px;
}
.btn-cta-band:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--yellow); }
.btn-cta-band:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--yellow); }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: var(--cream); padding: 64px 64px 36px; }
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand-mark {
  width: 32px; height: 32px;
  background: var(--orange);
  border: 2px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: var(--cream);
}
.footer-brand-text { font-weight: 900; font-size: 18px; letter-spacing: -0.5px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #999999; margin: 0; }
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-light); }
.footer-link { font-size: 14px; color: var(--cream); text-decoration: none; transition: color 0.15s ease; }
.footer-link:hover { color: var(--yellow); }
.footer-static { font-size: 14px; color: #999999; }
.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-light);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-varnan { color: var(--orange); font-weight: 900; }

/* ===== SMALL SCREENS ===== */
@media (max-width: 640px) {
  .nav { padding: 0 20px; gap: 12px; }
  .nav-links { gap: 16px; }
  .nav-link { display: none; }
  .hero, .how-section, .features-section, .pricing-section, .cta-band, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .toggle-group { flex: 1 1 100%; }
  .toggle-btn { flex: 1; justify-content: center; padding: 12px 8px; }
}
