/* SaveFirst Shared Design System — canonical source of truth for all pages */
/* This file is loaded FIRST on every page to enforce brand consistency */

@font-face {
  font-family: 'Display';
  src: local('SF Pro Display'), local('Inter'), local('Segoe UI'), local('Helvetica Neue');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #060B18;
  --bg-surface: #0A1228;
  --bg-card: #0E1830;
  --bg-glass: rgba(14,24,48,0.65);
  --bg-glass-hover: rgba(14,24,48,0.8);
  --text-primary: #EDF2FA;
  --text-secondary: #7B8FB5;
  --text-tertiary: #556A8A;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-dim: rgba(59,130,246,0.10);
  --accent-glow: rgba(59,130,246,0.20);
  --amber: #F59E0B;
  --red: #EF4444;
  --green: #22C55E;
  --purple: #8B5CF6;
  --border: rgba(255,255,255,0.06);
  --border-visible: rgba(255,255,255,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 60px rgba(59,130,246,0.15);
  --max-w: 1120px;
}

:root[data-theme="dark"] {
  --bg: #060B18;
  --bg-surface: #0A1228;
  --bg-card: #0E1830;
  --bg-glass: rgba(14,24,48,0.65);
  --bg-glass-hover: rgba(14,24,48,0.8);
  --text-primary: #EDF2FA;
  --text-secondary: #7B8FB5;
  --text-tertiary: #556A8A;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-dim: rgba(59,130,246,0.10);
  --accent-glow: rgba(59,130,246,0.20);
  --border: rgba(255,255,255,0.06);
  --border-visible: rgba(255,255,255,0.10);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 60px rgba(59,130,246,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: clip; }

body {
  font-family: 'Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Ambient Background ── */
.bg-ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.10; }
.orb-1 { width: 600px; height: 600px; background: #3B82F6; top: -10%; left: -8%; animation: orb-f 28s ease-in-out infinite; }
.orb-2 { width: 450px; height: 450px; background: #8B5CF6; top: 35%; right: -10%; animation: orb-f 32s ease-in-out infinite reverse; }
.orb-3 { width: 500px; height: 500px; background: #2563EB; bottom: 0; left: 20%; animation: orb-f 24s ease-in-out infinite 5s; }
@keyframes orb-f { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.05); } 66% { transform: translate(-20px,30px) scale(0.95); } }
.dot-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(circle, var(--border-visible) 1px, transparent 1px); background-size: 32px 32px; opacity: 0.3; }
.page, .page-content { position: relative; z-index: 1; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: var(--max-w); margin: 0 auto; }
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 16px; height: 16px; stroke: #fff; fill: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; letter-spacing: -0.01em; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta-btn { background: var(--accent); color: #fff !important; font-weight: 700; padding: 9px 22px; border-radius: 100px; font-size: 0.82rem; transition: all 0.2s; box-shadow: 0 2px 12px rgba(59,130,246,0.25); }
.nav-cta-btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger svg { width: 24px; height: 24px; stroke: var(--text-primary); fill: none; }

/* ── Glass Card ── */
.glass, .glass-card { background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-visible); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: all 0.25s; }
.glass:hover, .glass-card:hover { border-color: rgba(59,130,246,0.2); transform: translateY(-2px); }

/* ── Section Label ── */
.section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-label svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; }

/* ── CTA Buttons ── */
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700; padding: 16px 36px; border-radius: 100px; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(59,130,246,0.3); letter-spacing: -0.01em; font-family: inherit; }
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.35); }
.cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); transform: skewX(-20deg); animation: shimmer 3.5s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { left: -100%; } 50% { left: 140%; } }
.cta-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }
.cta-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--accent); font-size: 0.92rem; font-weight: 600; padding: 14px 28px; border-radius: 100px; border: 1px solid rgba(59,130,246,0.25); cursor: pointer; text-decoration: none; transition: all 0.2s; }
.cta-ghost:hover { background: var(--accent-dim); border-color: var(--accent); }
.cta-ghost svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.cta-micro { display: block; text-align: center; font-size: 0.76rem; color: var(--text-secondary); margin-top: 12px; }
.cta-micro svg { width: 12px; height: 12px; stroke: var(--green); fill: none; vertical-align: -2px; margin-right: 3px; }

/* ── Icon Box ── */
.icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-dim); display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(59,130,246,0.12); flex-shrink: 0; }
.icon-box svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; }
.icon-box-sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-box-sm svg { width: 18px; height: 18px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 64px 24px 32px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; max-width: var(--max-w); margin: 0 auto 48px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; font-size: 0.72rem; color: var(--text-tertiary); max-width: var(--max-w); margin: 0 auto; line-height: 1.7; }

/* ── WhatsApp Float ── */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35); z-index: 90; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Fade Animation ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media(prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } .orb { animation: none; } .cta-btn::before { animation: none; } }

/* ── Shared Responsive ── */
@media(max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media(max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 16px 24px; gap: 0; }
  .nav-links.show { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border: none; padding-top: 16px; }
  .nav-hamburger { display: block; }
  .wa-float { bottom: 20px; right: 16px; width: 48px; height: 48px; }
  .wa-float svg { width: 24px; height: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
