/* ==========================================================================
   TIME CYCLE - Core Stylesheet
   Theme: High-end Financial Astrology & Gann Theory SaaS
   Palette: Cosmic Navy / Obsidian Black / Luminous Gold
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts & CSS Variables
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-deep: #020812;
  --bg-dark: #06111F;
  --bg-surface: #081525;
  --bg-card: rgba(8, 21, 37, 0.72);
  --bg-card-hover: rgba(14, 32, 56, 0.88);
  --bg-glass: rgba(6, 17, 31, 0.85);

  /* Gold Brand Accents */
  --gold-primary: #F5B82E;
  --gold-light: #FFCA4D;
  --gold-dark: #D99A1E;
  --gold-muted: #966C14;
  --gold-glow: rgba(245, 184, 46, 0.35);
  --gold-subtle: rgba(245, 184, 46, 0.12);
  --gold-border: rgba(245, 184, 46, 0.22);
  --gold-border-hover: rgba(245, 184, 46, 0.55);

  /* Typography Colors */
  --text-pure: #FFFFFF;
  --text-main: #F5F5F5;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-dark: #020812;

  /* Typography Hierarchy */
  --font-display: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Max Widths */
  --container-max: 1320px;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 184, 46, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 70%, rgba(15, 23, 42, 0.6) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Gold Text Highlight */
.gold-text {
  color: var(--gold-primary);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 8, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 184, 46, 0.12);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(2, 8, 18, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(245, 184, 46, 0.2);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.5rem;
}

/* Brand / Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(245, 184, 46, 0.15), transparent 70%);
  box-shadow: 0 0 14px rgba(245, 184, 46, 0.2);
  transition: var(--transition-normal);
}

.brand-link:hover .brand-icon-wrapper {
  transform: rotate(30deg) scale(1.05);
  box-shadow: 0 0 20px var(--gold-glow);
  border-color: var(--gold-light);
}

.brand-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--gold-primary);
  stroke: currentColor;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-pure);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  opacity: 0.9;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-pure);
}

.nav-link.active {
  color: var(--text-pure);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--gold-primary);
}

/* Header Auth Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-login {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
  background: rgba(8, 21, 37, 0.6);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.btn-login:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(245, 184, 46, 0.08);
  box-shadow: 0 0 12px rgba(245, 184, 46, 0.15);
}

.btn-signup {
  padding: 0.58rem 1.45rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--gold-light);
  box-shadow: 0 4px 14px rgba(245, 184, 46, 0.25);
  transition: var(--transition-normal);
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.4);
  background: linear-gradient(135deg, #FFE082 0%, var(--gold-light) 100%);
}

/* ==========================================================================
   User Profile Dropdown (Shared Header & Navigation)
   Matches TIME CYCLE Design System & About Us Reference
   ========================================================================== */
.user-dropdown-container {
  position: relative;
}

.user-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(8, 21, 37, 0.7);
  border: 1px solid rgba(245, 184, 46, 0.3);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.user-dropdown-btn:hover,
.user-dropdown-btn:focus-visible {
  border-color: var(--gold-primary);
  background: rgba(245, 184, 46, 0.12);
  box-shadow: 0 0 16px var(--gold-glow);
  outline: none;
}

.user-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245, 184, 46, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  background: rgba(245, 184, 46, 0.1);
  flex-shrink: 0;
}

.user-icon-circle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.user-name-text {
  font-weight: 500;
  color: #FFFFFF;
  font-size: 0.92rem;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-caret {
  font-size: 0.65rem;
  color: var(--gold-primary);
  transition: transform 0.2s ease;
  line-height: 1;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(6, 17, 31, 0.96);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 184, 46, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  box-sizing: border-box;
}

.user-dropdown-container.open .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-container.open .dropdown-caret {
  transform: rotate(180deg);
}

.user-dropdown-header {
  padding: 0.6rem 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(245, 184, 46, 0.15);
  margin-bottom: 0.4rem;
}

.user-dropdown-name {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-role {
  font-size: 0.72rem;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.user-dropdown-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.user-dropdown-item:hover {
  background: rgba(245, 184, 46, 0.1);
  color: var(--gold-primary);
}

.user-dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

/* Fallback for legacy pill classes */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--text-pure);
  font-size: 0.88rem;
  font-weight: 500;
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  background: rgba(8, 21, 37, 0.8);
  color: var(--gold-primary);
  gap: 5px;
  z-index: 1001;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
  pointer-events: none;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background: rgba(2, 8, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-border);
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-120%);
  transition: transform var(--transition-smooth);
  z-index: 999;
  visibility: hidden;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-auth-actions .btn-login,
.mobile-auth-actions .btn-signup {
  text-align: center;
  padding: 0.8rem;
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 60px;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

/* Hero Content Column (Left) */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 640px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-pure);
}

.hero-heading-line1 {
  display: block;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.hero-heading-line2 {
  display: block;
  font-weight: 700;
}

.hero-description {
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: #CBD5E1;
  font-weight: 400;
}

/* Hero Action CTA Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--gold-light);
  box-shadow: 0 6px 24px rgba(245, 184, 46, 0.35);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(245, 184, 46, 0.5);
  background: linear-gradient(135deg, #FFE082 0%, var(--gold-light) 100%);
}

.btn-primary .btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-md);
  background: rgba(8, 21, 37, 0.5);
  color: var(--text-pure);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--gold-primary);
  backdrop-filter: blur(8px);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(245, 184, 46, 0.12);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.2);
}

/* Hero Trust Indicators */
.hero-trust-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 184, 46, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(245, 184, 46, 0.08);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box svg {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

.trust-text {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: #E2E8F0;
  letter-spacing: 0.01em;
}

/* Hero Visual Column (Right) */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Visual Glow */
.hero-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.15) 0%, rgba(30, 58, 138, 0.2) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.hero-image-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 
    0 0 50px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(245, 184, 46, 0.2),
    inset 0 0 25px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(245, 184, 46, 0.35);
  background: var(--bg-deep);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-visual-container:hover .hero-image-frame img {
  transform: scale(1.03);
}

/* Decorative Cosmic Ring Accents */
.hero-orbital-accent {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(245, 184, 46, 0.25);
  pointer-events: none;
  z-index: 1;
}

.hero-orbital-accent.outer {
  width: 112%;
  height: 112%;
  animation: rotateClockwise 90s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   5. Features Section & Cards
   -------------------------------------------------------------------------- */
.features-section {
  position: relative;
  padding: 40px 0 80px;
  z-index: 5;
}

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

/* Premium Feature Card */
.feature-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-normal);
  text-decoration: none;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--gold-border-hover);
  box-shadow: 
    0 14px 35px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(245, 184, 46, 0.18);
}

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

/* Feature Icon Wrapper */
.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245, 184, 46, 0.18), rgba(6, 17, 31, 0.8) 70%);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  box-shadow: 0 0 16px rgba(245, 184, 46, 0.22);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--gold-glow);
  border-color: var(--gold-light);
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
  color: var(--gold-primary);
  stroke: currentColor;
}

/* Feature Content */
.feature-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94A3B8;
  margin-bottom: 1.35rem;
  flex-grow: 1;
}

.feature-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
  margin-top: auto;
}

.feature-link .arrow {
  transition: transform var(--transition-fast);
}

.feature-card:hover .feature-link {
  color: #FFE082;
}

.feature-card:hover .feature-link .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Clean Minimal Footer & Multi-Column Platform Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(245, 184, 46, 0.18);
  background: radial-gradient(circle at 50% 0%, rgba(245, 184, 46, 0.04) 0%, transparent 60%), #020812;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col.brand-col {
  padding-right: 1.5rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1.25rem 0 1.5rem;
}

.footer-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 184, 46, 0.08);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: 9999px;
  font-size: 0.86rem;
  color: var(--gold-light);
  width: fit-content;
}

.footer-contact-pill svg {
  color: var(--gold-primary);
}

.footer-contact-pill a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-contact-pill a:hover {
  color: #FFFFFF;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-nav-list li a:hover {
  color: var(--gold-primary);
  transform: translateX(4px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 184, 46, 0.25) 50%, transparent 100%);
  margin: 2.25rem 0 1.5rem;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-subtle);
}

.footer-copy-text {
  color: #94A3B8;
}

.footer-disclaimer-snippet {
  max-width: 580px;
  font-size: 0.76rem;
  color: #64748B;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 991px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col.brand-col {
    grid-column: span 2;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col.brand-col {
    grid-column: span 1;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
  .footer-disclaimer-snippet {
    text-align: center;
  }
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.84rem;
  color: var(--text-subtle);
}

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

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   7. Modals (Login Required & Premium Feature)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #081525;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.2rem 2.2rem;
  text-align: center;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(245, 184, 46, 0.2);
  transform: scale(0.92) translateY(15px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(245, 184, 46, 0.15);
  color: var(--gold-primary);
  border-color: var(--gold-border);
}

.modal-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 184, 46, 0.2), rgba(6, 17, 31, 0.8));
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.modal-icon-badge svg {
  width: 32px;
  height: 32px;
  color: var(--gold-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 1.85rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.modal-actions .btn-login,
.modal-actions .btn-signup,
.modal-actions .btn-primary {
  flex: 1;
  padding: 0.8rem 1rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Responsive Media Queries
   -------------------------------------------------------------------------- */
/* Large Tablet & Small Desktop (1025px - 1280px) */
@media (max-width: 1280px) {
  .desktop-nav {
    gap: 0.95rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
  .nav-wrapper {
    gap: 1rem;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet & Mobile Nav Breakpoint (<= 1120px) */
@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }
  .header-actions .btn-login,
  .header-actions .btn-signup {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-trust-indicators {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  .nav-wrapper {
    height: 74px;
    gap: 0.75rem;
  }
  .mobile-nav-drawer {
    top: 74px;
    max-height: calc(100vh - 74px);
  }
  .user-name-text {
    display: none;
  }
  .user-dropdown-btn {
    padding: 0.35rem 0.55rem;
    gap: 0.35rem;
  }
  .hero-section {
    padding-top: 100px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  .hero-heading {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
  }
  .hero-trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    width: 100%;
    gap: 1rem;
  }
  .hero-visual-wrapper {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    overflow: hidden;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .feature-card {
    padding: 1.6rem 1.25rem;
  }
  .modal-container {
    width: 90%;
    max-width: 400px;
    padding: 2rem 1.25rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn-login,
  .modal-actions .btn-signup {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }
  .brand-tagline {
    font-size: 0.65rem;
  }
  .brand-icon-wrapper {
    width: 38px;
    height: 38px;
  }
  .brand-icon-svg {
    width: 18px;
    height: 18px;
  }
  .hero-heading {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .hero-trust-indicators {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .trust-item {
    gap: 0.6rem;
  }
  .feature-card {
    padding: 1.4rem 1rem;
  }
  .feature-title {
    font-size: 1.1rem;
  }
  .modal-container {
    padding: 1.75rem 1rem;
    width: 92%;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .brand-title {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }
  .brand-tagline {
    display: none;
  }
  .hero-heading {
    font-size: 1.6rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }
  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }
}

/* --------------------------------------------------------------------------
   8. Legal & Policy Pages Design System
   -------------------------------------------------------------------------- */
.policy-page-wrapper {
  padding-top: 88px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(245, 184, 46, 0.08) 0%, transparent 55%),
              radial-gradient(circle at 10% 25%, rgba(56, 189, 248, 0.03) 0%, transparent 40%),
              radial-gradient(circle at 90% 65%, rgba(245, 184, 46, 0.04) 0%, transparent 50%),
              #020812;
}

.policy-hero-section {
  padding: 3.5rem 1rem 2rem;
  text-align: center;
  position: relative;
}

.policy-hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid rgba(245, 184, 46, 0.3);
  border-radius: 9999px;
  color: var(--gold-primary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.policy-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.policy-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.86rem;
  color: #CBD5E1;
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 21, 37, 0.7);
  border: 1px solid rgba(245, 184, 46, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.policy-meta-item strong {
  color: var(--gold-primary);
}

.policy-nav-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.policy-nav-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(8, 21, 37, 0.85);
  border: 1px solid rgba(245, 184, 46, 0.2);
  color: #CBD5E1;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.policy-nav-pill:hover,
.policy-nav-pill.active {
  background: rgba(245, 184, 46, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.policy-content-container {
  max-width: 960px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}

.policy-card {
  background: rgba(8, 21, 37, 0.75);
  border: 1px solid rgba(245, 184, 46, 0.2);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.policy-card:hover {
  border-color: rgba(245, 184, 46, 0.45);
}

.policy-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(245, 184, 46, 0.15);
}

.policy-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.policy-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

.policy-card-body {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.8;
}

.policy-card-body p {
  margin-bottom: 1.2rem;
}

.policy-card-body p:last-child {
  margin-bottom: 0;
}

.policy-card-body ul,
.policy-card-body ol {
  margin: 1rem 0 1.4rem;
  padding-left: 1.75rem;
}

.policy-card-body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.policy-card-body li strong {
  color: #FFFFFF;
}

/* Callout & Rule Highlights */
.policy-rule-highlight {
  background: rgba(245, 184, 46, 0.08);
  border: 1px solid rgba(245, 184, 46, 0.3);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #F8FAFC;
}

.policy-rule-highlight strong {
  color: var(--gold-light);
}

.policy-warning-box {
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-left: 4px solid #FB7185;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #FFE4E6;
}

.policy-warning-box strong {
  color: #FDA4AF;
}

.policy-contact-box {
  background: linear-gradient(135deg, rgba(8, 21, 37, 0.95) 0%, rgba(14, 32, 56, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px var(--gold-glow);
  margin-top: 3rem;
}

.policy-contact-box h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.policy-contact-box p {
  color: #CBD5E1;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
}

.policy-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #F5B82E 0%, #D49B1F 100%);
  color: #020812;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.policy-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
  color: #020812;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 1.5rem 1.25rem;
  }
  .policy-card-title {
    font-size: 1.25rem;
  }
}

