@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ─────────────────────────────────────── */
:root {
  --e-bg:           hsl(220, 20%, 4%);
  --e-card:         hsl(220, 18%, 8%);
  --e-border:       hsl(220, 15%, 16%);
  --e-fg:           hsl(210, 20%, 92%);
  --e-muted:        hsl(215, 15%, 55%);
  --e-primary:      hsl(160, 100%, 50%);
  --e-primary-fg:   hsl(220, 20%, 4%);
  --e-primary-05:   hsla(160, 100%, 50%, 0.05);
  --e-primary-10:   hsla(160, 100%, 50%, 0.10);
  --e-primary-14:   hsla(160, 100%, 50%, 0.14);
  --e-primary-20:   hsla(160, 100%, 50%, 0.20);
  --e-primary-30:   hsla(160, 100%, 50%, 0.30);
  --e-primary-40:   hsla(160, 100%, 50%, 0.40);
  --e-neon-glow:    0 0 20px hsla(160, 100%, 50%, 0.3), 0 0 60px hsla(160, 100%, 50%, 0.1);
  --e-neon-border-shadow: 0 0 15px hsla(160, 100%, 50%, 0.1), inset 0 0 15px hsla(160, 100%, 50%, 0.05);
  --e-font-display: 'JetBrains Mono', monospace;
  --e-font-body:    'Inter', sans-serif;
  --e-ease:         cubic-bezier(0.2, 0, 0, 1);
  --e-radius:       8px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--e-bg);
  color: var(--e-fg);
  font-family: var(--e-font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Global background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, hsla(160, 100%, 50%, 0.07), transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 100%, hsla(160, 100%, 50%, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid lines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(hsla(160, 100%, 50%, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, hsla(160, 100%, 50%, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
main, nav, footer { position: relative; z-index: 1; }

/* ── Utilities ─────────────────────────────────────────── */
.ent-neon-text {
  color: var(--e-primary);
  text-shadow: 0 0 10px hsla(160, 100%, 50%, 0.5), 0 0 40px hsla(160, 100%, 50%, 0.2);
}

.ent-neon-border {
  border-color: var(--e-primary-40) !important;
  box-shadow: var(--e-neon-border-shadow);
}

.ent-neon-glow {
  box-shadow: var(--e-neon-glow);
}

.ent-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .ent-container { padding: 0 16px; }
}

/* ── Scroll-triggered animations ───────────────────────── */
.ent-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--e-ease), transform 0.6s var(--e-ease);
}
.ent-anim--in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ────────────────────────────────────────────────── */
.ent-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: hsla(220, 20%, 4%, 0.72);
  border-bottom: 1px solid var(--e-border);
}

.ent-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ent-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--e-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--e-fg);
  letter-spacing: -0.02em;
}

.ent-nav__brand svg { color: var(--e-primary); }

.ent-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--e-muted);
}

.ent-nav__links a:hover { color: var(--e-fg); transition: color 160ms; }

@media (max-width: 768px) {
  .ent-nav__links { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.ent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--e-radius);
  font-family: var(--e-font-display);
  font-size: 14px;
  font-weight: 600;
  transition: all 160ms var(--e-ease);
  white-space: nowrap;
  cursor: pointer;
}

.ent-btn--primary {
  background: var(--e-primary);
  color: var(--e-primary-fg);
}
.ent-btn--primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--e-neon-glow);
}

.ent-btn--ghost {
  background: transparent;
  color: var(--e-fg);
  border: 1px solid var(--e-border);
}
.ent-btn--ghost:hover {
  border-color: var(--e-primary-30);
  background: var(--e-primary-10);
  color: var(--e-primary);
}

.ent-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 6px; }

/* ── Hero ───────────────────────────────────────────────── */
.ent-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.ent-hero__bg,
.ent-hero__overlay-1,
.ent-hero__overlay-2 { display: none; }

/* Grid overlay */
.ent-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(160, 100%, 50%, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, hsla(160, 100%, 50%, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

/* Scanlines */
.ent-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    hsla(160, 100%, 50%, 0.03) 2px,
    hsla(160, 100%, 50%, 0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Radar */
.ent-radar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
}

.ent-radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid hsla(160, 100%, 50%, 0.3);
}

.ent-radar__ring--1 { width: 140px; height: 140px; }
.ent-radar__ring--2 { width: 280px; height: 280px; }
.ent-radar__ring--3 { width: 420px; height: 420px; }
.ent-radar__ring--4 { width: 560px; height: 560px; }

.ent-radar__sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--e-primary), transparent);
  animation: ent-radar-sweep 4s linear infinite;
}

.ent-radar__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--e-primary);
  animation: ent-pulse 2s ease-in-out infinite;
}

@keyframes ent-radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ent-pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 8px var(--e-primary); }
  50%       { opacity: 1;   box-shadow: 0 0 16px var(--e-primary), 0 0 32px hsla(160,100%,50%,0.5); }
}

/* Hero content */
.ent-hero__content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px;
}

.ent-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--e-primary-20);
  background: var(--e-primary-05);
  backdrop-filter: blur(4px);
  font-family: var(--e-font-display);
  font-size: 13px;
  color: var(--e-primary);
  margin-bottom: 32px;
}

.ent-hero__title {
  font-family: var(--e-font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.ent-hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--e-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.ent-hero__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 540px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--e-primary-20);
  background: hsla(220, 18%, 8%, 0.8);
  backdrop-filter: blur(4px);
  transition: border-color 200ms, box-shadow 200ms;
}

.ent-hero__input-wrap:focus-within {
  border-color: var(--e-primary-40);
  box-shadow: var(--e-neon-border-shadow);
}

.ent-hero__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--e-fg);
  font-family: var(--e-font-display);
  font-size: 14px;
  padding: 10px 12px;
}

.ent-hero__input::placeholder { color: var(--e-muted); }

/* ── Section layout ─────────────────────────────────────── */
.ent-section {
  padding: 96px 0;
  position: relative;
}

.ent-section__head {
  text-align: center;
  margin-bottom: 64px;
}

.ent-section__title {
  font-family: var(--e-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.ent-section__sub {
  font-size: 16px;
  color: var(--e-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── How It Works ───────────────────────────────────────── */
.ent-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1024px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .ent-how { grid-template-columns: 1fr; max-width: 480px; }
}

.ent-step-card {
  position: relative;
  padding: 32px;
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  background: hsla(220, 18%, 8%, 0.5);
  backdrop-filter: blur(4px);
  transition: border-color 300ms, box-shadow 300ms;
}

.ent-step-card:hover {
  border-color: var(--e-primary-40);
  box-shadow: var(--e-neon-border-shadow);
}

.ent-step-card__num {
  font-family: var(--e-font-display);
  font-size: 11px;
  color: var(--e-primary);
  opacity: 0.6;
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.ent-step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--e-primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--e-primary);
  transition: background 300ms;
}

.ent-step-card:hover .ent-step-card__icon {
  background: var(--e-primary-20);
}

.ent-step-card__title {
  font-family: var(--e-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--e-fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ent-step-card__desc {
  font-size: 14px;
  color: var(--e-muted);
  line-height: 1.65;
}

/* Connector line between steps */
.ent-step-card__connector {
  display: none;
}

@media (min-width: 769px) {
  .ent-step-card__connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -17px;
    width: 34px;
    height: 1px;
    background: linear-gradient(to right, var(--e-primary-40), transparent);
    z-index: 1;
  }
}

/* ── Pricing ────────────────────────────────────────────── */
.ent-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .ent-plans { grid-template-columns: 1fr; max-width: 400px; }
}

.ent-plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  background: hsla(220, 18%, 8%, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 300ms;
}

.ent-plan--featured {
  border-color: var(--e-primary-40);
  box-shadow: var(--e-neon-border-shadow);
  background:
    radial-gradient(600px 200px at 50% -100px, var(--e-primary-14), transparent),
    hsla(220, 18%, 8%, 0.8);
}

.ent-plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--e-primary);
  color: var(--e-primary-fg);
  font-family: var(--e-font-display);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ent-plan__name {
  font-family: var(--e-font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ent-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}

.ent-plan__price-num {
  font-family: var(--e-font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ent-plan__price-per {
  font-family: var(--e-font-display);
  font-size: 13px;
  color: var(--e-muted);
}

.ent-plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.ent-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--e-muted);
  line-height: 1.5;
}

.ent-plan__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--e-primary-10);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'><path d='M2.5 6L5 8.5L9.5 3.5' stroke='%2300ff9d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.ent-plan__btn {
  width: 100%;
  margin-top: auto;
}

/* ── Why Ripley ─────────────────────────────────────────── */
.ent-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1152px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .ent-why { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ent-why { grid-template-columns: 1fr; max-width: 400px; }
}

.ent-why-card {
  padding: 24px;
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  background: hsla(220, 18%, 8%, 0.3);
  transition: border-color 300ms, box-shadow 300ms, background 300ms;
}

.ent-why-card:hover {
  border-color: var(--e-primary-40);
  box-shadow: var(--e-neon-border-shadow);
  background: hsla(220, 18%, 8%, 0.6);
}

.ent-why-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--e-primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--e-primary);
  transition: background 300ms;
}

.ent-why-card:hover .ent-why-card__icon {
  background: var(--e-primary-20);
}

.ent-why-card__title {
  font-family: var(--e-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--e-fg);
  margin-bottom: 10px;
}

.ent-why-card__desc {
  font-size: 14px;
  color: var(--e-muted);
  line-height: 1.65;
}

/* ── Footer ─────────────────────────────────────────────── */
.ent-footer {
  border-top: 1px solid var(--e-border);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.ent-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .ent-footer__inner { flex-direction: column; text-align: center; }
}

.ent-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--e-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--e-fg);
}

.ent-footer__brand svg { color: var(--e-primary); }

.ent-footer__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ent-footer__links a {
  font-size: 14px;
  color: var(--e-muted);
  transition: color 160ms;
}

.ent-footer__links a:hover { color: var(--e-primary); }

.ent-footer__copy {
  font-size: 12px;
  color: var(--e-muted);
}
