/* ==========================================================================
   Mustaqil (مُسْتَقِلّ) — Official Landing Page Stylesheet
   Pure Vanilla CSS • 100% Arabic RTL First • Responsive & Accessible
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Brand Emerald Palette (from src/theme/colors.ts) */
  --primary: #1B4D3E;
  --primary-dark: #13392E;
  --primary-light: #2D6A4F;
  --primary-muted: #EBF4F0;
  --primary-rgb: 27, 77, 62;

  /* Accent & Mint Highlights */
  --accent: #2D6A4F;
  --accent-mint: #40916C;
  --accent-soft: #D8F3DC;
  --gold: #D97706;
  --gold-soft: #FEF3C7;

  /* Canvas / Surface */
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-subtle: #F1F4F2;
  --surface-highlight: #E8F1EC;
  --surface-card: #FFFFFF;

  /* Financial Semantics */
  --income: #10B981;
  --income-bg: #ECFDF5;
  --income-border: #A7F3D0;

  --expense: #EF4444;
  --expense-bg: #FEF2F2;
  --expense-border: #FECACA;

  --savings: #3B82F6;
  --savings-bg: #EFF6FF;
  --savings-border: #BFDBFE;

  --pending: #F59E0B;
  --pending-bg: #FEF3C7;
  --pending-border: #FDE68A;

  /* Neutrals & Typography */
  --text-primary: #111817;
  --text-secondary: #4A5752;
  --text-muted: #7D8C86;
  --text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --border: #E3E7E5;
  --border-strong: #CBD3CF;
  --border-subtle: #EDF1EF;

  /* Shadows (from src/theme/spacing.ts) */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 41, 30, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 12px 36px -4px rgba(27, 77, 62, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  --shadow-phone: 0 25px 60px -15px rgba(19, 57, 46, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-xxl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 76px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Tokens (from src/theme/colors.ts darkColors) --- */
[data-theme="dark"] {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --primary-light: #40916C;
  --primary-muted: #1E352B;
  --primary-rgb: 45, 106, 79;

  --accent: #52B788;
  --accent-mint: #74C69D;
  --accent-soft: #1F3C2F;
  --gold: #F59E0B;
  --gold-soft: #78350F;

  --background: #101513;
  --surface: #18201C;
  --surface-elevated: #202A25;
  --surface-subtle: #141A17;
  --surface-highlight: #26342E;
  --surface-card: #18201C;

  --income: #34D399;
  --income-bg: rgba(6, 78, 59, 0.35);
  --income-border: #047857;

  --expense: #F87171;
  --expense-bg: rgba(127, 29, 29, 0.35);
  --expense-border: #991B1B;

  --savings: #60A5FA;
  --savings-bg: rgba(30, 58, 138, 0.35);
  --savings-border: #1E40AF;

  --text-primary: #F2F5F4;
  --text-secondary: #B4C2BC;
  --text-muted: #81958D;
  --text-inverse: #101513;

  --border: #23302A;
  --border-strong: #2F3F38;
  --border-subtle: #1A2420;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 36px -4px rgba(0, 0, 0, 0.65);
  --shadow-phone: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

html {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--text-primary);
}

body {
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--text-primary);
  transition: background-color var(--transition), color var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* --- Utility Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --- LTR Text Utility (for strict left-to-right display e.g. phone numbers, codes) --- */
.ltr-text {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: inherit;
  letter-spacing: 0.5px;
}

/* --- Section Title & Badge --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

[data-theme="dark"] .section-badge {
  color: var(--accent-mint);
  border-color: rgba(64, 145, 108, 0.3);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 77, 62, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 77, 62, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--surface-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-icon:hover {
  background-color: var(--surface-subtle);
  color: var(--primary);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(248, 249, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

[data-theme="dark"] .site-header {
  background-color: rgba(16, 21, 19, 0.88);
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
  border-bottom-color: var(--border-strong);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .brand-name {
  color: var(--accent-mint);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding-block: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

[data-theme="dark"] .nav-link::after {
  background-color: var(--accent);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 56px;
  padding-bottom: 84px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: 15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.15) 0%, rgba(27, 77, 62, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-pill {
  color: var(--accent-mint);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--income);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

[data-theme="dark"] .hero-title .highlight {
  color: var(--accent);
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 0;
  width: 100%;
  height: 10px;
  background-color: var(--accent-soft);
  z-index: -1;
  border-radius: var(--radius-xs);
  opacity: 0.65;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

[data-theme="dark"] .trust-icon {
  color: var(--accent);
}

/* ==========================================================================
   Realistic Phone Mockup (Mustaqil Real UI Frame)
   ========================================================================== */
.hero-mockup-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 540px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.22) 0%, rgba(27, 77, 62, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(28px);
}

.phone-chassis {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 640px;
  background: #1E2522;
  border-radius: 46px;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  border: 4px solid #33423B;
  user-select: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: var(--radius-full);
  z-index: 100;
}

/* Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 4px 18px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 90;
}

.status-time {
  letter-spacing: -0.01em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* App Header in Phone */
.app-mockup-header {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-brand-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo-mini {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.app-name-mini {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .app-name-mini {
  color: var(--accent-mint);
}

.app-quick-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Scrollable Mockup Body */
.app-mockup-body {
  flex: 1;
  padding: 10px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.app-mockup-body::-webkit-scrollbar {
  display: none;
}

/* Hero Balance Card */
.mockup-balance-card {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px -3px rgba(19, 57, 46, 0.4);
}

.mockup-balance-label {
  font-size: 0.68rem;
  opacity: 0.85;
  margin-bottom: 2px;
}

.mockup-balance-amount {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.mockup-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.mockup-stat-box {
  display: flex;
  flex-direction: column;
}

.mockup-stat-title {
  font-size: 0.6rem;
  opacity: 0.85;
}

.mockup-stat-num {
  font-size: 0.85rem;
  font-weight: 700;
}

.mockup-stat-num.income { color: #6EE7B7; }
.mockup-stat-num.expense { color: #FCA5A5; }

/* Quick Action Chips */
.mockup-actions-row {
  display: flex;
  gap: 6px;
  overflow-x: hidden;
}

.mockup-action-pill {
  flex: 1;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.mockup-action-icon {
  font-size: 0.9rem;
}

.mockup-action-text {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Recent Transaction items */
.mockup-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.mockup-list-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mockup-list-more {
  font-size: 0.62rem;
  color: var(--primary);
  font-weight: 700;
}

.mockup-tx-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.tx-icon-wrap.income {
  background-color: var(--income-bg);
  color: var(--income);
}

.tx-icon-wrap.expense {
  background-color: var(--expense-bg);
  color: var(--expense);
}

.tx-meta {
  display: flex;
  flex-direction: column;
}

.tx-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tx-cat {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.tx-amount {
  font-size: 0.75rem;
  font-weight: 800;
  direction: ltr;
}

.tx-amount.income { color: var(--income); }
.tx-amount.expense { color: var(--expense); }

/* Mockup Tab Bar */
.mockup-tab-bar {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px 14px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mockup-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
}

.mockup-tab-item.active {
  color: var(--primary);
}

[data-theme="dark"] .mockup-tab-item.active {
  color: var(--accent);
}

.tab-icon {
  font-size: 0.95rem;
}

.tab-label {
  font-size: 0.55rem;
  font-weight: 700;
}

/* Floating Badges outside phone */
.floating-badge {
  position: absolute;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 20;
  animation: float-badge 3.5s ease-in-out infinite alternate;
}

.floating-badge.badge-top {
  top: 40px;
  right: -24px;
}

.floating-badge.badge-bottom {
  bottom: 60px;
  left: -28px;
  animation-delay: -1.8s;
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding-block: 84px;
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.about-banner-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xxl);
  padding: 44px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-banner-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.4) 0%, rgba(27, 77, 62, 0) 70%);
  pointer-events: none;
}

.about-quote {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-quote-author {
  font-size: 0.95rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.point-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.point-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.point-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

[data-theme="dark"] .point-icon-box {
  color: var(--accent-mint);
}

.point-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.point-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding-block: 96px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

[data-theme="dark"] .feature-icon-wrap {
  color: var(--accent);
}

.feature-card:hover .feature-icon-wrap {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.feature-pill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background-color: var(--surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-top: auto;
}

/* ==========================================================================
   Interactive Showcase Section
   ========================================================================== */
.showcase-section {
  padding-block: 84px;
  background-color: var(--surface-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.showcase-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
}

.showcase-tab-btn:hover,
.showcase-tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2);
}

.showcase-display-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.showcase-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.showcase-info p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--income);
}

.showcase-preview-box {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   Developer Section
   ========================================================================== */
.developer-section {
  padding-block: 96px;
}

.developer-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  padding: 48px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 52px;
  position: relative;
  overflow: hidden;
}

.developer-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent-mint));
}

.developer-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.developer-avatar-box {
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-mint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(27, 77, 62, 0.28);
  border: 4px solid var(--surface);
  margin-bottom: 16px;
  position: relative;
  padding: 3px;
}

.developer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.dev-status-badge {
  position: absolute;
  bottom: 6px;
  left: 10px;
  background-color: var(--income);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--surface);
}

.dev-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dev-title-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.developer-details {
  display: flex;
  flex-direction: column;
}

.dev-heading {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.dev-bio {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.dev-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.contact-pill-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.contact-pill-link:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.contact-pill-link .contact-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Download Section
   ========================================================================== */
.download-section {
  padding-block: 84px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xxl);
  margin-bottom: 84px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.download-section::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.3) 0%, rgba(27, 77, 62, 0) 70%);
  pointer-events: none;
}

.download-inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.download-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.25;
}

.download-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 38px;
}

.store-buttons-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: #FFFFFF;
  color: #111817;
  padding: 12px 26px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-align: right;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.store-btn-primary {
  border: 2px solid #3DDC84;
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.25);
}

.store-btn-soon {
  opacity: 0.78;
  cursor: default !important;
  background-color: rgba(255, 255, 255, 0.94);
}

.store-btn-soon:hover {
  transform: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15) !important;
}

.store-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
}

.store-text-wrap {
  display: flex;
  flex-direction: column;
}

.store-subtitle {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.store-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.download-notes-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

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

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

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

[data-theme="dark"] .footer-links-list a:hover {
  color: var(--accent);
}

.footer-privacy-box {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background-color: var(--surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--surface-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
}

.drawer-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Back To Top Floating Button
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-row {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .showcase-display-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .developer-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 32px 24px;
  }

  .developer-avatar-wrap {
    margin-inline: auto;
  }

  .dev-contact-grid {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .header-actions .btn-download-header {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .floating-badge {
    display: none;
  }

  .phone-chassis {
    width: 290px;
    height: 580px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
