/* ==========================================================
   ALYSSIUN GLOBAL STYLE — /assets/css/style.css
   ========================================================== */

/* ---------- Root Theme ---------- */
:root {
  --bg: #060913;
  --ink: #E8ECFF;
  --muted: #AEBBFF;
  --accent: #6A5BFF;
  --header-h: 64px;
}

/* ---------- Base Layout ---------- */
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Global padding under fixed header */
body.has-fixed-header { padding-top: var(--header-h); }

/* ---------- Containers ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.text-center { text-align: center; }
.mt-header { margin-top: var(--header-h); }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 12px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(106,91,255,.4);
  line-height: 1.05;
}
h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 10px; }
p { margin: 0; color: var(--muted); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,9,19,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
}
.brand-logo { height: 42px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }

.nav-link, .dropbtn {
  color: #AEBBFF; font-weight: 600; background: none; border: 0; cursor: pointer;
  text-decoration: none; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0;
}
.nav-link:hover, .dropbtn:hover { color: #E8ECFF; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropbtn { position: relative; padding-right: 14px; }
.dropbtn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(1px) rotate(45deg); opacity: .85;
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  transform: translateY(8px);
  min-width: 220px;
  background: #0B0F24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px 0;
  z-index: 1100;
}
.dropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 12px; /* hover corridor */
}
.dropdown-content a {
  display: block; padding: 10px 16px;
  color: #E8ECFF; text-decoration: none;
}
.dropdown-content a:hover { background: rgba(255,255,255,.06); }
@media (hover:hover) and (min-width:881px) {
  .dropdown:hover > .dropdown-content { display: block; }
}
.dropdown-content.show { display: block; }

/* ---------- Mobile Nav ---------- */
.nav-toggle {
  display: none; position: relative; width: 44px; height: 36px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px;
  height: 2px; background: #E8ECFF; border-radius: 2px;
}
.nav-toggle span:nth-child(1){ top:12px; }
.nav-toggle span:nth-child(2){ top:17px; }
.nav-toggle span:nth-child(3){ top:22px; }

@media (max-width:880px){
  .nav-toggle{display:block;}
  .site-nav{
    position:fixed; top:0; right:0; height:100vh; width:78vw; max-width:320px;
    display:flex; flex-direction:column; align-items:flex-start; gap:14px;
    padding:70px 24px 24px;
    background:#0B0F24; border-left:1px solid rgba(255,255,255,.08);
    transform:translateX(100%); opacity:0; pointer-events:none;
    transition:transform .25s ease, opacity .25s ease;
  }
  .site-nav.open{ transform:translateX(0); opacity:1; pointer-events:auto; }
  .nav-link, .dropbtn { width:100%; text-align:left; }
  .dropdown-content { position:static; transform:none; border:none; background:none; padding:6px 0 6px 12px; }
  .nav-close {
    position:absolute; top:16px; right:16px; background:none; border:0;
    color:#E8ECFF; font-size:24px; cursor:pointer; display:block;
  }
}
@media (min-width:881px){ .nav-close { display:none; } }

.body-lock { height:100vh; overflow:hidden; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: #060913;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 20px 120px;
  color: #C9D2FF;
  text-align: center;
}
.site-footer .container { max-width: 900px; margin: 0 auto; }
.footer-brand { margin-bottom: 32px; }
.footer-logo { height: 52px; margin-bottom: 12px; opacity: 0.95; }
.footer-tagline { color: #AEBBFF; font-size: 15px; margin: 0; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0;
}
.footer-links a {
  color: #AEBBFF; text-decoration: none; font-weight: 500; transition: color 0.2s ease;
}
.footer-links a:hover { color: #E8ECFF; }
.footer-bottom { font-size: 13px; color: #7E8BDA; }
.footer-note { margin-top: 4px; font-size: 12.5px; color: #96A3FF; }
@media (max-width: 600px) {
  .footer-links { gap: 12px; }
  .site-footer { padding: 48px 20px 100px; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(69,94,255,0.18), rgba(69,94,255,0.08));
  font-weight: 700; color: #E8ECFF; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.28); }
.btn.primary { background: linear-gradient(180deg, #6A5BFF, #3C2CF0); border-color: transparent; }
.btn.dark { background: #0B0F24; }

/* ==========================================================
   CARDS
   ========================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.muted { color: #AEBBFF; }
