:root {
  --bg: #0b0f19;
  --card: #111827;
  --card-hover: #162032;
  --border: #1f293d;
  --border-focus: #4f46e5;
  --text: #f9fafb;
  --text-muted: #94a3b8;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.25);
  --accent: #06b6d4;
  --success: #10b981;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.logo-text {
  color: var(--text);
}

.logo-text span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #2563eb);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 99px;
  color: #818cf8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Header */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 54px;
}

.section-tag {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Services Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, var(--card) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 38px;
}

.plan-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}

.plan-features li {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
  font-size: 14px;
}

/* Trust & Badges */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 48px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Contact Box */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  font-size: 20px;
  color: var(--accent);
}

/* Legal Pages */
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
}

.legal-card h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.legal-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: #818cf8;
}

.legal-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-card ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-card li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #080c14;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ========================================================
   AUTH MODAL TABS & INPUTS
   ======================================================== */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.auth-tab-btn.active {
  background: var(--card);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* ========================================================
   HIGH-TECH DIGITAL PRELOADER & ENTRANCE ANIMATIONS
   ======================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #070a12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

#preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(1.04) !important;
  pointer-events: none !important;
}

.preloader-grid {
  position: absolute;
  inset: -100px;
  background-image: 
    linear-gradient(rgba(79, 70, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(45deg);
  animation: gridMove 12s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes gridMove {
  0% { transform: perspective(600px) rotateX(45deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(45deg) translateY(40px); }
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-spinner {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
}

.tech-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.tech-ring-1 {
  border-top-color: #4f46e5;
  border-right-color: #06b6d4;
  animation: spinRing 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.tech-ring-2 {
  inset: 10px;
  border-bottom-color: #06b6d4;
  border-left-color: #818cf8;
  animation: spinRingReverse 0.9s linear infinite;
}

.tech-ring-core {
  position: absolute;
  inset: 22px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  animation: pulseCore 1.5s ease-in-out infinite alternate;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseCore {
  0% { transform: scale(0.92); box-shadow: 0 0 15px rgba(79, 70, 229, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(6, 182, 212, 0.8); }
}

.pre-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.pre-status {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #06b6d4;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.pre-bar-wrap {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.pre-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
  border-radius: 99px;
  box-shadow: 0 0 12px #06b6d4;
  transition: width 0.08s ease;
}

.pre-percent {
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* Subtle Animated Ambient Tech Background on Page */
body {
  background: radial-gradient(circle at 50% 0%, #151c33 0%, #0b0f19 50%, #070a12 100%);
  background-attachment: fixed;
}

/* Preloader Console Log */
.pre-console {
  margin-top: 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px;
  color: #38bdf8;
  height: 22px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Background Interactive Cyber Canvas */
#techCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* Live Cyber HUD Bar */
.cyber-hud {
  background: rgba(6, 10, 20, 0.9);
  border-bottom: 1px solid rgba(79, 70, 229, 0.25);
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 101;
}

.hud-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Hero Cyber Terminal Card */
.hero-terminal {
  max-width: 640px;
  margin: 40px auto 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(79, 70, 229, 0.15);
  overflow: hidden;
  text-align: left;
}

.terminal-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot-red { background: #ef4444; }
.term-dot-yellow { background: #f59e0b; }
.term-dot-green { background: #10b981; }

.terminal-title {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 18px 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #94a3b8;
}

.term-key { color: #818cf8; font-weight: bold; }
.term-str { color: #38bdf8; }
.term-num { color: #34d399; }
.term-comment { color: #64748b; font-style: italic; }

/* Glowing animated typewriter cursor */
.glow-text {
  background: linear-gradient(135deg, #818cf8, #22d3ee, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  min-width: 180px;
  text-align: left;
  border-right: 3px solid #22d3ee;
  animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: #22d3ee; }
}

/* Card hover glow & 3D lift */
.service-card, .pricing-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.service-card:hover, .pricing-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.2);
}

.service-card::after, .pricing-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.service-card:hover::after, .pricing-card:hover::after {
  left: 150%;
}
