/* ==============================
   DESIGN TOKENS
============================== */

/* ==============================
   NAVIGATION STYLES
============================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

/* Scrolled State */
.main-nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 13, 31, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  transition: all 0.3s ease;
  transform-origin: right center;
}

/* Hides logo when scrolled */
.main-nav.scrolled .logo-container {
  opacity: 0;
  transform: translateX(-20px) scale(0.8);
  pointer-events: none;
}

.logo-text {
  font-family: 'Space Mono', monospace;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-2);
}

/* Adjust Hero Margin so it doesn't hide under the nav */
header {
  margin-top: 60px;
}
:root {
  --bg1: #060d1f;
  --bg2: #0d1635;
  --bg3: #081a1a;
  --panel: rgba(10, 16, 34, 0.75);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #e8eeff;
  --muted: #8090b8;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-warm: #ff6b35;
  --success: #10b981;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(139, 92, 246, 0.08);
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 15%, rgba(139, 92, 246, 0.15), transparent 35%),
    radial-gradient(ellipse at 85% 10%, rgba(34, 211, 238, 0.12), transparent 30%),
    radial-gradient(ellipse at 50% 85%, rgba(16, 185, 129, 0.09), transparent 30%),
    linear-gradient(160deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.7;
}

.mono {
  font-family: 'Space Mono', monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ==============================
   BACKGROUND ORBS
============================== */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
.orb.one   { width: 420px; height: 420px; background: var(--accent);   top: 2%;  left: -5%; }
.orb.two   { width: 500px; height: 500px; background: var(--accent-2); right: -8%; bottom: 5%; animation-delay: -5s; }
.orb.three { width: 300px; height: 300px; background: var(--success);  left: 38%; top: 45%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%       { transform: translateY(-28px) translateX(18px); }
}

/* ==============================
   SECTION LABELS & TITLES
============================== */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
  margin-bottom: 12px;
  opacity: 0.85;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.25;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

section {
  margin-bottom: 100px;
}

/* ==============================
   HEADER / HERO
============================== */
header {
  text-align: center;
  margin-bottom: 100px;
  padding: 72px 40px;
  background: var(--panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(109,74,255,0.12), transparent 60%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0, 229, 200, 0.08);
  border: 1px solid rgba(0, 229, 200, 0.25);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
}

h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 22px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 36px;
}

/* ==============================
   BUTTONS
============================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Heebo', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
  letter-spacing: 0.02em;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.45);
}
.btn-premium {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}
.btn-premium:hover {
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.45);
}
.btn-full {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ==============================
   PROCESS GRID (2 columns)
============================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.process-step {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.process-step:hover {
  background: var(--card-hover);
  border-color: rgba(109, 74, 255, 0.3);
  transform: translateY(-6px);
}

.process-step:hover::after {
  opacity: 1;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

.process-step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==============================
   WHY SECTION
============================== */
.why-section {
  background: var(--panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 70px 50px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,229,200,0.06), transparent 55%);
  pointer-events: none;
}

.why-section .section-label,
.why-section .section-title,
.why-section .section-subtitle {
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 30px 26px;
  transition: background 0.3s, transform 0.3s;
}
.why-card:hover {
  background: rgba(0, 229, 200, 0.05);
  border-color: rgba(0, 229, 200, 0.2);
  transform: translateY(-4px);
}

.why-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.why-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ==============================
   FEATURES GRID
============================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -80%; left: -80%;
  width: 260%; height: 260%;
  background: radial-gradient(circle, rgba(109,74,255,0.06) 10%, transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(109, 74, 255, 0.3);
  box-shadow: 0 20px 50px rgba(109, 74, 255, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-img {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==============================
   PRICING
============================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.pricing-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  padding: 52px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}

.pricing-card.premium {
  border-color: rgba(0, 229, 200, 0.3);
  box-shadow: 0 0 50px rgba(0, 229, 200, 0.08);
}

.badge-recommended {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-2), #00b5a2);
  color: #000;
  padding: 5px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  opacity: 0.85;
}

.pricing-top h3 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text);
}

.pricing-top p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-card ul {
  list-style: none;
  text-align: right;
  flex: 1;
}

.pricing-card ul li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  padding-right: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-card ul li:last-child {
  border-bottom: none;
}

.pricing-card ul li::before {
  content: "✦";
  color: var(--accent-2);
  position: absolute;
  right: 0;
  font-size: 0.7rem;
  top: 14px;
}

/* ==============================
   FOOTER
============================== */
footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ==============================
   POPUP / OVERLAY
============================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup {
  background: linear-gradient(160deg, #0e1530, #0a1025);
  border: 1px solid rgba(109, 74, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  max-width: 480px;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(109, 74, 255, 0.1);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.88) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.popup-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
}

.popup-icon {
  text-align: center;
  margin-bottom: 20px;
}
.popup-icon img {
  width: 52px;
  height: 52px;
  opacity: 0.9;
}

.popup h2 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.popup > p {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Heebo', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(109, 74, 255, 0.06);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-section {
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  .section-title { font-size: 1.7rem; }
  header { padding: 50px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .popup { padding: 36px 26px; }
}
