:root {
  /* Brand accent (steel blue) — carried over from the EMRCS house style */
  --accent: #4d97c1;
  --accent-light: #6aabce;
  --accent-dark: #3a7a9e;

  /* Neutrals */
  --black: #0a0a0a;
  --charcoal: #141414;
  --dark-gray: #1e1e1e;
  --medium-gray: #2d2d2d;
  --steel: #404040;
  --light-gray: #8a8a8a;
  --silver: #b0b0b0;
  --off-white: #e8e8e8;
  --white: #ffffff;

  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

::selection {
  background: var(--accent);
  color: var(--black);
}

/* ---------- Shared type / layout ---------- */
.section {
  padding: 7rem 5%;
  position: relative;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.section-header p {
  color: var(--silver);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem auto 0;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(77, 151, 193, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--off-white);
  padding: 1rem 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* A form wrapping a plan button should not add layout of its own */
.plan-form {
  margin-top: auto;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(77, 151, 193, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--white);
}

.nav-brand img {
  height: 38px;
  width: auto;
}

.nav-brand span b {
  color: var(--accent);
  font-weight: inherit;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--silver);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a.plain::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a.plain:hover {
  color: var(--white);
}

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

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 5% 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(77, 151, 193, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(77, 151, 193, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--black) 0%, var(--charcoal) 50%, var(--black) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(77, 151, 193, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 151, 193, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(77, 151, 193, 0.35);
  background: rgba(77, 151, 193, 0.08);
  color: var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

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

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--silver);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--light-gray);
  letter-spacing: 0.5px;
}

/* ---------- Prompt demo card ---------- */
.demo {
  margin: 4rem auto 0;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(81, 81, 81, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid var(--medium-gray);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  text-align: left;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--medium-gray);
}

.demo-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--steel);
  display: inline-block;
}

.demo-bar span {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light-gray);
}

.demo-body {
  padding: 1.5rem;
}

.demo-prompt {
  color: var(--off-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.demo-prompt b {
  color: var(--accent-light);
}

.demo-response {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--silver);
  font-size: 0.95rem;
}

.demo-line .tick {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Feature grid ---------- */
.features {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--dark-gray) 100%);
}

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

.feature-card {
  background: linear-gradient(180deg, rgba(81, 81, 81, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid var(--medium-gray);
  border-radius: 15px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px -2px rgba(77, 151, 193, 0.35);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 151, 193, 0.35);
  box-shadow: 0 12px 28px -6px var(--accent-dark);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.feature-card p {
  color: var(--silver);
  font-size: 0.98rem;
  line-height: 1.7;
}

.center-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ---------- How it works ---------- */
.how {
  background: var(--black);
}

.steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.75rem 0;
}

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  min-width: 80px;
  opacity: 0.85;
}

.step-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--silver);
  font-size: 1.05rem;
  max-width: 600px;
}

.step-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), var(--medium-gray));
  margin-left: 39px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-gray) 50%, var(--charcoal) 100%);
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
  text-align: center;
}

.cta-band h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--silver);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(81, 81, 81, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid var(--medium-gray);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 151, 193, 0.35);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 40px -10px rgba(77, 151, 193, 0.4);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 2px;
  color: var(--white);
}

.plan-desc {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 2.6em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.plan-price .amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.plan-price .period {
  color: var(--light-gray);
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan-features li {
  color: var(--off-white);
  font-size: 0.95rem;
  padding-left: 1.6rem;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.plan .btn-primary,
.plan .btn-secondary {
  justify-content: center;
  width: 100%;
}

.pricing-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--light-gray);
  font-size: 0.95rem;
}

.pricing-note a {
  color: var(--accent);
  font-weight: 600;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--dark-gray) 100%);
}

.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: linear-gradient(180deg, rgba(81, 81, 81, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid var(--medium-gray);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.faq-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--silver);
  font-size: 0.98rem;
}

/* ---------- Status pages (success / cancel / notice) ---------- */
.status {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.status-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.status-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
}

.status-icon.warn {
  border-color: var(--steel);
}

.status-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
}

.status-icon.warn svg {
  stroke: var(--silver);
}

.status h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.status p {
  color: var(--silver);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.status .hero-cta-group {
  margin-top: 0;
}

/* ---------- Subscribe page header ---------- */
.page-head {
  padding: 10rem 5% 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-head-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.page-head h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.page-head h1 .accent {
  color: var(--accent);
}

.page-head p {
  color: var(--silver);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--medium-gray);
}

.footer-content {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .nav-brand {
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--light-gray);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-section h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul a {
  color: var(--light-gray);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light-gray);
  font-size: 0.85rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav > .nav-cta {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 1.5rem 5%;
    gap: 1.25rem;
    border-bottom: 1px solid var(--medium-gray);
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .section {
    padding: 5rem 5%;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }

  .step-number {
    min-width: auto;
  }

  .step-connector {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
