/* ============================================
   INFINAL BANKING TEMPLATE v1 — Main Stylesheet
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --primary: #c9a84c;
  --primary-50: #fdf8ed;
  --primary-100: #f9edcc;
  --primary-200: #f3d994;
  --primary-300: #ecc45c;
  --primary-400: #dbb53f;
  --primary-500: #c9a84c;
  --primary-600: #b88726;
  --primary-700: #9a6f20;
  --primary-800: #7d5a1e;
  --primary-900: #674b1d;
  --primary-950: #3a280d;

  --secondary: #d4cfc4;
  --secondary-50: #faf9f7;
  --secondary-600: #c0baae;
  --secondary-700: #a8a296;

  --accent: #f5f0e8;
  --accent-300: #f0e8d8;
  --accent-500: #e8dcc8;
  --accent-600: #d4c8b0;

  --bg: #faf8f5;
  --bg-secondary: #f5f1ec;
  --text: #2d2a24;
  --text-secondary: #8a8275;
  --text-tertiary: #b0a89c;
  --border: #e8e2d8;
  --card-bg: #ffffff;
  --card-border: #e8e2d8;
  --muted: #f0ece6;
  --muted-fg: #8a8275;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --bg: #1a1712;
  --bg-secondary: #221f19;
  --text: #f0ece6;
  --text-secondary: #b0a89c;
  --text-tertiary: #8a8275;
  --border: #3a352e;
  --card-bg: #221f19;
  --card-border: #3a352e;
  --muted: #2d2a24;
  --muted-fg: #b0a89c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--primary-300);
  color: var(--primary-950);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
.font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  line-height: 1.2;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.125rem; border-radius: calc(var(--radius) + 0.25rem); }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-800); }

.btn-accent {
  background: var(--primary-500);
  color: var(--primary-950);
  border-color: var(--primary-500);
}
.btn-accent:hover { background: var(--primary-600); border-color: var(--primary-600); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary-400); color: var(--primary-400); }

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--muted); color: var(--text); }

.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
}

.badge-accent {
  background: rgba(201, 168, 76, 0.15);
  color: var(--primary-700);
}

.badge-secondary {
  background: var(--secondary-50);
  color: var(--secondary);
}
[data-theme="dark"] .badge-secondary {
  background: rgba(26, 86, 219, 0.2);
  color: var(--secondary-50);
}

.badge-outline {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 83, 0.3);
}

/* ---------- Section ---------- */
.section {
  padding: 5rem 0;
}
@media (min-width: 768px) { .section { padding: 7rem 0; } }

.section-dark {
  background: linear-gradient(135deg, var(--primary-950), var(--primary), var(--primary-800));
  color: white;
}
[data-theme="dark"] .section-dark {
  background: linear-gradient(135deg, var(--bg), var(--bg-secondary), var(--bg));
}

.section-muted {
  background: var(--bg-secondary);
}

/* ---------- Section Heading ---------- */
.section-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 768px) { .section-header { margin-bottom: 4rem; } }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s;
  height: 4rem;
}
@media (min-width: 768px) { .navbar { height: 5rem; } }

.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(11, 17, 32, 0.85);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .navbar-links { display: flex; } }

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--muted); }
.nav-link.active { color: var(--primary); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Navbar Right Group ---------- */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Mobile Menu ---------- */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: var(--text);
  transition: background 0.2s;
}
.mobile-toggle:hover { background: var(--muted); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  transition: all 0.3s;
}
.mobile-menu.open { display: block; }

.mobile-menu-inner {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.mobile-link:hover { background: var(--muted); color: var(--text); }
.mobile-link.active { background: rgba(201, 168, 76, 0.1); color: var(--primary-600); }
[data-theme="dark"] .mobile-link.active { background: rgba(201, 168, 76, 0.15); }

.mobile-lang {
  padding: 0.75rem 1rem;
}

.mobile-cta {
  padding: 0.5rem 1rem;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  position: relative;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  color: white;
}

.lang-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--primary);
  border-radius: 0.375rem;
  transition: all 0.3s;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover { background: var(--muted); color: var(--text); }

.theme-toggle svg {
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700), var(--primary-500));
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--bg), var(--bg-secondary), var(--bg));
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(245, 240, 232, 0.12);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-2 {
  position: absolute;
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  filter: blur(80px);
}
.hero-glow-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50rem;
  height: 50rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) { .hero-content { padding-top: 8rem; padding-bottom: 6rem; } }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.hero-text {
  text-align: center;
}
@media (min-width: 1024px) { .hero-text { text-align: left; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  letter-spacing: -0.02em;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-title-highlight {
  background: linear-gradient(135deg, var(--accent-300), var(--accent), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
}
@media (min-width: 1024px) { .hero-desc { margin-left: 0; } }

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }

.hero-trust {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 1024px) { .hero-trust { flex-direction: row; justify-content: flex-start; } }

.hero-avatars {
  display: flex;
}
.hero-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid var(--primary-700);
  background: #e8e0d4;
}
[data-theme="dark"] .hero-avatar { background: #5a5248; }
.hero-avatar + .hero-avatar { margin-left: -0.5rem; }

.hero-trust-text {
  font-size: 0.875rem;
}

/* ---------- Dashboard Preview ---------- */
.dashboard-preview {
  display: none;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .dashboard-preview { display: flex; } }

.dashboard-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.dashboard-dots {
  display: flex;
  gap: 0.375rem;
}
.dashboard-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}
.dashboard-dot:nth-child(1) { background: rgba(239,68,68,0.7); }
.dashboard-dot:nth-child(2) { background: rgba(234,179,8,0.7); }
.dashboard-dot:nth-child(3) { background: rgba(34,197,94,0.7); }
.dashboard-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.dashboard-balance {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.dashboard-balance-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.dashboard-balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}
.dashboard-balance-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #34d399;
  font-size: 0.875rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.dashboard-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
}
.dashboard-item-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.dashboard-item-value {
  font-size: 1.125rem;
  font-weight: 600;
}
.dashboard-item-value.income { color: #34d399; }
.dashboard-item-value.expense { color: #f87171; }
.dashboard-item-value.savings { color: #60a5fa; }
.dashboard-item-value.invested { color: var(--accent); }

/* ---------- Hero fade gradient ---------- */
.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* ---------- Trust Section ---------- */
.trust {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.trust-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.trust-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.trust-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all 0.3s;
}
.trust-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  color: var(--primary);
  transition: all 0.3s;
}
[data-theme="dark"] .trust-icon { background: rgba(201, 168, 76, 0.15); }
.trust-card:hover .trust-icon {
  background: var(--primary);
  color: white;
}

.trust-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.trust-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .features-grid { gap: 2rem; } }

.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all 0.3s;
}
@media (min-width: 768px) { .feature-card { padding: 2rem; } }
.feature-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .feature-card:hover {
  border-color: var(--primary-600);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(201, 168, 76, 0.08);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
[data-theme="dark"] .feature-icon { background: rgba(201, 168, 76, 0.15); }
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Security ---------- */
.security-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .security-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .security-grid { grid-template-columns: repeat(3, 1fr); } }

.security-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all 0.3s;
}
.security-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .security-card:hover {
  border-color: var(--primary-600);
}

.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(212, 168, 83, 0.1);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.security-card:hover .security-icon {
  background: var(--accent);
  color: var(--primary-950);
}

.security-icon svg { width: 1.5rem; height: 1.5rem; }

.security-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.security-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.security-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700), var(--primary-500));
  text-align: center;
}
[data-theme="dark"] .security-cta {
  background: linear-gradient(135deg, var(--bg-secondary), var(--muted));
  border: 1px solid var(--border);
}

.security-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
[data-theme="dark"] .security-cta-title { color: var(--text); }

.security-cta-desc {
  color: rgba(255,255,255,0.7);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}
[data-theme="dark"] .security-cta-desc { color: var(--text-secondary); }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700), var(--primary-500));
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .stats {
  background: linear-gradient(135deg, var(--bg), var(--bg-secondary), var(--bg));
}

.stats-glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(245, 240, 232, 0.06);
  border-radius: 50%;
  filter: blur(80px);
}
.stats-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 50%;
  filter: blur(80px);
}

.stats-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: white;
  margin-bottom: 1rem;
}
[data-theme="dark"] .stat-icon { background: rgba(201, 168, 76, 0.15); color: var(--primary-300); }

.stat-icon svg { width: 1.75rem; height: 1.75rem; }

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (min-width: 768px) { .stat-value { font-size: 3rem; } }
[data-theme="dark"] .stat-value { color: var(--text); }

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .stat-label { color: var(--text-secondary); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.testimonial-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: all 0.3s;
}
@media (min-width: 768px) { .testimonial-card { padding: 2rem; } }
.testimonial-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .testimonial-card:hover {
  border-color: var(--primary-600);
}

.testimonial-quote {
  color: var(--primary-500);
  opacity: 0.2;
  margin-bottom: 1rem;
}
[data-theme="dark"] .testimonial-quote { opacity: 0.15; }

.testimonial-quote svg { width: 2rem; height: 2rem; }

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-info { flex: 1; }

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.testimonial-stars {
  display: flex;
  gap: 0.125rem;
}
.testimonial-stars .star {
  width: 1rem;
  height: 1rem;
}
.testimonial-stars .star.filled {
  fill: var(--accent);
  color: var(--accent);
}
.testimonial-stars .star.empty {
  fill: var(--muted);
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.gallery-filter {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--text-secondary);
  transition: all 0.2s;
  border: none;
}
.gallery-filter:hover { background: var(--muted); }
.gallery-filter.active {
  background: var(--primary-500);
  color: var(--primary-950);
  box-shadow: var(--shadow-md);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  min-height: 200px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  aspect-ratio: 4 / 3;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700), var(--primary-500));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay .badge {
  align-self: flex-start;
  margin-bottom: 0.5rem;
}

.gallery-overlay-title {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.gallery-overlay-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-more {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }

.faq-question svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.3s;
  margin-left: 1rem;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(201, 168, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
[data-theme="dark"] .contact-info-icon { background: rgba(201, 168, 76, 0.15); }

.contact-info-icon svg { width: 1.25rem; height: 1.25rem; }

.contact-info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
}
.contact-info-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.contact-info-value:hover { color: var(--primary); }

/* ---------- Form ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
}

.form-input.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.form-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

/* ---------- Alert ---------- */
.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .alert-success {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
[data-theme="dark"] .alert-error {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.alert svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-950);
  color: var(--primary-50);
  border-top: 1px solid rgba(255,255,255,0.05);
}
[data-theme="dark"] .footer {
  background: var(--bg);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-brand {
  max-width: 24rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
[data-theme="dark"] .footer-logo { color: var(--text); }

.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}
[data-theme="dark"] .footer-desc { color: var(--text-tertiary); }

.footer-contact {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact a,
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
[data-theme="dark"] .footer-contact a,
[data-theme="dark"] .footer-contact p { color: var(--text-tertiary); }
.footer-contact a:hover { color: var(--accent); }

.footer-contact svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}
[data-theme="dark"] .footer-heading { color: var(--text); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
[data-theme="dark"] .footer-links a { color: var(--text-tertiary); }
.footer-links a:hover { color: var(--accent); }

.footer-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .footer-divider { background: var(--border); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}
[data-theme="dark"] .footer-copyright { color: var(--text-tertiary); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
[data-theme="dark"] .footer-social a { color: var(--text-tertiary); }
.footer-social a:hover { color: var(--accent); }

.footer-social svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-1.25rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(1.25rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}
.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}
.animate-fade-in-down {
  animation: fadeInDown 0.5s ease-out;
}
.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Responsive Utilities ---------- */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

@media (min-width: 640px) {
  .d-sm-none { display: none !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
  .d-md-flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .d-lg-none { display: none !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-flex { display: flex !important; }
  .d-lg-inline-flex { display: inline-flex !important; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---------- Transition helpers ---------- */
.section-transition {
  transition: background 0.3s, color 0.3s;
}

/* ---------- Loading skeleton ---------- */
.skeleton {
  background: var(--muted);
  border-radius: var(--radius);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* ---------- Smooth Scrolling (non-reduced) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
