/* shared.css — Critical shared styles for landing pages (header + footer + resets)
   Replaces style.css + homepage.css on pages that don't need full homepage styles.
   ~5 KiB vs 40 KiB — eliminates 35 KiB of unused CSS per landing page. */

/* ── Variables ── */
:root {
  --primary: #184BFC;
  --primary-light: #3B7DFC;
  --primary-dark: #1240C8;
  --primary-darker: #0A0226;
  --text: #4B5563;
  --text-light: #6B7280;
  --text-dark: #0A0226;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-page: #F5F5FF;
  --bg-subtle: #F1F5F9;
  --bg-dark: #0A0226;
  --bg-dark-accent: #1B1435;
  --border: #E2E8F0;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 30px rgba(24,75,252,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Resets ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; width: 100%; max-width: 100vw; }
h1, h2, h3, h4, h5, h6 { font-family: 'Be Vietnam Pro', sans-serif; }
.btn-primary, .btn-primary-sm, .btn-outline, .btn-white, .btn-primary-full, .btn-outline-full, .btn-ghost { font-family: 'Inter', -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.text-gradient { background: linear-gradient(135deg,#60A5FA 0%,#A78BFA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .text-gradient { background: linear-gradient(135deg,#60A5FA 0%,#A78BFA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
:not(.hero) .text-gradient { background: linear-gradient(135deg,var(--primary) 0%,#6366F1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; background: rgba(10,2,38,0.75); border-bottom: 1px solid rgba(255,255,255,0.08); transition: var(--transition); }
.header::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: -1; pointer-events: none; transition: var(--transition); }
.header.scrolled { background: rgba(10,2,38,0.98); border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.header .logo { justify-self: start; }
.header .nav { justify-self: center; }
.header .header-actions { justify-self: end; }
.logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); transition: var(--transition); }
.nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); padding: 10px 16px; }
.btn-primary-sm { font-size: 14px; font-weight: 600; color: var(--primary); background: #fff; padding: 10px 20px; border-radius: var(--radius-sm); transition: var(--transition); }
.btn-primary-sm:hover { background: #F5F5FF; box-shadow: 0 8px 25px rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ── Mobile Toggle ── */
.mobile-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 10px; cursor: pointer; border-radius: 8px; width: 44px; height: 44px; transition: all 0.3s ease; position: relative; z-index: 10001; }
.mobile-toggle:hover { background: rgba(255,255,255,0.15); }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Mobile Overlay ── */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; }
.mobile-overlay.active { display: block; }

/* ── Mobile Nav ── */
.mobile-nav { display: none; position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #0A0226; z-index: 9999; flex-direction: column; transition: transform 0.3s ease; transform: translateX(100%); overflow-y: auto; box-shadow: -5px 0 30px rgba(0,0,0,0.3); box-sizing: border-box; }
.mobile-nav.open { display: flex !important; transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; background: rgba(0,0,0,0.2); width: 100%; box-sizing: border-box; }
.mobile-nav-header .nav-logo { display: flex; align-items: center; }
.mobile-nav-header .nav-logo img { height: 24px; filter: brightness(0) invert(1); }
.mobile-nav-header .nav-close { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0; width: 32px; height: 32px; line-height: 1; border-radius: 6px; transition: background 0.2s; flex-shrink: 0; }
.mobile-nav-header .nav-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; width: 100%; box-sizing: border-box; }
.mobile-nav-links a, .mobile-nav-links .nav-item { display: block; padding: 14px 16px; color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 500; text-decoration: none; transition: background 0.2s; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; box-sizing: border-box; }
.mobile-nav-links a:hover, .mobile-nav-links .nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-nav-buttons, .mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); background: #0A0226; margin-top: auto; flex-shrink: 0; }
.btn-ghost-mobile { display: block; text-align: center; padding: 14px 20px; color: #fff; font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; text-decoration: none; transition: all 0.2s; background: transparent; }
.btn-ghost-mobile:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-primary-mobile { display: block; text-align: center; padding: 14px 20px; background: linear-gradient(135deg,var(--primary) 0%,#3B7DFC 100%); color: #fff; font-size: 15px; font-weight: 600; border-radius: 10px; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 15px rgba(24,75,252,0.35); border: none; }
.btn-primary-mobile:hover { box-shadow: 0 6px 20px rgba(24,75,252,0.5); }

/* ── Footer ── */
.footer-new { padding: 0 0 30px; background: #0D0520; position: relative; }
.footer-gradient-line { height: 3px; background: linear-gradient(90deg,transparent,var(--primary),#8B5CF6,var(--primary),transparent); margin-bottom: 60px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 80px; margin-bottom: 40px; }
.footer-brand-new img { height: 32px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand-new p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-links-new { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.footer-col-new h4, .footer-col-title { font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.footer-col-new a { display: block; font-size: 14px; color: rgba(255,255,255,0.72); padding: 8px 0; transition: var(--transition); }
.footer-col-new a:hover { color: #fff; padding-left: 6px; }
.footer-divider { height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,0.1),transparent); margin-bottom: 24px; }
.footer-bottom-new { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom-new p { font-size: 13px; color: #b0b8c8; }
.footer-badges-new { display: flex; gap: 24px; }
.footer-badges-new span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.72); }
.footer-badges-new svg { opacity: 0.6; }
.footer-a11y-icon { display: inline-block; vertical-align: middle; }

/* ── Responsive ── */
@media (max-width: 1279px) {
  .container { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-links-new { grid-template-columns: repeat(3,1fr); gap: 24px; }
  .footer-bottom-new { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 767px) {
  .nav, .header-actions { display: none; }
  .mobile-toggle { display: flex !important; }
  .header .container { display: flex; justify-content: space-between; align-items: center; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: flex !important; }
  .header { background: #0A0226 !important; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .header.scrolled { background: #0A0226 !important; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
  .container { padding: 0 16px; }
  .footer-new { max-width: 100vw; overflow-x: hidden; }
  .footer-links-new { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-links-new { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand-new p { font-size: 13px; }
}
