/* ==========================================================================
   RÍOSTIERA BANK - PREMIUM FINTECH DESIGN SYSTEM
   Dominant Brand Color: Deep Teal (#123c3c)
   Soft Luxury Accent: Soft Lime (#d8e28c)
   SaaS Aesthetic: Apple / Stripe / Ramp / Brex / Linear / Notion inspired
   ========================================================================== */

/* --- Fonts & Core System --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Colors (Refined Luxury Light Theme) */
  --bg-darkest: #ffffff;          /* Pure white main canvas */
  --bg-dark: #f8fafc;             /* Crisp off-white section background */
  --bg-card: rgba(18, 60, 60, 0.03); /* Translucent light-teal glass card base */
  --bg-card-hover: rgba(18, 60, 60, 0.06); /* Lifted hover glass */
  
  --color-primary: #123c3c;       /* Deep premium teal */
  --color-primary-light: #1b5353;
  --color-accent: #d8e28c;        /* Soft Luxury Accent */
  --color-accent-rgb: 216, 226, 140;
  --color-accent-glow: rgba(216, 226, 140, 0.08);
  
  --text-primary: #0a1111;        /* Deep luxury teal-black for maximum contrast */
  --text-secondary: #4a5c5c;      /* Muted teal-gray body copy */
  --text-dark: #ffffff;           /* White text for contrast labels inside dark fields */
  
  --border-muted: rgba(18, 60, 60, 0.06); /* 1px crisp layout lines */
  --border-active: rgba(18, 60, 60, 0.16);
  --border-white: rgba(0, 0, 0, 0.04);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 20px 50px -12px rgba(18, 60, 60, 0.08), 0 0 0 1px rgba(18, 60, 60, 0.02);
  --shadow-glow: 0 0 30px rgba(139, 154, 44, 0.1);
}

/* --- Base Resets & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Typography & Flow */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.text-center { text-align: center; }

/* Grid Primitives */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  align-items: center;
}

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

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

/* --- Premium Aesthetics --- */

/* Glass Panel Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-muted);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(216,226,140,0.03) 0%, transparent 60%);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 30px 60px -15px rgba(4, 8, 8, 0.85), 0 0 30px rgba(216, 226, 140, 0.08);
}

.glass-panel:hover::after {
  opacity: 1.8;
  background: linear-gradient(135deg, rgba(216,226,140,0.06) 0%, transparent 60%);
}

/* Text Gradient (Replacing generic gold text) */
.gold-text {
  background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.accent-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Orbs Background */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -150px;
  left: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: var(--color-accent);
  bottom: 5%;
  right: -100px;
  animation-delay: -5s;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(18, 60, 60, 0.15);
  background: var(--color-primary-light);
}

.btn-outline {
  background: rgba(18, 60, 60, 0.2);
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Navbar / Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-white);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-muted);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Vector Typographic Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-symbol {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(216, 226, 140, 0.2);
}

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

.nav-links {
  display: flex;
  gap: 2.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-fast);
}

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

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.login-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.login-link:hover {
  color: var(--text-primary);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  border-radius: 50%;
  transition: var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:active {
  background: rgba(18, 60, 60, 0.05);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
}

.hamburger-lines .line {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 10px;
  background: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transform-origin: center;
}

/* Hamburger Transformations */
.mobile-menu-btn.active .line1 {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active .line2 {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active .line3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Better mobile viewport handling */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 990; /* Keep it behind header so header can remain transparent and hamburger is visible */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; /* Prevent overflow issues on very small screens */
  padding: 80px 20px 40px; /* Space for header at top */
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header state when menu is open */
.header.menu-open {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-bottom: 3.5rem;
}

.mobile-nav-links a {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
}

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

.mobile-actions {
  width: 80%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

/* --- Hero Section --- */
.hero {
  padding: 13rem 0 8rem;
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: 5.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* 3D Card Visual Stack */
.hero-visual {
  position: relative;
  height: 520px;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-3d {
  width: 420px;
  height: 260px;
  background: linear-gradient(135deg, #123c3c 0%, #060b0b 100%);
  border-radius: 24px;
  border: 1px solid rgba(216, 226, 140, 0.2);
  box-shadow: 0 35px 70px rgba(4, 8, 8, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(-18deg) rotateX(15deg);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-bg-2 {
  background: linear-gradient(135deg, rgba(216, 226, 140, 0.2) 0%, rgba(18, 60, 60, 0.6) 100%);
  transform: translate(-42%, -42%) rotateY(-24deg) rotateX(20deg) translateZ(-60px);
  opacity: 0.65;
  filter: blur(0.5px);
  border-color: rgba(216, 226, 140, 0.1);
}

.hero-visual:hover .card-3d {
  transform: translate(-50%, -50%) rotateY(-5deg) rotateX(5deg) scale(1.04);
}

.hero-visual:hover .card-bg-2 {
  transform: translate(-42%, -42%) rotateY(-8deg) rotateX(8deg) translateZ(-40px) scale(1.02);
}

.card-chip {
  width: 52px;
  height: 38px;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  right: -10px;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 0 rgba(0,0,0,0.25), 0 16px 0 rgba(0,0,0,0.25);
}

.card-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-number {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card-name {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Floating UI Badges */
.floating-ui {
  position: absolute;
  background: rgba(10, 17, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-muted);
  padding: 1.25rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-premium);
  z-index: 10;
  animation: floatUI 6s ease-in-out infinite alternate;
}

.ui-1 {
  top: 12%;
  left: -5%;
}

.ui-2 {
  bottom: 12%;
  right: -5%;
  animation-delay: -3s;
}

.floating-ui i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(216, 226, 140, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ui-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ui-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- Features Section --- */
.features {
  padding: 9rem 0;
  background: #0a1111;
  position: relative;
}

.features .section-header h2 {
  color: #ffffff;
}

.features .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

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

.feature-card {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 58px;
  height: 58px;
  background: rgba(216, 226, 140, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  border: 1px solid rgba(216, 226, 140, 0.15);
}

.feature-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-card-wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.feature-card-wide .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

/* --- High-Fidelity Dashboard Preview --- */
.dashboard-preview {
  padding: 9rem 0;
  position: relative;
}

.dashboard-mockup {
  margin-top: 4.5rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  box-shadow: 0 25px 60px rgba(18, 60, 60, 0.08);
  background: #ffffff;
  display: flex;
  height: 620px;
  position: relative;
}

.dash-sidebar {
  width: 250px;
  background: #f8fafc;
  border-right: 1px solid var(--border-muted);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dash-nav-item {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.dash-nav-item.active {
  background: rgba(18, 60, 60, 0.04);
  color: var(--color-primary);
  border-left: 2px solid var(--color-primary);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.dash-main {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  overflow-y: auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-title h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dash-title p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dash-widgets {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
}

.dash-card {
  background: #ffffff;
  border: 1px solid rgba(18, 60, 60, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition-fast);
}

.dash-card:hover {
  border-color: var(--border-active);
  background: #fdfefe;
}

.balance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 210px;
}

.balance-amount {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.balance-growth {
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border-white);
}

.transaction-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.transaction-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* --- Security & Compliance Section --- */
.security {
  padding: 9rem 0;
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-white);
  border-bottom: 1px solid var(--border-white);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.fiduciary-img-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 689 / 1024;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.fiduciary-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fiduciary-img-wrapper:hover img {
  transform: scale(1.05);
}

.security-content h2 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 3rem;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.security-list li i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.trust-badges {
  display: flex;
  gap: 2rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.badge i {
  color: var(--color-accent);
  font-size: 1.3rem;
}

/* --- Membership Pricing Tiers --- */
.pricing {
  padding: 9rem 0;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.popular {
  border-color: var(--border-active);
  box-shadow: 0 30px 60px -15px rgba(4, 8, 8, 0.9), 0 0 40px rgba(216, 226, 140, 0.08);
}

.popular-badge {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: var(--color-accent);
  color: var(--text-dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.tier-price span {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0;
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  min-height: 48px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 3.5rem;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.tier-features li i {
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* --- Mobile Showcase --- */
.mobile-showcase {
  padding: 9rem 0;
  position: relative;
  overflow: hidden;
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.app-store-buttons {
  display: flex;
  gap: 1.25rem;
  margin-top: 3rem;
}

.store-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 0.95rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

.store-btn:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.store-btn i {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.store-btn div {
  display: flex;
  flex-direction: column;
}

.store-btn span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.store-btn strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Phone SVG Canvas */
.phone-mockup {
  width: 320px;
  height: 640px;
  background: #ffffff;
  border-radius: 48px;
  border: 8px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(18, 60, 60, 0.08);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-chart {
  width: 100%;
  height: 100px;
  margin: 1rem 0;
  position: relative;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.phone-btn {
  background: rgba(18, 60, 60, 0.03);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 0.65rem 0.25rem;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.phone-transactions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phone-tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(18, 60, 60, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.tx-details {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  margin-left: 0.75rem;
}

.tx-details small {
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.floating-badge {
  position: absolute;
  background: rgba(6, 11, 11, 0.85);
  border: 1px solid var(--border-muted);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: floatUI 8s ease-in-out infinite alternate;
}

.badge-1 {
  top: 15%;
  left: 20%;
}

.badge-2 {
  bottom: 20%;
  right: 15%;
  animation-delay: -4s;
}

.floating-badge i {
  color: var(--color-accent);
}

/* --- Testimonials --- */
.testimonials {
  padding: 9rem 0;
  background: var(--bg-darkest);
}

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

.testi-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 0.25rem;
}

.testi-text {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- High-Converting CTA Box --- */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-darkest);
}

.cta-box {
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 36px;
  padding: 6rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(18, 60, 60, 0.15);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.cta-box p {
  font-size: 1.25rem;
  color: #a4bebe;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.cta-box .btn-primary {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-box .btn-primary:hover {
  background: #e2e8f0;
  box-shadow: 0 10px 25px rgba(255,255,255,0.25);
}

/* --- Professional Footer --- */
.footer {
  border-top: 1px solid var(--border-muted);
  padding: 6.5rem 0 3rem;
  background: #f4f7f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 1.25rem;
}

.footer-socials a {
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-muted);
}

.footer-socials a:hover {
  color: var(--color-accent);
  background: rgba(216, 226, 140, 0.08);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Newsletter Subscription */
.newsletter-form {
  margin-top: 1.5rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-white);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  margin-bottom: 0.75rem;
  outline: none;
  font-family: var(--font-main);
  transition: var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--border-active);
  background: rgba(18, 60, 60, 0.1);
}

.newsletter-form button {
  width: 100%;
  padding: 0.95rem;
  border-radius: 12px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-white);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}

.footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-bottom span i {
  color: var(--color-accent);
}

/* --- Extra Forms & Custom Dashboard Styles (About/Wealth/Cards) --- */

/* Stats Grid on About */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 3.5rem 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Team Grid on About */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 1rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--bg-card);
  border-radius: 28px;
  margin-bottom: 1.75rem;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-muted);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.team-member:hover .team-avatar {
  border-color: var(--border-active);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(4, 8, 8, 0.8), 0 0 25px rgba(216, 226, 140, 0.1);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.team-role {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Timeline/Story on About */
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Static Corporate Logos */
.logo-cloud {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.logo-cloud:hover {
  opacity: 0.7;
}

.logo-cloud i {
  font-size: 3.5rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.logo-cloud i:hover {
  color: var(--color-accent);
}

/* Wealth Allocation Card Details */
.wealth-alloc-grid {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.alloc-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-white);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  transition: var(--transition-fast);
}

.alloc-card:hover {
  background: rgba(18, 60, 60, 0.08);
  border-color: var(--border-active);
}

.alloc-bar-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.alloc-bar {
  height: 100%;
  border-radius: 4px;
}

/* --- Animations & Keyframes --- */
@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

@keyframes floatUI {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

@keyframes pulseShield {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(216, 226, 140, 0.3));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(216, 226, 140, 0.6));
  }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1200px) {
  h1, .hero-content h1 { font-size: 4.2rem; }
  .section-header h2 { font-size: 2.8rem; }
  .grid-2 { gap: 2rem; }
  .footer-grid { gap: 3rem; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-actions { display: none; } /* Prevent action buttons from overlapping on mobile */
  .mobile-menu-btn { display: flex; }
  
  .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content p { margin-left: auto; margin-right: auto; }
  
  .hero-visual {
    height: 440px;
    margin-top: 3rem;
  }
  
  .card-3d {
    width: 360px;
    height: 220px;
    padding: 1.75rem;
  }
  
  .card-number { font-size: 1.2rem; }
  
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 3rem;
  }
  
  .mobile-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .mobile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .app-store-buttons { justify-content: center; }
  
  .testi-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  h1, .hero-content h1 { font-size: 3.2rem; }
  .section-header h2 { font-size: 2.2rem; }
  .cta-box h2 { font-size: 2.5rem; }
  
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; flex-direction: column; text-align: center; gap: 1.5rem; }
  
  .dashboard-mockup {
    flex-direction: column;
    height: auto;
  }
  
  .dash-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-white);
    padding: 1.5rem;
  }
  
  .dash-main { padding: 1.5rem; }
  .dash-widgets { grid-template-columns: 1fr; }
  
  .security-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .security-list { align-items: center; }
  .trust-badges { justify-content: center; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* --- New Features Grid (Image 2 Redesign) --- */
.new-features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.top-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.small-feature-card {
    background: var(--bg-darkest);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-white);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: var(--text-primary);
}

.small-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.small-feature-card i {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.small-feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    margin: 0;
}

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

.image-feature-card {
    background: var(--bg-darkest);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-white);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.image-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-feature-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #005A9C; /* A corporate blue for links */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Responsive Rules for New Grid */
@media (max-width: 1024px) {
    .top-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .bottom-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-cards-row {
        grid-template-columns: 1fr;
    }
    .bottom-cards-row {
        grid-template-columns: 1fr;
    }
    .card-img-wrapper {
        height: 180px;
    }
}


/* --- City Skyline Hero Background --- */
.hero-bg-city {
    background-image: linear-gradient(rgba(10, 17, 17, 0.2) 0%, rgba(10, 17, 17, 0.4) 100%), url('assets/images/city-skyline.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure the background covers the padding area as well */
    background-clip: padding-box;
}

.hero-bg-city h1 {
    color: #ffffff;
}

.hero-bg-city p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-bg-city .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.hero-bg-city .btn-outline:hover {
    background: #ffffff;
    color: var(--text-primary);
}

/* On dark theme, this would be different, but we are fully light theme now */
