/* ==========================================================================
   Lastbrowser Web Platform - Component Library
   Modular, performant, responsive components
   ========================================================================== */

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--stroke);
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 16px rgba(37, 99, 255, 0.25);
  display: block;
}

.logo strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.logo span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Language Selector --- */
.lang-picker {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(16, 24, 39, 0.6);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--cyan);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

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

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* --- Mobile Menu Drawer --- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nearBlack);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--electricBlue), var(--purple));
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 255, 0.5);
}

.btn-cyan {
  color: #070A12;
  background: var(--cyan);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

.btn-cyan:hover {
  background: #33ebff;
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.45);
}

.btn-ghost {
  background: rgba(16, 24, 39, 0.85);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Badges --- */
.pill-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.badge-purple {
  background: rgba(138, 63, 252, 0.15);
  color: var(--purple);
  border-color: rgba(138, 63, 252, 0.3);
}

.badge-green {
  background: rgba(124, 255, 107, 0.12);
  color: var(--green);
  border-color: rgba(124, 255, 107, 0.3);
}

.badge-yellow {
  background: rgba(255, 200, 0, 0.12);
  color: var(--yellow);
  border-color: rgba(255, 200, 0, 0.3);
}

/* --- Hero --- */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p.lead {
  margin: 0 auto 34px;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sub-cta-note {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--stroke-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 800;
}

.fc-icon.blue { background: rgba(37, 99, 255, 0.15); border: 1px solid rgba(37, 99, 255, 0.3); color: var(--cyan); }
.fc-icon.purple { background: rgba(138, 63, 252, 0.15); border: 1px solid rgba(138, 63, 252, 0.3); color: var(--purple); }
.fc-icon.pink { background: rgba(255, 45, 143, 0.15); border: 1px solid rgba(255, 45, 143, 0.3); color: var(--magenta); }
.fc-icon.green { background: rgba(124, 255, 107, 0.15); border: 1px solid rgba(124, 255, 107, 0.3); color: var(--green); }
.fc-icon.yellow { background: rgba(255, 200, 0, 0.15); border: 1px solid rgba(255, 200, 0, 0.3); color: var(--yellow); }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Screenshot Showcase --- */
.showcase-container {
  margin: 40px auto 0;
  max-width: 1100px;
}

.showcase-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sc-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 24, 39, 0.8);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.sc-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.25), rgba(0, 229, 255, 0.15));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.showcase-window {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(7, 10, 18, 0.98));
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-titlebar {
  height: 42px;
  background: rgba(7, 10, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--stroke);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.omnibox-mock {
  flex: 1;
  max-width: 560px;
  margin: 0 16px;
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.omnibox-shield {
  color: var(--green);
  font-weight: 600;
  font-size: 11px;
}

.showcase-view {
  position: relative;
  background: #05070D;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.showcase-view img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
  cursor: zoom-in;
}

.showcase-view img.fade-out {
  opacity: 0;
}

.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(11, 18, 32, 0.95);
  border-top: 1px solid var(--stroke);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Sticky Floating Download Bar --- */
.floating-bar {
  position: fixed;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(16, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
}

.floating-bar.visible {
  bottom: 24px;
}

.floating-bar .fb-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-bar .fb-info img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.floating-bar .fb-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.floating-bar .fb-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

/* SmartScreen Steps in Modal */
.ss-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(16, 24, 39, 0.6);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
}

.ss-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--electricBlue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Lightbox Modal */
.lightbox-dialog {
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* --- Onboarding Steps --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--electricBlue), var(--purple));
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 255, 0.4);
}

.step-card h4 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
}

/* --- Footer --- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
  background: rgba(7, 10, 18, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.6;
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--cyan);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(42, 53, 80, 0.5);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-contact-highlight {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-weight: 600;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-bar {
    width: calc(100% - 24px);
    justify-content: space-between;
    padding: 10px 16px;
  }
  .floating-bar .fb-text span {
    display: none;
  }
}
