/* Wanatux Labs - Main Stylesheet */

:root {
  --bg: #020617;
  --accent: #06b6d4;
  --accent-soft: rgba(6,182,212,0.16);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --fg: var(--text);
  --text-muted: var(--muted);
  --surface: rgba(15, 23, 42, 0.92);
  --surface2: rgba(9, 13, 24, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-soft: 0 22px 60px rgba(15,23,42,0.85);
  --max-width: 1120px;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background: #020617 radial-gradient(circle at top, #0b1120 0%, #020617 52%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Code & Monospace */
code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: rgba(6, 182, 212, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Layout */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  /* horizontal-only — must not clobber vertical padding of elements that
     also use .wrap (e.g. .site-header-inner) */
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(15,23,42,.9);
  background: linear-gradient(to bottom, rgba(15,23,42,.9), rgba(15,23,42,.3));
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 40;
  /* keep the brand clear of the very top edge / phone notch */
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

/* Prominent logo mark featured in the hero (header stays text-only) */
.hero-logo {
  width: 150px;
  max-width: 62%;
  height: auto;
  display: block;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.40))
         drop-shadow(0 0 46px rgba(6, 182, 212, 0.15));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-text-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand-text-sub {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.nav-links a {
  color: var(--muted);
}

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

.nav-links a[aria-current="page"] {
  color: var(--text);
  position: relative;
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Mobile menu button (hamburger) — hidden on desktop, shown ≤900px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scroll-Following Logo */
.scroll-logo {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.3) translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-logo.pinned {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.scroll-logo img {
  width: 50px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4))
         drop-shadow(0 0 30px rgba(6, 182, 212, 0.15));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.scroll-logo:hover img {
  filter: drop-shadow(0 0 18px rgba(6, 182, 212, 0.6))
         drop-shadow(0 0 40px rgba(6, 182, 212, 0.25));
  transform: scale(1.1);
}

/* Logo Masthead */
.logo-masthead {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.masthead-logo {
  width: 120px;
  max-width: 80%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3))
         drop-shadow(0 0 40px rgba(6, 182, 212, 0.12));
  animation: logoFloat 4s ease-in-out infinite, logoFadeIn 1s ease-out;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.masthead-logo:hover {
  filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.6))
         drop-shadow(0 0 80px rgba(6, 182, 212, 0.25));
  transform: scale(1.03);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* All content sits above scroll logo */
main, .site-footer {
  position: relative;
  z-index: 2;
}

/* Main Content */
main {
  flex: 1;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero-kicker {
  font-size: .8rem;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: .75rem;
}

.page-hero-sub {
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.7;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,4fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: .98rem;
  color: var(--muted);
  max-width: 33rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  border-radius: var(--radius-full);
  padding: .7rem 1.45rem;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.btn-primary {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 18px 40px rgba(8,47,73,.7);
}

.btn-primary:hover {
  background: #22d3ee;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148,163,184,.6);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Hero Meta */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .8rem;
  color: var(--muted);
}

.hero-meta dt {
  text-transform: uppercase;
  letter-spacing: .16em;
  margin-bottom: .15rem;
}

.hero-meta dd {
  font-size: .9rem;
}

/* Hero Card */
.hero-card {
  background: radial-gradient(circle at top left, rgba(6,182,212,.2), rgba(15,23,42,.92));
  border-radius: 1.7rem;
  border: 1px solid rgba(15,23,42,.9);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(6,182,212,.12), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(239,68,68,.15), transparent 55%);
  opacity: .8;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-card-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .75rem;
}

.hero-card-metric {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .4rem;
}

.hero-card-body {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .75rem;
}

.hero-chip {
  border-radius: var(--radius-full);
  border: 1px solid rgba(148,163,184,.6);
  padding: .2rem .75rem;
  background: rgba(15,23,42,.85);
  color: var(--muted);
}

/* Sections */
section {
  padding: 2.75rem 0 2.5rem;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .4rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: .35rem;
}

.section-sub {
  font-size: .92rem;
  color: var(--muted);
  max-width: 34rem;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.4rem;
}

/* Cards */
.card {
  background: radial-gradient(circle at top left, rgba(15,23,42,.98), rgba(2,6,23,1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,.95);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 12px 40px rgba(15,23,42,.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 55%);
  opacity: .5;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1rem;
  margin-bottom: .3rem;
}

.card-sub {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: .7rem;
}

.card-body {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}

/* Links inside body copy: bigger touch target, and underlined so they are not
   distinguished by colour alone. */
.card-body a,
.footer-right a {
  padding-block: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* Stack List */
.stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.stack-pill {
  font-size: .78rem;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148,163,184,.6);
  background: rgba(15,23,42,.9);
  color: var(--muted);
}

/* Ecosystem */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.3rem;
}

.ecosystem-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30,64,175,.7);
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(8,47,73,.85));
  padding: 1.3rem 1.2rem;
  box-shadow: 0 18px 55px rgba(15,23,42,.9);
}

.ecosystem-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: .25rem;
}

.ecosystem-name {
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.ecosystem-body {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .6rem;
}

.ecosystem-link {
  font-size: .82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.1rem;
}

/* Jaguar-specific styles */
.visual-break {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
  margin: 3.5rem 0;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(139, 92, 246, 0.05);
  border-left: 2px solid rgba(139, 92, 246, 0.4);
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 4px;
}

.architecture-diagram {
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.architecture-diagram svg {
  width: 100%;
  height: auto;
}

/* FAQ Section */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15,23,42,.85);
  padding: 1.5rem 0 2rem;
  font-size: .8rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-divider {
  width: 1px;
  height: 12px;
  background: rgba(55,65,81,.9);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .grid-3,
  .grid-2,
  .ecosystem-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .site-header-inner {
    gap: .75rem;
    /* mobile gets extra top room (stacks with safe-area inset on notched phones) */
    padding-top: 1.8rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 75vh;
  }
  .nav-links a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
  }
  .hero {
    padding-top: 2.8rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .wrap {
    padding-inline: 1.1rem;
  }
}
