/* ══════════════════════════════
   WEBSTAKE — Shared Styles
   Source of truth: index.html
══════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #060C18;
  --bg2: #0A1224;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.15);
  --text: #94A3B8;
  --heading: #F1F5F9;
  --muted: #4B5563;
  --cyan: #22D3EE;
  --indigo: #818CF8;
  --grad: linear-gradient(135deg, #22D3EE 0%, #818CF8 100%);
}

[data-theme="light"] {
  --bg: #F8FAFC;
  --bg2: #F1F5F9;
  --card: rgba(0, 0, 0, 0.03);
  --border: rgba(0, 0, 0, 0.08);
  --text: #475569;
  --heading: #0F172A;
  --muted: #94A3B8;
  --cyan: #0891B2;
  --indigo: #6366F1;
  --grad: linear-gradient(135deg, #0891B2 0%, #6366F1 100%);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(34, 211, 238, .2); }
.btn-outline { background: transparent; color: var(--heading); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-cyan { background: var(--cyan); color: #060C18; }
.btn-cyan:hover { opacity: .88; transform: translateY(-1px); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { opacity: .88; transform: translateY(-1px); }

/* ── Gradient text ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section labels ── */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.7;
}

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  background: rgba(6, 12, 24, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
[data-theme="light"] nav { background: rgba(248, 250, 252, .88); }

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-dark { display: none; }
[data-theme="light"] .logo-light { display: none; }
[data-theme="light"] .logo-dark { display: inline; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a.active { color: var(--cyan); }

/* ── Dropdown ── */
.has-dropdown { position: relative; }
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
  display: none;
}
.has-dropdown:hover::after { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 0;
  min-width: 240px;
  background: rgba(6, 12, 24, .95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  list-style: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
  z-index: 300;
}
[data-theme="light"] .dropdown {
  background: rgba(248, 250, 252, .95);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .08);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: all .15s;
}
.dropdown li a:hover { color: var(--cyan); background: rgba(34, 211, 238, .06); }

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

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--heading);
}
.burger svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.lang-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active { background: var(--grad); color: #fff; }
.theme-btn { border-left: 1px solid var(--border); }
.theme-btn:hover { color: var(--cyan); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--heading);
  margin-bottom: 16px;
}
.f-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-links a { font-size: 14px; color: var(--text); transition: color .2s; }
.f-links a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade.show { opacity: 1; transform: translateY(0); }
.fade:nth-child(2) { transition-delay: .1s; }
.fade:nth-child(3) { transition-delay: .2s; }
.fade:nth-child(4) { transition-delay: .3s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .burger { display: block; }

  /* Hide CTA button and theme toggle from header bar on mobile */
  .nav-right .btn { display: none; }
  .theme-btn { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    margin-right: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); text-align: center; }
  .nav-links li:last-child a { border-bottom: none; }

  .dropdown {
    position: static; transform: none; min-width: 0; margin-top: 0;
    padding: 0; background: none; backdrop-filter: none;
    border: none; border-radius: 0; box-shadow: none;
  }
  .has-dropdown .dropdown { display: block; }
  .has-dropdown::after { display: none !important; }
  .dropdown li a { padding: 10px 0; text-align: center; border-bottom: 1px solid var(--border); font-size: 13px; }
  .dropdown li:first-child { display: none; }
  [data-theme="light"] .dropdown { background: none; box-shadow: none; }
  [data-theme="light"] .nav-links { background: var(--bg); }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
