/* =========================================================
   AQUAMARINE — THEME
   :root is LIGHT (default). [data-theme="dark"] overrides.
   ========================================================= */

:root,
[data-theme="light"] {
  --aq-100: #d6fff7;
  --aq-200: #a3f7e8;
  --aq-300: #5cdcc5;
  --aq-400: #23c8ad;
  --aq-500: #00a896;
  --aq-600: #008a7b;
  --aq-700: #00665c;

  --white: #ffffff;
  --bg: #f4fbfa;
  --bg-soft: #e8f5f3;
  --surface: #ffffff;
  --surface-2: #f3faf9;
  --text: #0d2323;
  --text-muted: #5a7570;
  --border: #d5e7e3;
  --border-soft: #e6f0ee;

  --shadow-sm: 0 2px 8px rgba(0, 168, 150, 0.08);
  --shadow: 0 10px 30px rgba(0, 168, 150, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 168, 150, 0.18);
  --glow: 0 0 24px rgba(0, 168, 150, 0.18);
}

[data-theme="dark"] {
  --aq-100: #d6fff7;
  --aq-200: #a3f7e8;
  --aq-300: #6eebd4;
  --aq-400: #38d6bb;
  --aq-500: #00b8a9;
  --aq-600: #009688;
  --aq-700: #006f66;

  --white: #ffffff;
  --bg: #0a1420;
  --bg-soft: #0e1c2b;
  --surface: #122438;
  --surface-2: #16304a;
  --text: #eaf6f5;
  --text-muted: #8ba8b3;
  --border: #1f3a52;
  --border-soft: #16293c;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 184, 169, 0.18);
  --glow: 0 0 24px rgba(0, 184, 169, 0.25);
}

:root {
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.35s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- BLOBS ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.4;
  animation: float 18s ease-in-out infinite;
}
[data-theme="light"] .blob { opacity: 0.32; filter: blur(80px); }
.blob.b1 { width: 500px; height: 500px; background: radial-gradient(circle, #00b8a9, transparent 70%); top: -140px; left: -140px; }
.blob.b2 { width: 440px; height: 440px; background: radial-gradient(circle, #007d78, transparent 70%); top: 42%; right: -150px; animation-delay: -6s; }
.blob.b3 { width: 400px; height: 400px; background: radial-gradient(circle, #38d6bb, transparent 70%); bottom: -120px; left: 32%; opacity: 0.22; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-30px,30px) scale(0.95); }
}

/* ---------- CURSOR GLOW ---------- */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--aq-500) 22%, transparent), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  filter: blur(30px);
}
body:hover .cursor-glow { opacity: 0.7; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
  animation: slideDown 0.6s var(--ease);
}
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--text);
}
.logo svg { width: 30px; height: 30px; transition: transform 0.5s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.1); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--speed) var(--ease); cursor: pointer;
}
.nav-links a:hover { color: var(--aq-500); background: color-mix(in srgb, var(--aq-500) 10%, transparent); }
.nav-links a.active { color: var(--aq-600); background: color-mix(in srgb, var(--aq-500) 12%, transparent); }
.nav-cta {
  padding: 10px 20px !important;
  background: linear-gradient(120deg, var(--aq-500), var(--aq-400), var(--aq-500));
  background-size: 200% 200%;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(0, 168, 150, 0.32);
  animation: gradShift 8s ease infinite;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 168, 150, 0.45);
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  color: var(--aq-500);
  border-color: var(--aq-500);
  transform: rotate(-15deg) scale(1.06);
  box-shadow: var(--glow);
}
.theme-toggle svg { position: absolute; transition: all 0.4s var(--ease); }

.theme-toggle-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px color-mix(in srgb, var(--aq-500) 25%, transparent) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-toggle-float:hover {
  transform: rotate(-15deg) scale(1.08);
  box-shadow: 0 14px 36px rgba(0, 168, 150, 0.35), var(--glow);
}
.theme-toggle-float svg { width: 22px; height: 22px; }

[data-theme="dark"] .icon-sun { opacity: 0; transform: translateY(20px) rotate(90deg); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: translateY(0) rotate(0); }
[data-theme="light"] .icon-sun { opacity: 1; transform: translateY(0) rotate(0); }
[data-theme="light"] .icon-moon { opacity: 0; transform: translateY(-20px) rotate(-90deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: all var(--speed) var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--aq-500); color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 168, 150, 0.28);
}
.btn-primary:hover {
  background: var(--aq-600);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 168, 150, 0.42);
}
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--aq-500); color: var(--aq-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---------- HERO ---------- */
.hero { max-width: 1240px; margin: 0 auto; padding: 100px 28px 80px; text-align: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aq-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq-500) 20%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq-500) 20%, transparent); }
  50%     { box-shadow: 0 0 0 8px color-mix(in srgb, var(--aq-500) 6%, transparent); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.06;
  margin-bottom: 22px;
}

.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) rotate(3deg);
  animation: wordIn 0.75s var(--ease) forwards;
}
.reveal-text .word:nth-child(1) { animation-delay: 0.20s; }
.reveal-text .word:nth-child(2) { animation-delay: 0.34s; }
.reveal-text .word:nth-child(3) { animation-delay: 0.48s; }
.reveal-text .word:nth-child(4) { animation-delay: 0.62s; }
.reveal-text .word:nth-child(5) { animation-delay: 0.76s; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Keyword — bolder now */
.reveal-text .keyword {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--aq-400), var(--aq-600), var(--aq-500));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.7px currentColor;
  text-shadow: 0 0 0.7px currentColor;
  animation: wordIn 0.75s var(--ease) 0.34s forwards, gradShift 7s ease infinite 1.2s;
  padding-right: 0.05em;
}

.reveal-sub {
  max-width: 620px; margin: 0 auto 40px;
  font-size: 1.15rem; color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.95s forwards;
}
.reveal-sub .accent {
  color: var(--aq-600);
  font-weight: 600;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.15s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section title keyword — bolder now */
.keyword-sm {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--aq-400), var(--aq-600));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.6px currentColor;
  text-shadow: 0 0 0.6px currentColor;
}
.accent {
  color: var(--aq-600);
  font-weight: 600;
}

/* ---------- STATS ---------- */
.stats {
  max-width: 1000px; margin: 60px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 0 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.35s forwards;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease);
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--aq-500);
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--aq-600); letter-spacing: -0.03em; }
.stat .label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- SECTION ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 80px 28px; position: relative; z-index: 1; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: all 0.5s var(--ease);
  opacity: 0; transform: translateY(30px);
  will-change: transform;
}
.feature.reveal { opacity: 1; transform: translateY(0); }
.feature:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--aq-500);
}
.feature:nth-child(2):hover { transform: translateY(-8px) rotate(0.6deg); }
.feature:nth-child(3):hover { transform: translateY(-8px) rotate(-0.6deg); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--aq-500) 12%, transparent);
  color: var(--aq-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem;
  transition: all var(--speed) var(--ease);
}
.feature:hover .feature-icon {
  background: var(--aq-500);
  color: #ffffff;
  transform: rotate(-8deg) scale(1.1);
}
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- DOWNLOADS PAGE ---------- */
.page-head { max-width: 1240px; margin: 0 auto; padding: 70px 28px 20px; text-align: center; position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 14px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.page-head p {
  color: var(--text-muted); max-width: 560px; margin: 0 auto;
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}
.search-wrap {
  max-width: 560px; margin: 36px auto 0; position: relative;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.4s forwards;
}
.search-wrap svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); width: 20px; height: 20px; pointer-events: none;
}
#searchInput {
  width: 100%; padding: 16px 20px 16px 52px;
  font-size: 1rem; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; outline: none;
  transition: all var(--speed) var(--ease);
  box-shadow: var(--shadow-sm);
}
#searchInput::placeholder { color: var(--text-muted); }
#searchInput:focus {
  border-color: var(--aq-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq-500) 18%, transparent), var(--shadow);
}

.filters {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 26px auto 0; max-width: 900px; padding: 0 28px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.55s forwards;
}
.pill {
  padding: 9px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--speed) var(--ease);
}
.pill:hover { border-color: var(--aq-500); color: var(--aq-600); transform: translateY(-2px); }
.pill.active {
  background: var(--aq-500); color: #ffffff;
  border-color: var(--aq-500);
  box-shadow: 0 8px 20px rgba(0, 168, 150, 0.32);
}

.dl-grid {
  max-width: 1240px; margin: 0 auto; padding: 40px 28px 90px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
  position: relative; z-index: 1;
}

.dl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(28px);
}
.dl-card.reveal { opacity: 1; transform: translateY(0); }
.dl-card:hover {
  transform: translateY(-8px);
  border-color: var(--aq-500);
  box-shadow: var(--shadow-lg);
}
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.dl-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: color-mix(in srgb, var(--aq-500) 12%, transparent);
  color: var(--aq-600);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--speed) var(--ease);
}
.dl-icon svg { width: 26px; height: 26px; }
.dl-card:hover .dl-icon {
  background: var(--aq-500);
  color: #ffffff;
  transform: scale(1.06) rotate(-4deg);
}
.dl-tag {
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: color-mix(in srgb, var(--aq-500) 12%, transparent);
  color: var(--aq-600);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dl-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.dl-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.dl-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 18px;
}
.dl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--aq-500); color: #ffffff;
  font-weight: 700; font-size: 0.95rem;
  transition: all var(--speed) var(--ease);
  box-shadow: 0 8px 20px rgba(0, 168, 150, 0.26);
}
.dl-btn:hover {
  background: var(--aq-600); transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 168, 150, 0.4);
}
.dl-btn svg { width: 17px; height: 17px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 40px 28px 32px; margin-top: 40px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--speed); cursor: pointer; }
.footer-links a:hover { color: var(--aq-600); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.15), 0 0 0 1px color-mix(in srgb, var(--aq-500) 20%, transparent) inset;
  opacity: 0;
  transition: all 0.45s var(--ease);
  z-index: 999;
  pointer-events: none;
  max-width: min(90vw, 420px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--aq-500) 15%, transparent);
  color: var(--aq-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast-icon svg { width: 16px; height: 16px; }
.toast-text { line-height: 1.35; }

/* =========================================================
   FEEDBACK TAB (left side) + PANEL
   ========================================================= */
.feedback-tab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 14px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08), 0 0 0 1px color-mix(in srgb, var(--aq-500) 15%, transparent) inset;
  transition: all var(--speed) var(--ease);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.feedback-tab:hover {
  transform: translateY(-50%) translateX(3px);
  border-color: var(--aq-500);
  box-shadow: 6px 0 30px rgba(0, 168, 150, 0.25), var(--glow);
}
.feedback-tab-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aq-400), var(--aq-600));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.35);
}
.feedback-tab-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* Panel */
.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.feedback-overlay.show { opacity: 1; pointer-events: auto; }

.feedback-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: min(400px, 90vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.feedback-panel.open { transform: translateX(0); }

.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.feedback-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.feedback-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.feedback-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
  flex-shrink: 0;
}
.feedback-close:hover {
  background: color-mix(in srgb, var(--aq-500) 12%, transparent);
  color: var(--aq-500);
  transform: rotate(90deg);
}
.feedback-close svg { width: 18px; height: 18px; }

.feedback-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 6px;
}
.feedback-label .muted {
  font-weight: 400;
  opacity: 0.7;
}

.stars {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.star {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--border);
  transition: all 0.2s var(--ease);
  padding: 2px;
}
.star:hover,
.star.active {
  color: var(--aq-500);
  transform: scale(1.12);
  text-shadow: 0 0 12px color-mix(in srgb, var(--aq-500) 50%, transparent);
}
.star.hovered { color: var(--aq-400); transform: scale(1.08); }

#feedbackText,
#feedbackEmail {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all var(--speed) var(--ease);
  resize: vertical;
}
#feedbackText::placeholder,
#feedbackEmail::placeholder { color: var(--text-muted); opacity: 0.7; }
#feedbackText:focus,
#feedbackEmail:focus {
  border-color: var(--aq-500);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq-500) 15%, transparent);
}

.feedback-submit {
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}

.feedback-foot {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .feedback-tab-label { display: none; }
  .feedback-tab { padding: 12px 10px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav-links li:not(:last-child) { display: none; }
  .nav-links li:last-child { display: block; }
  .nav-cta { display: none !important; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 40px; }
  .section { padding: 60px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .toast { white-space: normal; text-align: left; padding-right: 20px; }
  .theme-toggle-float { bottom: 20px; right: 20px; width: 48px; height: 48px; }
}
/* =========================================================
   ADDITIONS — soon pages, mod application, discord linking
   ========================================================= */

.section-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 28px 90px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  z-index: 1;
}

/* ---------- SOON CARD ---------- */
.soon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease) both;
}
.soon-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--aq-500) 55%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--aq-400) 35%, transparent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.soon-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--aq-500) 14%, transparent);
  color: var(--aq-500);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--aq-500) 20%, transparent);
  animation: floatY 5s ease-in-out infinite;
}
.soon-icon svg { width: 40px; height: 40px; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

.soon-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--aq-500) 12%, transparent);
  color: var(--aq-600);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.soon-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.soon-card p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}
.soon-note {
  margin-top: 14px !important;
  font-size: 0.9rem !important;
  opacity: 0.85;
}

.soon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 30px;
  text-align: left;
}
.soon-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}
.soon-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--aq-500) 14%, transparent);
  color: var(--aq-600);
}
.soon-feature-icon svg { width: 18px; height: 18px; }
.soon-feature-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.soon-feature-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.soon-note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.soon-note-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

/* ---------- APPLY CARD ---------- */
.apply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.apply-head {
  margin-bottom: 26px;
}
.apply-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.apply-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.apply-field { display: flex; flex-direction: column; gap: 6px; }
.apply-full { grid-column: 1 / -1; }

.apply-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.apply-field label .muted { font-weight: 400; opacity: 0.7; }

.apply-field input,
.apply-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all var(--speed) var(--ease);
  resize: vertical;
}
.apply-field input::placeholder,
.apply-field textarea::placeholder { color: var(--text-muted); opacity: 0.65; }
.apply-field input:focus,
.apply-field textarea:focus {
  border-color: var(--aq-500);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aq-500) 15%, transparent);
}
.apply-field input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.apply-submit {
  margin-top: 8px;
  justify-content: center;
  width: 100%;
}
.apply-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---------- LINK ROW (Discord account linking) ---------- */
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  margin-bottom: 10px;
}
.link-row-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 3px;
}
.link-row-title .muted { font-weight: 400; opacity: 0.7; }
.link-row-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 420px;
}
.link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
  flex-shrink: 0;
}
.link-toggle:hover {
  border-color: var(--aq-500);
  color: var(--aq-600);
}
.link-toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.3s var(--ease);
}
.link-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--ease);
}
.link-toggle[aria-pressed="true"] {
  border-color: var(--aq-500);
  color: var(--aq-600);
}
.link-toggle[aria-pressed="true"] .link-toggle-track {
  background: var(--aq-500);
}
.link-toggle[aria-pressed="true"] .link-toggle-thumb {
  transform: translateX(16px);
}

.link-input {
  margin-top: 4px;
}

@media (max-width: 620px) {
  .apply-row { grid-template-columns: 1fr; }
  .soon-card { padding: 32px 22px 28px; }
  .apply-card { padding: 26px 22px 24px; }
  .link-row { flex-direction: column; align-items: flex-start; }
  .soon-note-card { flex-direction: column; align-items: flex-start; }
}