/* Tab section fade animation */
.tab-section {
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.tab-section[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #09090b;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
  background-attachment: fixed;
}

/* ============================================
   Navbar — Glassmorphic (Fixed, Single Row)
   ============================================ */
.navbar {
  width: 100%;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;               /* breathing room between logo & links */
  padding: 0 40px;
  height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* NO overflow:hidden — was clipping elements */
  flex-wrap: nowrap;
}

/* Cursor-following glow */
.navbar-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 140, 59, 0.12) 0%,
    rgba(255, 78, 80, 0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;        /* logo never shrinks */
  position: relative;
  z-index: 1;
  min-width: fit-content; /* always reserve space for logo */
}
.navbar-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.navbar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.navbar-logo-icon::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,140,59,0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}
.navbar-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffb87a, #ff8c3b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Links (right side) */
.navbar-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;          /* NEVER wrap */
  flex-shrink: 0;             /* links group also shouldn't shrink */
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.navbar-links a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  padding: 7px 12px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.navbar-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.navbar-links a svg {
  opacity: 0.5;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}
.navbar-links a:hover svg {
  opacity: 1;
}
.navbar-login {
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff8c3b 0%, #ff6b5a 100%) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(255, 107, 90, 0.25);
  padding: 7px 18px !important;
}
.navbar-login:hover {
  background: linear-gradient(135deg, #ff6b5a 0%, #ff8c3b 100%) !important;
  box-shadow: 0 4px 20px rgba(255, 107, 90, 0.35) !important;
  transform: translateY(-1px);
}
.navbar-home {
  display: flex;
  align-items: center;
}

/* Main content wrapper */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  /* top padding = navbar height + extra breathing room */
  padding: 92px 24px 64px 24px;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}
.hero-content {
  text-align: center;
  padding: 48px 40px 44px 40px;
  border-radius: 28px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
  position: relative;
  overflow: hidden;
  animation: glassCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 59, 0.5), rgba(255, 140, 59, 0.6), rgba(255, 78, 80, 0.5), transparent);
  border-radius: 0 0 4px 4px;
}
/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: clamp(0.68rem, 1.6vw, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #ff8c3b;
  background: rgba(255, 140, 59, 0.06);
  border: 1px solid rgba(255, 140, 59, 0.12);
  margin-bottom: 20px;
  animation: glassCardIn 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffb87a 0%, #ff8c3b 40%, #ff6b5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  animation: glassCardIn 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-desc {
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  color: #8a919a;
  margin-bottom: 32px;
  line-height: 1.7;
  animation: glassCardIn 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: glassCardIn 0.7s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-btn {
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  padding: 13px 32px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8c3b 0%, #ff6b5a 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 90, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.hero-btn:hover,
.hero-btn:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(255, 107, 90, 0.3),
    0 0 30px rgba(255, 140, 59, 0.1);
}
/* Secondary button — glass style */
.hero-btn-secondary {
  font-family: inherit;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  padding: 13px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: #d4d8de;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-2px);
}
#session-message {
  margin-top: 18px;
  color: #ff6b5a;
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.5px;
  min-height: 24px;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  margin: -3px auto 0 auto;
  max-width: 1000px;
  padding: 0px 24px 48px 24px;
  text-align: center;
  border-radius: 24px;
}
.features h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
  color: #ff8c3b;
}
.features-subtitle {
  color: #8a919a;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  margin-bottom: 36px;
}
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Glassmorphic Feature Card */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 24px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: glassCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes glassCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top accent glow line */
.feature-accent {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent, #ff8c3b);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px var(--accent, #ff8c3b), 0 0 30px rgba(255, 140, 59, 0.15);
  transition: all 0.35s ease;
}

/* Icon circle */
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent, #ff8c3b);
  transition: all 0.35s ease;
  position: relative;
}

.feature-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, #ff8c3b), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

/* Category tag */
.feature-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: clamp(0.65rem, 1.5vw, 0.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent, #ff8c3b);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.glass-card h3 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
}
.glass-card p {
  color: #8a919a;
  font-size: clamp(0.83rem, 1.8vw, 0.9rem);
  line-height: 1.6;
}

/* Hover — lift, glow, tilt */
.glass-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 50px -10px var(--accent);
}

.glass-card:hover .feature-accent {
  width: 100px;
  box-shadow: 0 0 20px var(--accent, #ff8c3b), 0 0 50px rgba(255, 140, 59, 0.2);
}

.glass-card:hover .feature-icon-wrap {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.06);
}

.glass-card:hover .feature-icon-wrap::before {
  opacity: 1;
}

/* ============================================
   Docs Section
   ============================================ */
.docs {
  margin: -3px auto 0 auto;
  max-width: 1000px;
  padding: 0px 24px 32px 24px;
  text-align: center;
  border-radius: 24px;
}
.docs h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
  color: #ff8c3b;
}
.docs-subtitle {
  color: #8a919a;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  margin-bottom: 32px;
}

/* Architecture Cards */
.docs-architecture {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.docs-server-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 16px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: glassCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}
.docs-server-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent, #ff8c3b);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--accent, #ff8c3b), 0 0 25px rgba(255, 140, 59, 0.1);
  transition: width 0.35s ease;
}
.docs-server-card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 50px -10px var(--accent);
}
.docs-server-card:hover::before {
  width: 80px;
}
.docs-server-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  transition: all 0.35s ease;
}
.docs-server-card:hover .docs-server-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.06);
}
.docs-server-card h3 {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}
.docs-port {
  display: inline-block;
  background: rgba(255, 140, 59, 0.08);
  color: #ff8c3b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 140, 59, 0.15);
  word-break: break-all;
}
.docs-server-card p {
  color: #8a919a;
  font-size: clamp(0.8rem, 1.8vw, 0.88rem);
  line-height: 1.5;
}

/* OAuth Flow Card */
.docs-flow-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: glassCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}
.docs-flow-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 40px -10px #ff8c3b;
}
.docs-flow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff8c3b, #ff4e50);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px rgba(255, 140, 59, 0.4);
}
.docs-flow-card h3 {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}
.docs-flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.docs-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  color: #d4d8de;
  transition: all 0.2s ease;
}
.docs-flow-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.flow-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c3b, #ff4e50);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-flow-arrow {
  color: #ff8c3b;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.6;
}

/* External Link */
.docs-ext-link {
  display: inline-flex;
  align-items: center;
  color: #ff8c3b;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 59, 0.15);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}
.docs-ext-link:hover {
  background: rgba(255, 140, 59, 0.08);
  border-color: rgba(255, 140, 59, 0.3);
  color: #ff4e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 140, 59, 0.1);
}

/* ============================================
   About Section
   ============================================ */
.about {
  margin: -3px auto 0 auto;
  max-width: 1000px;
  padding: 0px 24px 48px 24px;
  text-align: center;
  border-radius: 24px;
}
.about h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
  color: #ff8c3b;
}
.about-subtitle {
  color: #8a919a;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* About Highlight Cards */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.about-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: glassCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent, #ff8c3b);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--accent, #ff8c3b), 0 0 25px rgba(255, 140, 59, 0.1);
  transition: width 0.35s ease;
}
.about-card:hover {
  transform: translateY(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 50px -10px var(--accent);
}
.about-card:hover::before {
  width: 80px;
}
.about-card-icon {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  display: block;
  margin-bottom: 14px;
}
.about-card h3 {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}
.about-card p {
  color: #8a919a;
  font-size: clamp(0.8rem, 1.8vw, 0.88rem);
  line-height: 1.5;
}

/* About CTA */
.about-cta {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: glassCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}
.about-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ff8c3b, #ff4e50);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px rgba(255, 140, 59, 0.4);
}
.about-cta p {
  color: #8a919a;
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  margin-bottom: 16px;
}
.about-cta strong {
  color: #fff;
}
.about-github-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #ff8c3b 0%, #ff4e50 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  padding: 12px 28px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 76, 80, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-github-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 28px rgba(255, 76, 80, 0.35),
    0 0 30px rgba(255, 140, 59, 0.1);
}

/* ============================================
   Footer — Clean & Elegant
   ============================================ */
.footer {
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: 40px;
  flex-shrink: 0;
  padding: 20px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;   /* match ambient glow background */
}

/* Thin wrapper — full width, no max-width restriction */
.footer-inner {
  width: 100%;
}

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

.footer-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.footer-control-btn {
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.footer-control-btn:hover {
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
}

.footer-control-btn svg {
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.footer-control-btn:hover svg {
  opacity: 0.8;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.footer-copyright {
  font-size: 0.88rem;
  color: #4b5563;
  letter-spacing: 0.3px;
}

.footer-author {
  font-size: 0.92rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-author strong {
  color: #6b7280;
  font-weight: 600;
}

.footer-heart {
  font-size: 0.78rem;
  animation: heartbeat 1.8s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

#sound-status {
  text-transform: lowercase;
  font-weight: 600;
}

/* ============================================
   Glowing circuit effect
   ============================================ */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px) saturate(2);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: pulse 8s ease-in-out infinite alternate;
}
.glow-bg .glow1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff4e50 0%, transparent 70%);
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}
.glow-bg .glow2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff8c3b 0%, transparent 70%);
  bottom: 5%;
  right: 5%;
  animation-delay: 2.5s;
}
@keyframes pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* ============================================
   Toast Notifications — Glassmorphic
   ============================================ */
#toast-container {
  position: fixed;
  top: 82px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.toast-notification {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 300px;
  max-width: 400px;
  padding: 14px 16px 18px 16px;
  border-radius: 16px;
  background: rgba(30, 34, 44, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-success .toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: clamp(0.85rem, 2vw, 0.92rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.toast-message {
  font-size: clamp(0.75rem, 1.8vw, 0.8rem);
  color: #8a919a;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #555;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-top: -2px;
}

.toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Progress bar at bottom */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  border-radius: 0 0 16px 16px;
  animation: toastProgress 7s linear forwards;
}

.toast-success .toast-progress-bar {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.toast-warning .toast-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toast-info .toast-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.toast-info .toast-progress-bar {
  background: linear-gradient(90deg, #818cf8, #6366f1);
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ============================================
   RESPONSIVE — Large Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 28px;
  }
  .main-content {
    padding: 88px 20px 52px 20px;
  }
  .features-list {
    gap: 18px;
  }
  .docs-architecture,
  .about-highlights {
    gap: 16px;
  }
}

/* ============================================
   RESPONSIVE — Tablet (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 60px;
  }
  .navbar-title {
    font-size: 1.05rem;
  }
  .navbar-links {
    gap: 2px;
  }
  .navbar-links a {
    padding: 6px 9px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .navbar-links a svg {
    width: 14px;
    height: 14px;
  }
  .main-content {
    padding: 80px 16px 48px 16px;
  }
  .hero {
    min-height: 50vh;
    margin-bottom: 32px;
  }
  .hero-content {
    padding: 36px 24px 32px 24px;
  }
  .features,
  .docs,
  .about {
    padding: 0 16px 36px 16px;
  }
  .docs-architecture,
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .docs-flow-steps {
    flex-direction: column;
  }
  .docs-flow-arrow {
    transform: rotate(90deg);
  }
  .footer {
    padding: 20px 16px;
    margin-top: 28px;
  }
  .footer-info {
    align-items: flex-end;
  }
}

/* ============================================
   RESPONSIVE — Large Mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .navbar {
    padding: 0 12px;
    height: 58px;
  }
  .navbar-logo-icon {
    width: 32px;
    height: 32px;
  }
  .navbar-title {
    font-size: 0.95rem;
  }
  /* On small mobile: icon-only nav links, slightly tighter */
  .navbar-links a:not(.navbar-login) {
    padding: 6px 8px;
    font-size: 0;       /* hide text */
    gap: 0;
  }
  .navbar-links a:not(.navbar-login) svg {
    opacity: 0.7;
    width: 16px;
    height: 16px;
  }
  .navbar-login {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }
  .main-content {
    padding: 76px 14px 40px 14px;
  }
  .hero {
    min-height: auto;
    margin-bottom: 24px;
  }
  .hero-content {
    padding: 28px 18px 24px 18px;
    border-radius: 20px;
  }
  .hero-btn, .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .features,
  .docs,
  .about {
    padding: 0 12px 28px 12px;
  }
  .features-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .glass-card {
    padding: 24px 18px 20px 18px;
  }
  .docs-architecture {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .footer {
    padding: 16px 12px;
  }
  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .footer-info {
    align-items: flex-end;
  }
  /* Toast — full width on small mobile */
  #toast-container {
    top: 68px;
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }
  .toast-notification {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile (≤ 390px)
   ============================================ */
@media (max-width: 390px) {
  .navbar {
    padding: 0 10px;
    height: 56px;
  }
  .navbar-logo-icon {
    width: 30px;
    height: 30px;
  }
  .navbar-title {
    font-size: 0.88rem;
  }
  .navbar-login {
    font-size: 0.75rem !important;
    padding: 5px 11px !important;
  }
  .main-content {
    padding: 72px 12px 32px 12px;
  }
  .hero-content {
    padding: 24px 14px 20px 14px;
    border-radius: 16px;
  }
}

/* ============================================
   RESPONSIVE — Extra Small Mobile (≤ 380px)
   Navbar: hide title text so Login fits; Footer: centre
   ============================================ */
@media (max-width: 380px) {
  /* Hide "Modern Auth" text — logo icon alone is enough at this size */
  .navbar-title {
    display: none;
  }
  /* Tighten navbar padding to maximise space */
  .navbar {
    padding: 0 10px;
    gap: 8px;
  }
  /* Shrink non-login icons further */
  .navbar-links a:not(.navbar-login) {
    padding: 5px 6px;
  }
  /* Keep Login button readable but compact */
  .navbar-login {
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
  }

  /* Footer: stack and centre */
  .footer {
    padding: 20px 16px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .footer-controls {
    justify-content: center;
  }
  .footer-info {
    align-items: center;
  }
  .footer-author,
  .footer-copyright {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — 425px device (≤ 430px, > 380px)
   1. Profile button: icon-only so it doesn't overflow
   2. Footer: stack + centre like 375px
   ============================================ */
@media (max-width: 430px) {
  /* When logged in, .navbar-login becomes "Profile" with SVG + text.
     Hide the text node, keep only the icon — same icon-only pattern
     as all other nav items at this size. */
  .navbar-login {
    font-size: 0 !important;        /* hides "Profile" / "Login" text */
    padding: 7px 9px !important;
    gap: 0 !important;
  }
  .navbar-login svg {
    opacity: 1;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0 !important;
    display: inline-block;
  }

  /* Footer: stack and centre at 425px — matches 375px look */
  .footer {
    padding: 20px 16px;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .footer-controls {
    justify-content: center;
  }
  .footer-info {
    align-items: center;
  }
  .footer-author,
  .footer-copyright {
    justify-content: center;
    text-align: center;
  }
}
