/* ==========================================================================
   Saeko Official Website (saeko.cl) — Dark Fantasy + Glassmorphism Theme
   Pure CSS3, Zero External Dependencies, Cloudflare Pages Ready
   ========================================================================== */

:root {
  --bg: #07090E;
  --bg-elev: #0F131D;
  --glass: rgba(16, 21, 33, 0.72);
  --glass-strong: rgba(14, 18, 29, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 123, 255, 0.45);
  --text: #F3F5FA;
  --text-soft: #C8D0E0;
  --text-muted: #8E98AE;
  --violet: #8B7BFF;
  --indigo: #6366F1;
  --cyan: #38BDF8;
  --emerald: #34D399;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(820px 420px at 15% 42%, rgba(56, 189, 248, 0.06), transparent 65%),
    radial-gradient(860px 460px at 85% 68%, rgba(139, 123, 255, 0.08), transparent 65%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(139, 123, 255, 0.14);
  color: #D2CBFF;
  padding: 0.14em 0.45em;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 123, 255, 0.75);
  box-shadow: 0 0 14px rgba(139, 123, 255, 0.45), 0 0 6px rgba(56, 189, 248, 0.35);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #C7E8FF;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-links a:hover { color: #FFFFFF; }

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

.lang-switch {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 21px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(124, 108, 246, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(139, 123, 255, 0.52);
}

.btn-glass {
  background: rgba(16, 21, 33, 0.75);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-glass:hover {
  background: rgba(25, 32, 48, 0.9);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-patreon {
  background: rgba(139, 123, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #DDD6FF;
  border-color: rgba(139, 123, 255, 0.42);
}

.btn-patreon:hover {
  background: rgba(139, 123, 255, 0.26);
  border-color: rgba(139, 123, 255, 0.68);
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* --- Cinematic Hero --- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 76px 0 64px;
  background-color: #07090E;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 14, 0.28) 0%, rgba(7, 9, 14, 0.05) 62%, #07090E 100%),
    linear-gradient(90deg, #07090E 0%, rgba(7, 9, 14, 0.88) 45%, rgba(7, 9, 14, 0.25) 100%),
    url("assets/hero-banner.jpg"),
    radial-gradient(650px 460px at 78% 45%, rgba(56, 189, 248, 0.22), rgba(139, 123, 255, 0.14) 45%, transparent 75%);
  background-position: center, center, right center, right center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Arcane floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatSpark var(--dur, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.particle.cyan {
  background: radial-gradient(circle, #7DD3FC 0%, rgba(56, 189, 248, 0) 70%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
}

.particle.violet {
  background: radial-gradient(circle, #C4B5FD 0%, rgba(139, 123, 255, 0) 70%);
  box-shadow: 0 0 12px rgba(139, 123, 255, 0.7);
}

@keyframes floatSpark {
  0% { transform: translateY(30px) scale(0.6); opacity: 0; }
  20% { opacity: 0.75; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-130px) translateX(22px) scale(1.1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 19, 29, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  font-size: 0.83rem;
  font-weight: 650;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.35rem, 4.8vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 850;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 10%, #BAE6FD 52%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 34px;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.metric-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 15px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-glass:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Sections --- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7DD3FC;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-head p { margin: 0; color: var(--text-muted); }

/* --- RPG Portal & Interactive 10 Classes --- */
.rpg-portal {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.zero-p2w-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.zero-p2w-bar strong { color: #6EE7B7; }
.zero-p2w-bar span { color: var(--text-soft); }

.classes-interactive {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 18px;
}

.class-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.86rem;
  transition: all 0.18s ease;
}

.class-btn .cls-ico { font-size: 1.35rem; }

.class-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.class-btn.active {
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.25), rgba(56, 189, 248, 0.16));
  border-color: rgba(139, 123, 255, 0.7);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(139, 123, 255, 0.24);
}

.class-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(7, 9, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.class-detail-main h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #FFFFFF;
}

.class-detail-main p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.class-evos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evo-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #BAE6FD;
}

/* --- Cards Grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 23px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(139, 123, 255, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.16), 0 0 0 1px rgba(56, 189, 248, 0.15) inset;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(139, 123, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 1.28rem;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* --- Interactive Discord Mockup Simulator --- */
.mockup-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.mockup-tab {
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mockup-tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.2); }
.mockup-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
}

.discord-window {
  max-width: 780px;
  margin: 0 auto;
  background: #313338;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.discord-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #2B2D31;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
  font-weight: 700;
  color: #F2F3F5;
}

.discord-dots {
  display: flex;
  gap: 6px;
}
.discord-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4E5058;
}

.discord-body {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.discord-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(139, 123, 255, 0.65);
}

.discord-msg { flex: 1; min-width: 0; }

.discord-author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.discord-author { font-weight: 700; color: #FFFFFF; font-size: 0.98rem; }
.discord-app-tag {
  background: #5865F2;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.discord-time { color: #949BA4; font-size: 0.76rem; }

.discord-embed {
  background: #2B2D31;
  border-left: 4px solid var(--violet);
  border-radius: 6px;
  padding: 14px 16px;
  max-width: 560px;
}

.discord-embed-title {
  font-weight: 750;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.discord-embed-desc {
  color: #DBDEE1;
  font-size: 0.9rem;
  margin-bottom: 12px;
  white-space: pre-line;
}

.discord-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.discord-field-name { font-size: 0.78rem; font-weight: 700; color: #FFFFFF; margin-bottom: 2px; }
.discord-field-val { font-size: 0.85rem; color: #DBDEE1; }

.discord-card-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #181A20, #232734);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
}

.discord-card-preview img {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 2px solid #7DD3FC;
}

.discord-embed-footer {
  font-size: 0.75rem;
  color: #949BA4;
  margin-top: 8px;
}

.discord-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.discord-btn {
  background: #4E5058;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* --- Command Search & List --- */
.cmd-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.cmd-search-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
}

.cmd-search {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cmd-search:focus {
  border-color: rgba(139, 123, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.16);
}

.cmd-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cmd-tab {
  background: var(--bg-elev);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-tab:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.18); }
.cmd-tab.active {
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  color: #FFFFFF;
  border-color: transparent;
}

.cmd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.18s ease;
}

.cmd-item:hover { border-color: rgba(139, 123, 255, 0.45); }

.cmd-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  color: #C7E8FF;
  margin-bottom: 3px;
}

.cmd-desc { font-size: 0.86rem; color: var(--text-muted); }

.copy-btn {
  flex-shrink: 0;
  background: var(--bg-elev);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.16s ease;
}

.copy-btn:hover { border-color: var(--border-glow); color: #FFFFFF; }
.copy-btn.copied {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

/* --- Legal Pages --- */
.legal-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 58px 22px 84px;
}

.legal-header {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.6vw, 2.55rem);
  letter-spacing: -0.025em;
}

.legal-meta { color: var(--text-muted); font-size: 0.9rem; }

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}

.legal-card h2 { margin: 0 0 10px; font-size: 1.16rem; color: #FFFFFF; }
.legal-card p, .legal-card li { color: var(--text-soft); font-size: 0.95rem; }
.legal-card ul { margin: 8px 0 0; padding-left: 20px; }
.legal-card li { margin-bottom: 6px; }

/* --- Footer --- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.94);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand small { display: block; color: var(--text-muted); font-size: 0.84rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: #FFFFFF; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .classes-interactive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmd-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero {
    min-height: 540px;
    padding: 54px 0 46px;
    background-image:
      linear-gradient(180deg, rgba(7, 9, 14, 0.72) 0%, rgba(7, 9, 14, 0.84) 55%, #07090E 100%),
      url("assets/hero-banner.jpg");
    background-position: center, 72% center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(7, 9, 14, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 22px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .nav-invite { display: none; }
  .grid-3, .grid-2, .discord-fields { grid-template-columns: 1fr; }
}
