/* =============================================
   QUNALINX — Inner Pages Shared Styles
   With animations, transitions, and polish
   Deploy-ready
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #030303;
  color: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

.mono { font-family: 'JetBrains Mono', monospace; }
::selection { background: rgba(255,255,255,.1); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ======== PAGE LOADER ======== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader-icon {
  animation: pageLoaderPulse 1s ease-in-out infinite;
}
@keyframes pageLoaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.95); }
}

/* ======== SCROLL PROGRESS ======== */
.page-scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.25));
  z-index: 9998; width: 0; transition: width .05s linear;
}

/* ======== MOUSE GLOW ======== */
.page-mouse-glow {
  position: fixed; width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,100,255,.03), transparent 70%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%,-50%);
  opacity: 0; transition: opacity .3s;
  mix-blend-mode: screen;
}
.page-mouse-glow.active { opacity: 1; }

/* ======== BACK TO TOP ======== */
.page-back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.8); backdrop-filter: blur(8px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(10px);
  transition: all .3s; pointer-events: none;
}
.page-back-top.show { opacity: 1; transform: none; pointer-events: all; }
.page-back-top:hover { border-color: #fff; background: #fff; color: #000; }

/* ======== LAYOUT ======== */
.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ======== NAV ======== */
.page-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(0,0,0,.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.page-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; height: 56px; padding: 0 24px;
}
.page-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff;
}
.page-nav-logo svg {
  transition: transform .3s;
}
.page-nav-logo:hover svg {
  transform: rotate(15deg);
}
.page-nav-logo span {
  font-size: 13px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.page-nav-links { display: flex; gap: 24px; }
.page-nav-links a {
  font-size: 11px; font-weight: 500;
  color: #555; text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'JetBrains Mono', monospace;
  transition: color .3s; text-decoration: none;
  position: relative;
}
.page-nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #fff; transition: width .3s;
}
.page-nav-links a:hover { color: #fff; }
.page-nav-links a:hover::after { width: 100%; }
.page-nav-links a.active { color: #fff; }
.page-nav-links a.active::after { width: 100%; }
.page-nav-cta {
  font-size: 10px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 18px; color: #fff;
  text-transform: uppercase; letter-spacing: .12em;
  font-family: 'JetBrains Mono', monospace;
  transition: all .3s;
}
.page-nav-cta:hover { background: #fff; color: #000; }

.nav-hamburger {
  display: none; background: none; border: none;
  width: 24px; height: 18px; position: relative; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1px;
  background: #fff; position: absolute; left: 0; transition: .3s;
}
.nav-hamburger span:nth-child(1) { top: 2px; }
.nav-hamburger span:nth-child(2) { top: 8px; }
.nav-hamburger span:nth-child(3) { bottom: 2px; }
.nav-hamburger.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { bottom: 8px; transform: rotate(-45deg); }

/* ======== PAGE HEADER ======== */
.page-header {
  padding: 140px 24px 60px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.015), transparent 70%);
  transform: translate(-50%,-50%); pointer-events: none;
}
.page-header-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .15em; color: #555;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px;
  opacity: 0; transform: translateY(15px);
  animation: fadeUp .6s ease .3s forwards;
}
.page-header-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.05; margin-bottom: 16px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s ease .5s forwards;
}
.page-header-desc {
  color: #666; font-size: .95rem;
  line-height: 1.7; max-width: 520px;
  margin: 0 auto; font-weight: 300;
  opacity: 0; transform: translateY(15px);
  animation: fadeUp .8s ease .7s forwards;
}

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

/* ======== BREADCRUMB ======== */
.breadcrumb {
  padding: 16px 0;
  font-size: 11px; color: #444;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 0; animation: fadeUp .5s ease .9s forwards;
}
.breadcrumb a { color: #555; transition: color .3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #333; margin: 0 8px; }

/* ======== ANIMATE ON SCROLL ======== */
.anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.anim-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.anim-stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.anim-stagger.visible > *:nth-child(3) { transition-delay: .15s; }
.anim-stagger.visible > *:nth-child(4) { transition-delay: .2s; }
.anim-stagger.visible > *:nth-child(5) { transition-delay: .25s; }
.anim-stagger.visible > *:nth-child(6) { transition-delay: .3s; }
.anim-stagger.visible > *:nth-child(7) { transition-delay: .35s; }
.anim-stagger.visible > *:nth-child(8) { transition-delay: .4s; }
.anim-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ======== CONTENT BODY ======== */
.content-body {
  padding: 60px 0 100px;
}
.content-body h2 {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.03em; margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.content-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-body h3 {
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -.02em; margin: 32px 0 12px; color: #ddd;
}
.content-body p {
  color: #888; font-size: .92rem;
  line-height: 1.8; margin-bottom: 18px; font-weight: 300;
}
.content-body strong { color: #ccc; font-weight: 600; }
.content-body a {
  color: #fff; text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.2);
  transition: text-decoration-color .3s;
}
.content-body a:hover { text-decoration-color: #fff; }
.content-body ul, .content-body ol {
  margin: 0 0 20px 0; padding-left: 0; list-style: none;
}
.content-body ul li, .content-body ol li {
  color: #888; font-size: .92rem;
  line-height: 1.8; padding: 4px 0 4px 20px;
  position: relative; font-weight: 300;
}
.content-body ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.content-body ol { counter-reset: ol-counter; }
.content-body ol li { counter-increment: ol-counter; }
.content-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute; left: 0; color: #555;
  font-weight: 600; font-size: .82rem;
  font-family: 'JetBrains Mono', monospace;
}
.content-body blockquote {
  border-left: 2px solid rgba(255,255,255,.1);
  padding: 16px 0 16px 24px; margin: 24px 0;
  color: #aaa; font-style: italic;
}
.content-body code {
  background: rgba(255,255,255,.06);
  padding: 2px 8px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .84rem; color: #ccc;
}
.content-body pre {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  padding: 20px; margin: 24px 0;
  border-radius: 4px; overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem; color: #aaa; line-height: 1.7;
}
.content-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 40px 0;
}
.content-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.content-body table th {
  text-align: left; padding: 12px 16px;
  font-size: .8rem; font-weight: 600; color: #888;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-transform: uppercase; letter-spacing: .05em;
  font-family: 'JetBrains Mono', monospace;
}
.content-body table td {
  padding: 12px 16px; font-size: .88rem;
  color: #777; border-bottom: 1px solid rgba(255,255,255,.04);
  font-weight: 300;
}
.content-body table tr {
  transition: background .2s;
}
.content-body table tr:hover {
  background: rgba(255,255,255,.02);
}
.content-body .info-box {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px; margin: 24px 0; border-radius: 4px;
}
.content-body .info-box p { margin-bottom: 0; }
.content-body .update-date {
  font-size: .78rem; color: #444;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
}

/* ======== BLOG ======== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; padding: 60px 0 100px;
}
.blog-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  padding: 32px; transition: all .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(25px);
}
.blog-card.visible {
  opacity: 1; transform: translateY(0);
}
.blog-card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,.3);
}
.blog-card-tag {
  font-size: 9px; color: #555;
  text-transform: uppercase; letter-spacing: .12em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.blog-card-title {
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.3;
}
.blog-card-excerpt {
  color: #666; font-size: .84rem;
  line-height: 1.7; font-weight: 300;
  flex: 1; margin-bottom: 16px;
}
.blog-card-meta {
  font-size: 10px; color: #444;
  font-family: 'JetBrains Mono', monospace;
}
.blog-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 500;
  color: #fff; margin-top: 12px; transition: gap .3s;
}
.blog-card-link:hover { gap: 10px; }

/* ======== ABOUT ======== */
.about-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.about-section:last-child { border-bottom: none; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid rgba(255,255,255,.06);
}
.about-stat {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.about-stat:last-child { border-right: none; }
.about-stat:hover { background: rgba(255,255,255,.02); }
.about-stat-value {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.03em; display: block;
}
.about-stat-label {
  font-size: .6rem; color: #555;
  text-transform: uppercase; letter-spacing: .08em;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px; display: block;
}
.about-ill {
  border: 1px solid rgba(255,255,255,.06);
  padding: 40px; text-align: center;
  position: relative; overflow: hidden;
}
.about-ill::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,.02), transparent 70%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.value-card {
  border: 1px solid rgba(255,255,255,.06);
  padding: 28px; transition: all .4s cubic-bezier(.4,0,.2,1);
}
.value-card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.value-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; }
.value-card p { color: #666; font-size: .84rem; line-height: 1.7; font-weight: 300; margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.team-card {
  border: 1px solid rgba(255,255,255,.06);
  padding: 28px; text-align: center;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.team-card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #555;
  transition: background .3s, color .3s;
}
.team-card:hover .team-avatar {
  background: rgba(255,255,255,.1); color: #fff;
}
.team-name { font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.team-role {
  font-size: .7rem; color: #555;
  font-family: 'JetBrains Mono', monospace;
}

/* ======== NEWSLETTER ======== */
.newsletter {
  border: 1px solid rgba(255,255,255,.06);
  padding: 40px; text-align: center; margin: 60px 0;
  transition: border-color .3s;
}
.newsletter:hover { border-color: rgba(255,255,255,.1); }
.newsletter h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.newsletter p { color: #666; font-size: .84rem; margin-bottom: 20px; font-weight: 300; }
.newsletter-form {
  display: flex; gap: 0; max-width: 400px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-right: none; padding: 12px 16px;
  color: #fff; font-size: .86rem;
  font-family: 'Inter'; outline: none;
  transition: border-color .3s;
}
.newsletter-form input:focus { border-color: rgba(255,255,255,.15); }
.newsletter-form input::placeholder { color: #333; }
.newsletter-form button {
  background: #fff; color: #000;
  border: 1px solid #fff; padding: 12px 20px;
  font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; transition: all .3s; font-family: 'Inter';
}
.newsletter-form button:hover { background: transparent; color: #fff; }

/* ======== FOOTER ======== */
.page-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 60px 24px 40px;
}
.page-footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-brand span {
  font-size: 13px; font-weight: 800;
  letter-spacing: .15em;
  font-family: 'JetBrains Mono', monospace;
  display: block; margin-bottom: 8px;
}
.footer-brand p { font-size: 11px; color: #555; line-height: 1.6; }
.footer-col h4 {
  font-size: 10px; color: #555;
  text-transform: uppercase; letter-spacing: .12em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}
.footer-col a {
  display: block; color: #444; font-size: 12px;
  padding: 3px 0; transition: color .25s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom span {
  font-size: 10px; color: #333;
  font-family: 'JetBrains Mono', monospace;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  font-size: 10px; color: #444;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; transition: color .25s;
}
.footer-socials a:hover { color: #fff; }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .page-nav-links { display: none; }
  .page-nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(0,0,0,.95); padding: 20px 24px;
    gap: 12px; border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stat-grid { grid-template-columns: 1fr 1fr; }
  .about-stat { border-bottom: 1px solid rgba(255,255,255,.06); }
  .blog-grid { grid-template-columns: 1fr; }
  .page-header { padding: 120px 24px 40px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,.08); }
  .page-back-top { bottom: 16px; right: 16px; }
}