/* ==========================================
   1. DESIGN SYSTEM TOKENS & GLOBALS
   ========================================== */
:root {
  --brand-navy: #0B2246;
  --brand-navy-light: #16335F;
  --brand-gold: #C68A00;
  --brand-gold-soft: #FFF8E7;
  --brand-gold-hover: #B07B00;
  --bg-main: #F8FAFC;
  --surface-card: #FFFFFF;
  --border-color: #E2E8F0;
  
  --font-xs: 13px;
  --font-sm: 15px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --font-hero: 44px;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 30px -5px rgba(11, 34, 70, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(11, 34, 70, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Dynamic Background Canvas */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #F8FAFC 0%, #E2E8F0 100%);
}

.bg-canvas::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(11, 34, 70, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.8;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 16s infinite ease-in-out alternate;
}

.blob-1 { width: 450px; height: 450px; background: var(--brand-navy); top: -100px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--brand-gold); top: 30%; right: -100px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #38BDF8; bottom: 5%; left: 10%; animation-delay: -10s; opacity: 0.25; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.06); }
  100% { transform: translate(-30px, 50px) scale(0.96); }
}

/* Shared Buttons */
.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .btn { padding: 10px 20px; font-size: var(--font-sm); }
}

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border: 1.5px solid var(--brand-navy);
}
.btn-outline:hover { background: var(--brand-navy); color: var(--text-white); }

.btn-gold {
  background: var(--brand-gold);
  color: var(--brand-navy);
}
.btn-gold:hover { background: var(--brand-gold-hover); }

.btn-navy {
  background: var(--brand-navy);
  color: var(--text-white);
}
.btn-navy:hover { background: var(--brand-navy-light); }


/* ==========================================
   2. NAVBAR & HEADER
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-navy);
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon i { color: var(--brand-gold); fill: var(--brand-gold); }

.logo-text .text-go { color: var(--brand-navy); }
.logo-text .text-scribe { color: var(--brand-gold); }
.logo-text .text-24 { color: var(--brand-navy); }

.nav-links {
  display: none;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: var(--font-sm);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-navy); }

.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 480px) {
  .navbar { padding: 16px 24px; }
  .logo-container { font-size: var(--font-xl); }
  .brand-icon { width: 42px; height: 42px; }
  .nav-auth-buttons { gap: 12px; }
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
}


/* ==========================================
   3. LANDING PAGE & HERO
   ========================================== */
.hero {
  padding: 30px 16px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse; /* Image displays first on mobile screens */
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    padding: 80px 24px 100px;
    gap: 50px;
  }
}

.hero-text-container { width: 100%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gold-soft);
  border: 1px solid var(--brand-gold);
  color: var(--brand-navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .hero-title { font-size: var(--font-hero); } }
.hero-title span { color: var(--brand-gold); }

.hero-subtitle {
  font-size: var(--font-base);
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.metric-item { display: flex; flex-direction: column; }
.metric-val { font-size: 20px; font-weight: 800; color: var(--brand-navy); }
.metric-lbl { font-size: var(--font-xs); color: var(--text-muted); font-weight: 600; }

/* Hero Visual & Overlays */
.hero-image-wrapper { width: 100%; position: relative; }

.hero-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid #FFFFFF;
}

.hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) { .hero-img { height: 460px; } }

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}
.floating-card-1 { top: 15px; left: 10px; animation: float 8s infinite ease-in-out alternate; }
.floating-card-2 { bottom: 75px; right: 10px; animation: float 10s infinite ease-in-out alternate-reverse; }

.floating-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-text-val { font-size: 13px; font-weight: 800; color: var(--brand-navy); }
.floating-text-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.telco-bar-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-soft);
  z-index: 9;
  border: 1px solid var(--border-color);
}
.net-pill {
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--brand-navy);
}

/* Services, Pricing, & Reviews */
.section-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-subtitle { color: var(--brand-gold); font-size: var(--font-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.section-title { font-size: var(--font-2xl); font-weight: 800; color: var(--brand-navy); }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--brand-gold); }

.service-icon {
  width: 52px; height: 52px; background: var(--brand-gold-soft); color: var(--brand-gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}

.pricing-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab-btn { background: var(--surface-card); border: 1px solid var(--border-color); padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: var(--font-sm); cursor: pointer; color: var(--text-muted); }
.tab-btn.active { background: var(--brand-navy); color: var(--text-white); border-color: var(--brand-navy); }

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card { background: var(--surface-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; text-align: center; position: relative; }
.price-card.popular { border-color: var(--brand-gold); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-gold); color: var(--brand-navy); font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 10px; text-transform: uppercase; }
.plan-size { font-size: var(--font-xl); font-weight: 800; color: var(--brand-navy); }
.plan-price { font-size: 28px; font-weight: 800; color: var(--brand-gold); margin: 12px 0; }
.plan-validity { font-size: var(--font-xs); color: var(--text-muted); margin-bottom: 20px; font-weight: 600; }

.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: var(--surface-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; }
.user-profile { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-gold); }
.user-info-name { font-size: 14px; font-weight: 800; color: var(--brand-navy); }
.user-info-role { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.star-rating { color: #F59E0B; display: flex; gap: 2px; margin-bottom: 10px; }

.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--surface-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-btn { width: 100%; padding: 16px 18px; text-align: left; background: none; border: none; font-size: var(--font-base); font-weight: 700; color: var(--brand-navy); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-content { padding: 0 18px 16px; font-size: var(--font-sm); color: var(--text-muted); display: none; }
.faq-item.active .faq-content { display: block; }

.cta-banner { background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%); border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; color: var(--text-white); margin-bottom: 60px; }

footer { background: var(--brand-navy); color: var(--text-white); padding: 50px 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { max-width: 1200px; margin: 0 auto 30px; display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: var(--font-sm); }
.footer-links a:hover { color: var(--brand-gold); }
.copyright-text { text-align: center; font-size: var(--font-xs); color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }


/* ==========================================
   4. AUTHENTICATION (SIGN IN & SIGN UP)
   ========================================== */
.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-hover);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title {
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--brand-navy);
}

.auth-subtitle {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: var(--font-xs);
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-size: var(--font-sm);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--brand-navy);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--brand-navy);
  font-weight: 700;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }


/* ==========================================
   5. USER DASHBOARD
   ========================================== */
.dash-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.wallet-card {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--text-white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.wallet-balance-lbl { font-size: var(--font-xs); opacity: 0.8; }
.wallet-balance-val { font-size: 32px; font-weight: 800; color: var(--brand-gold); }
.virtual-acc-box { font-size: 12px; background: rgba(255,255,255,0.1); padding: 8px 12px; border-radius: var(--radius-sm); }

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
@media (min-width: 600px) {
  .quick-actions-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 390px) {
  .brand-icon { display: none; }
}

.action-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 700;
  font-size: var(--font-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}
.action-card:hover { transform: translateY(-3px); border-color: var(--brand-gold); }
.action-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gold-soft); color: var(--brand-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }

.recent-tx-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: var(--font-sm);
}
.recent-tx-table th, .recent-tx-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
.recent-tx-table th { background: #F1F5F9; color: var(--brand-navy); font-weight: 700; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 800; }
.status-success { background: #DCFCE7; color: #166534; }
.status-pending { background: #FEF3C7; color: #92400E; }