/* ═══════════════════════════════════════════════════════════════════════════
   edexplore.app, Main stylesheet
   Style: Gradient Studio (Mockup 3), dark + indigo/purple glow
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:           #09090B;
  --surface:      rgba(255,255,255,0.04);
  --surface-mid:  rgba(255,255,255,0.06);
  --surface-hi:   rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.12);
  --text:         #FAFAFA;
  --text-soft:    #A1A1AA;
  --text-muted:   #52525B;
  --grad-1:       #6366F1;
  --grad-2:       #8B5CF6;
  --grad-3:       #EC4899;
  --green:        #22C55E;
  --green-dim:    rgba(34,197,94,0.15);
  --amber:        #EAB308;
  --amber-dim:    rgba(234,179,8,0.15);
  --red:          #EF4444;
  --radius:       12px;
  --nav-h:        64px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a   { color: inherit; }
img { display: block; max-width: 100%; }

/* ── BACKGROUND GLOW ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -5%,
    rgba(99,102,241,0.18) 0%,
    transparent 65%);
}

/* ── NAVIGATION ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 1.5rem;
}

.logo {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff 30%, var(--grad-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Fallback for browsers that don't support gradient text */
.logo span {
  background: inherit;
  -webkit-background-clip: inherit;
  -webkit-text-fill-color: var(--grad-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  border: none;
  background: none;
  padding: 4px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: all 0.2s;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-soft);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg);  }
.nav-hamburger.open span:nth-child(2) { opacity: 0;                                }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg);}

/* ── HERO ── */
.hero {
  padding: 110px 5% 90px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 32px;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-gradient {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 24px rgba(99,102,241,0.35);
  transition: opacity 0.2s, box-shadow 0.2s;
  line-height: 1.4;
  font-family: inherit;
}
.btn-gradient:hover {
  opacity: 0.88;
  box-shadow: 0 0 36px rgba(99,102,241,0.55);
}
.btn-gradient:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-glass {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1.4;
  font-family: inherit;
}
.btn-glass:hover {
  background: var(--surface-hi);
  border-color: var(--border-mid);
}

.btn-sm { font-size: 0.8rem; padding: 8px 18px; }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto 80px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-n {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 5px;
}

/* ── SECTIONS ── */
.section {
  padding: 72px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grad-1);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 44px;
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
/* Per-card glow cycles through 4 accent colors */
.project-card:nth-child(4n+1)::before { background: radial-gradient(circle at top left, rgba(99,102,241,0.1), transparent 60%);  }
.project-card:nth-child(4n+2)::before { background: radial-gradient(circle at top left, rgba(34,197,94,0.1),  transparent 60%);  }
.project-card:nth-child(4n+3)::before { background: radial-gradient(circle at top left, rgba(234,179,8,0.1),  transparent 60%);  }
.project-card:nth-child(4n+4)::before { background: radial-gradient(circle at top left, rgba(239,68,68,0.1),  transparent 60%);  }
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.project-card-link { cursor: pointer; }
.project-card:hover::before { opacity: 1; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
/* When the icon is a real image, remove the placeholder border/bg */
.card-icon:has(img) {
  border: none;
  background: transparent;
}
.card-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.badge-live    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.badge-dev     { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(234,179,8,0.3); }
.badge-planned { background: var(--surface-hi); color: var(--text-soft); border: 1px solid var(--border); }
.badge-soon    { background: rgba(139,92,246,0.15); color: #A78BFA; border: 1px solid rgba(139,92,246,0.3); }

.card-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.card-goal {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-tag {
  font-size: 0.7rem;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--text-soft);
  font-weight: 500;
}
.card-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-link {
  font-size: 0.8rem;
  color: var(--grad-1);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}
.card-link:hover { color: var(--grad-2); }

.github-lock-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.github-lock-btn:hover { border-color: var(--grad-1); color: var(--grad-1); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-content h2 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.about-content p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}
.about-links {
  display: flex;
  gap: 10px;
}
.about-link {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grad-1);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.about-link:hover {
  border-color: var(--grad-1);
  background: rgba(99,102,241,0.08);
}

.stack-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-chip {
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s;
}
.stack-chip:hover { border-color: var(--border-mid); }

/* ── AUTH CARD ── */
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Gradient top border */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
}

.lock-emoji { font-size: 2.2rem; margin-bottom: 16px; display: block; }

.auth-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.auth-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 340px;
}

/* Auth step transitions */
.auth-step { width: 100%; }

/* Form fields */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.field-group input,
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field-group input::placeholder,
.auth-input::placeholder { color: var(--text-muted); }
.field-group input:focus,
.auth-input:focus {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.06);
}

.auth-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 12px;
  display: none;
  line-height: 1.5;
}
.auth-error.visible { display: block; }

/* ── OTP INPUTS ── */
.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 16px;
}
.otp-digit {
  width: 50px;
  height: 58px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  caret-color: var(--grad-1);
  font-family: monospace;
}
.otp-digit:focus {
  border-color: rgba(99,102,241,0.7);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.otp-digit.filled {
  border-color: rgba(99,102,241,0.4);
}

.otp-sent-to {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 4px !important;
  margin-top: -12px;
}

.trust-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-soft);
  cursor: pointer;
  margin: 4px 0 20px;
  justify-content: center;
}
.trust-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--grad-1);
  cursor: pointer;
}

.otp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.otp-actions .btn-gradient { width: 100%; }
.btn-text {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--grad-1); }
.btn-text:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── LOADING SPINNER ── */
.auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(99,102,241,0.2);
  border-top-color: var(--grad-1);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.875rem; color: var(--text-soft); }

/* ── RESOURCES LIST (post-auth) ── */
.resources-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin: 8px 0 24px;
}
.resource-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-top: 12px;
  margin-bottom: 2px;
}
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.resource-item:hover {
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.07);
}
.resource-item-left  { display: flex; align-items: center; gap: 10px; }
.resource-icon       { font-size: 1rem; }
.resource-arrow      { color: var(--grad-1); font-size: 0.85rem; }
.no-resources        { color: var(--text-soft); font-size: 0.875rem; text-align: center; padding: 16px 0; }

/* ── WHAT DRIVES US ── */
.drives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.drive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.drive-card:hover {
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.drive-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
  display: block;
}
.drive-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.drive-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── CONTACT ── */
.section-contact { text-align: center; }
.section-contact h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-contact > p { color: var(--text-soft); margin-bottom: 28px; }

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.05);
}
.contact-form textarea { min-height: 120px; }
.contact-status { font-size: 0.85rem; margin-top: 4px; }
.contact-success { color: var(--green); }
.contact-error-msg { color: var(--red); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}
footer a { color: var(--grad-1); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--grad-2); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── SCROLL OFFSET FOR STICKY NAV ── */
#projects, #drives-us, #contact {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ── LOGIN BUTTON IN NAV ── */
.nav-login-btn {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2)) !important;
  color: #fff !important;
  padding: 5px 14px !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  transition: opacity 0.2s !important;
}
.nav-login-btn:hover { opacity: 0.85; color: #fff !important; }
.nav-login-btn.nav-active { box-shadow: 0 0 16px rgba(99,102,241,0.4); }

/* ── LOGIN BUTTON IN NAV ── */
.nav-login-btn {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2)) !important;
  color: #fff !important;
  padding: 5px 14px !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
}
.nav-login-btn:hover { opacity: 0.85; color: #fff !important; }
.nav-login-btn.nav-active { box-shadow: 0 0 16px rgba(99,102,241,0.4); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .drives-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(9,9,11,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 5% 24px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .lang-toggle { margin-top: 12px; }

  .hero { padding: 72px 5% 60px; }
  h1    { font-size: 2.2rem; }

  .auth-card { padding: 36px 24px; }
  .otp-digit { width: 44px; height: 52px; font-size: 1.4rem; }
}

@media (max-width: 540px) {
  .projects-grid  { grid-template-columns: 1fr; }
  .hero-ctas      { flex-direction: column; align-items: center; }
  .otp-inputs     { gap: 6px; }
  .otp-digit      { width: 40px; height: 48px; font-size: 1.25rem; }
  footer          { flex-direction: column; gap: 10px; text-align: center; }
}
