/* ============================================
   POST CONNECT — Global Stylesheet
   Brand: #FF2A2A Red + Pure White
   Themes: AMOLED Dark + Light (auto)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─── */
:root {
  --red: #FF2A2A;
  --red-dark: #CC1515;
  --red-glow: rgba(255,42,42,0.4);
  --red-subtle: rgba(255,42,42,0.12);
  --white: #ffffff;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --nav-h: 68px;
  --radius: 16px;
  --radius-lg: 28px;
  --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* DARK THEME (default / AMOLED) */
[data-theme="dark"], :root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f0f0f0;
  --text-2: rgba(240,240,240,0.65);
  --text-3: rgba(240,240,240,0.38);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.6);
  --nav-bg: rgba(8,8,8,0.85);
  --card-shadow: 0 8px 40px rgba(0,0,0,0.5);
  --noise-opacity: 0.025;
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg: #f7f7f7;
  --bg-2: #efefef;
  --bg-3: #e8e8e8;
  --surface: rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --text: #111111;
  --text-2: rgba(17,17,17,0.65);
  --text-3: rgba(17,17,17,0.38);
  --glass: rgba(255,255,255,0.65);
  --glass-border: rgba(0,0,0,0.10);
  --glass-strong: rgba(255,255,255,0.80);
  --shadow: rgba(0,0,0,0.15);
  --nav-bg: rgba(247,247,247,0.85);
  --card-shadow: 0 8px 40px rgba(0,0,0,0.12);
  --noise-opacity: 0.018;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.35s var(--transition), color 0.35s var(--transition);
  min-height: 100vh;
}

/* ─── Noise Texture Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s var(--transition), border-color 0.3s var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s var(--transition);
}

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

.nav-links a.active {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-theme {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s var(--transition);
}

.btn-theme:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-download-nav {
  background: var(--red);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.22s var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px var(--red-glow);
}

.btn-download-nav:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--red-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--transition);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s var(--transition);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}

.mobile-menu a:hover { background: var(--surface-hover); color: var(--text); }

/* ─── Page Wrapper ─── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after { opacity: 0.08; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 6px 24px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--red-glow);
}

.btn-secondary {
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  color: var(--red);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 17px 36px;
  border-radius: 16px;
}

.btn-sm {
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 10px;
}

/* ─── Glass Card ─── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--transition);
}

.glass-card:hover {
  border-color: rgba(255,42,42,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--shadow), 0 0 0 1px rgba(255,42,42,0.1);
}

/* ─── Section styles ─── */
.section {
  padding: 100px 24px;
}

.section-sm {
  padding: 60px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid rgba(255,42,42,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--red);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── Red Gradient Text ─── */
.gradient-text {
  background: linear-gradient(135deg, #FF2A2A 0%, #FF6B6B 50%, #FF2A2A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Glow Orb Backgrounds ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-red {
  background: radial-gradient(circle, rgba(255,42,42,0.35) 0%, transparent 70%);
}

.orb-dark {
  background: radial-gradient(circle, rgba(255,42,42,0.12) 0%, transparent 70%);
}

/* ─── Footer ─── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

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

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

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

.footer-col ul a {
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--red); }

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

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-disclaimer {
  background: var(--red-subtle);
  border: 1px solid rgba(255,42,42,0.15);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-disclaimer strong {
  color: var(--red);
}

/* ─── Scroll Reveal Animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.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; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-red {
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid rgba(255,42,42,0.2);
}

.badge-green {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.2);
}

/* ─── Input ─── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}

.input-field {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  transition: all 0.2s var(--transition);
  outline: none;
}

.input-field:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-subtle);
  background: var(--surface-hover);
}

.input-field::placeholder { color: var(--text-3); }

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-download-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 20px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root { --nav-h: 62px; }
  .section { padding: 56px 16px; }
  .section-title { font-size: 1.85rem; }
}

/* ─── Page Transition ─── */
.page-enter {
  animation: pageIn 0.5s var(--transition) forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Red Line Accent ─── */
.red-line {
  width: 48px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ─── Tag chip ─── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9998;
  transition: transform 0.4s var(--transition), opacity 0.4s var(--transition);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--card-shadow);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 1.1rem; }
