/* LibNative Tech — shared site styles */

:root {
  --bg: #050912;
  --panel: #0D1630;
  --panel-2: #0A1226;
  --border: rgba(110, 160, 255, 0.16);
  --fg: #F4F6FB;
  --muted: #8A93AC;
  --accent: #2E86FF;
  --accent-light: #7EC1FF;
  --accent-glow: rgba(46, 134, 255, 0.35);
  --whatsapp: #25D366;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

h1, h2, h3, .brand-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

img, svg { display: block; }

/* background circuit texture */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 12% 8%, var(--accent-glow), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(46,134,255,0.18), transparent 30%);
  pointer-events: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--accent), #1A4FBF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 0 22px var(--accent-glow);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  color: var(--fg);
  white-space: nowrap;
}
.brand-name .accent { color: var(--accent-light); }

nav.main {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
nav.main a:hover, nav.main a.active { color: var(--fg); }
nav.main a.active { color: var(--accent-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #1E6FE0; }
.btn-whatsapp { background: var(--whatsapp); color: #04220f; }
.btn-whatsapp:hover { background: #21bd5b; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--accent); }

@media (max-width: 760px) {
  nav.main { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.8rem;
  color: var(--muted);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  max-width: 780px;
}
.hero h1 .accent {
  color: var(--accent-light);
  display: block;
}

.hero p.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 24px 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--muted);
  max-width: 460px;
  margin: 10px 0 0;
}

.eyebrow {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 10px;
}

/* ---------- cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

a.card,
a.card:hover,
a.card:visited,
a.card:focus {
  text-decoration: none;
  color: inherit;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(46,134,255,0.12);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-light);
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(46,134,255,0.1);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- trust / stats strip ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 28px 32px;
  justify-content: space-between;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.strip-item .check {
  color: var(--accent-light);
  flex-shrink: 0;
}

/* ---------- verification note ---------- */
.verify-note {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px;
}
.verify-note .icon {
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.verify-note h3 { font-size: 1rem; margin-bottom: 6px; }
.verify-note p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: linear-gradient(135deg, #0E1B3C, #0A1226);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-panel h2 { font-size: 1.8rem; max-width: 420px; }
.cta-panel p { color: var(--muted); margin: 10px 0 0; max-width: 420px; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer.site nav {
  display: flex;
  gap: 20px;
}
footer.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
footer.site nav a:hover { color: var(--fg); }

/* ---------- page header (about/services/contact) ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.page-hero p { color: var(--muted); max-width: 600px; margin-top: 14px; }

/* ---------- two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.stat-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.stat-block .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-light);
}
.stat-block .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---------- contact form ---------- */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.92rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.contact-side .card { margin-bottom: 16px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-line .icon-round {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(46,134,255,0.12);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

/* ---------- Header Actions & Dropdown Menu ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 134, 255, 0.12);
  border: 1px solid var(--border);
  color: var(--accent-light);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.balance-pill:hover {
  background: rgba(46, 134, 255, 0.22);
  border-color: var(--accent);
}

.user-menu-container {
  position: relative;
  display: inline-block;
}

.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.user-avatar-btn:hover {
  border-color: var(--accent);
  background: rgba(46, 134, 255, 0.1);
}

/* Reference-Matching Dropdown Card */
.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid #e2e8f0;
  z-index: 100;
  overflow: hidden;
  animation: fadeInDown 0.18s ease-out;
}

.account-dropdown.active {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 20px 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-title {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

.dropdown-links {
  padding: 6px 0 8px;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dropdown-item svg {
  stroke: #64748b;
  transition: stroke 0.15s ease;
}

.dropdown-item:hover svg {
  stroke: #0f172a;
}

.dropdown-item.text-danger:hover {
  background: #fff1f2;
  color: #e11d48;
}

.dropdown-item.text-danger:hover svg {
  stroke: #e11d48;
}

/* =========================================================
   COMPREHENSIVE RESPONSIVE HEADER & MOBILE FIT FIX
   ========================================================= */

/* Ensure the header container never overflows and distributes evenly */
.site-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

/* Ensure the action buttons (Balance, Cart, User) stay visible and in a line */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

/* On mobile phones (tablets & below 600px): compact items so everything fits */
@media screen and (max-width: 600px) {
  /* Shorten or size brand title so action icons never get squeezed out */
  .brand-name {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }
  
  /* On very narrow phones (iPhone SE, smaller Androids), hide the long text and keep the LNT logo */
  @media screen and (max-width: 390px) {
    .brand-name {
      display: none !important;
    }
  }

  /* Compact balance & cart buttons on mobile */
  .balance-pill, 
  [class*="balance"],
  .header-actions a, 
  .header-actions button {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
  }

  /* Ensure user icon and menu button stay firmly visible */
  .menu-toggle-btn,
  .header-actions a[href*="account"],
  .header-actions .user-btn,
  .header-actions svg {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Keep all content cards snug to the phone edges with neat margins */
  .container, 
  main, 
  section,
  [class*="card"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}