/* ============================================= CSS CUSTOM PROPERTIES (Design Tokens) ============================================= */
:root {
  /* Colors */
  --color-bg: #000000;
  --color-bg-surface: #0a0c10;
  --color-bg-card: #0e1117;
  --color-bg-input: #111520;
  --color-bg-input-focus: #141824;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-focus: rgba(100, 160, 255, 0.35);
  --color-border-active: rgba(77, 131, 255, 0.6);

  --color-primary: #4d83ff;
  --color-primary-light: #7aa6ff;
  --color-primary-glow: rgba(77, 131, 255, 0.18);
  --color-accent: #00e5ff;
  --color-accent-glow: rgba(0, 229, 255, 0.12);

  --color-text: #e8eaf0;
  --color-text-muted: #7a8299;
  --color-text-dim: #4a5068;
  --color-white: #ffffff;

  --color-success: #22c55e;
  --color-success-bg: rgba(34, 197, 94, 0.1);
  --color-danger: #ef4444;
  --color-warning: #f59e0b;

  --color-sub-text: #9da2b3;

  /* blue-shade-text */
  --primary-rgb: 122, 166, 255;

  /* Typography */
  /* --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif; */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --heading-size: 50px;
  --card-heading-size: 30px;
  --sub-heading-size: 20px;
  --normal-size: 18px;
  --caption-size: 16px;
  --caption-small-size: 14px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-input: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow-blue: 0 0 24px rgba(77, 131, 255, 0.25);
  --shadow-glow-cyan: 0 0 24px rgba(0, 229, 255, 0.15);

  --bg: #090d18;
  --bg-card: #0f1520;
  --bg-card-h: #131d2e;
  --bg-pro: #111e35;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(99, 179, 237, 0.20);
  --accent: #3b82f6;
  --accent-lt: #0061ff;
  --text: #e2eaf8;
  --muted: #6b82a8;
  --check: #3b82f6;
  --gold: #f59e0b;
  --tr: 0.2s ease;
}

/* =============================================
           RESET & BASE
        ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(37, 99, 235, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(61, 184, 245, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body>* {
  position: relative;
  z-index: 1;
}

/* HEADER / NAVBAR */
.site-header {
  position: relative;
  top: 0;
  z-index: 1000;
  background: transparent;
  padding: 14px 24px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  background: rgba(18, 22, 34, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  padding: 0 18px 0 14px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: #c0392b;
  filter: drop-shadow(0 0 6px rgba(192, 57, 43, 0.55));
}

.logo-mark svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-white);
  letter-spacing: 0px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  padding: 0;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.lang-btn .lang-label-text,
.lang-btn .chevron {
  display: none;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 180px;
  background: #13161f;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  animation: dropIn 0.18s ease;
}

.lang-menu a,
.lang-menu a:hover {
  text-decoration: none;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-menu-item.active {
  color: var(--color-primary);
}

.lang-flag {
  font-size: 16px;
}


/* =============================================
           FOOTER
        ============================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-sub-text);
  letter-spacing: 0.06em;
}

.footer-brand a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-note {
  font-size: var(--caption-size);
  color: var(--color-sub-text);
  margin-bottom: 0.3rem;
}