/* ============================================================
   AINODE.TECH — VARIANT 2: "OBSIDIAN"
   Brutalist editorial design
   Dark foundation, massive typography, sharp edges, high contrast
   Zero tracking. Zero cookies.
   ============================================================ */

/* ============================================================
   1. RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — AINode.tech brand palette (Purple → Teal gradient) */
  --black: #0a0e17;
  --black-alt: #111827;
  --white: #f1f5f9;
  --purple: #8b5cf6;           /* Purple — vibrant violet */
  --purple-dark: #7c3aed;
  --teal: #14b8a6;             /* Teal — from logo right side */
  --teal-dark: #0d9488;
  --accent: #14b8a6;           /* Primary accent: Teal (better contrast for buttons) */
  --accent-dark: #0d9488;
  --accent-secondary: #8b5cf6; /* Secondary: Purple (hover, brand elements) */
  --accent-alt: #ef4444;       /* Red — errors/rejected */
  --gray: #1a2332;
  --green: #10b981;            /* Emerald — success/passed */
  --red: #ef4444;              /* Red — failed */
  --text-muted: #94a3b8;

  /* Gradient (matches logo) */
  --gradient-brand: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-xxl: 96px;

  /* Layout */
  --max-width: 1400px;
  --border-width: 3px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Offset for anchor links to account for fixed ticker + navbar */
  scroll-padding-top: calc(32px + 80px + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   2. SCROLLING TICKER
   ============================================================ */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  overflow: hidden;
  z-index: 1000;
  height: 32px;
  display: flex;
  align-items: center;
  border-bottom: var(--border-width) solid var(--black);
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-content span {
  padding: 0 40px;
  display: inline-block;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   3. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  background: var(--black);
  z-index: 999;
  transition: border 0.2s;
}

.navbar.scrolled {
  border-bottom: var(--border-width) solid var(--white);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--white);
  position: relative;
  transition: color 0.2s;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-lang-toggle {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--black);
  background: var(--white);
  padding: 8px 16px;
  border: var(--border-width) solid var(--white);
  transition: all 0.2s;
}

.nav-lang-toggle:hover {
  background: var(--black);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 998;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  overscroll-behavior: none;
  touch-action: none;
}

.mobile-menu a,
.mobile-menu .mobile-lang {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu .mobile-lang:hover {
  color: var(--accent);
}

/* ============================================================
   4. HERO — Split Layout (Title / Animation / Command)
   ============================================================ */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  /* Offset for fixed ticker (32px) + navbar (~80px) on standalone pages */
  padding: calc(32px + 80px + var(--spacing-lg)) var(--spacing-lg) var(--spacing-xl);
  background: var(--black);
  position: relative;
  overflow: hidden;
}

/* Split layout mode */
.hero.hero-split {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  /* Offset for fixed ticker (32px) + navbar (~80px) */
  padding-top: calc(32px + 80px);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 99px,
      rgba(255, 255, 255, 0.03) 99px,
      rgba(255, 255, 255, 0.03) 100px
    );
  pointer-events: none;
  z-index: 0;
}

/* Hero Top: O SEU POTENCIAL */
.hero-top {
  padding: var(--spacing-lg) var(--spacing-lg) 0;
  position: relative;
  z-index: 1;
}

/* Hero Bottom: O SEU COMANDO + subtitle + CTA */
.hero-bottom {
  padding: 0 var(--spacing-lg) var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.hero-title.hero-title-top {
  margin-bottom: 0;
}

.hero-title.hero-title-bottom {
  margin-bottom: var(--spacing-md);
}

.hero-title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
}

/* Hidden by default — shown only in Lab mode */
.hero-products-intro {
  display: none;
}

/* Desktop-only line breaks */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 32px;
  border: var(--border-width) solid var(--white);
  transition: all 0.2s;
  display: inline-block;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--black);
  color: var(--white);
}

/* ============================================================
   5. SECTION DIVIDER
   ============================================================ */
.section-divider {
  width: 100%;
  height: var(--border-width);
  background: var(--white);
  border: none;
  margin: 0;
}

/* ============================================================
   6. SECTIONS
   ============================================================ */
.section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  background: var(--black);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
}

/* ============================================================
   7. PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.product-card {
  background: var(--black);
  border: var(--border-width) solid var(--white);
  padding: 0;
  position: relative;
  transition: all 0.2s;
}

.product-card.card-wide {
  grid-column: span 2;
}

.product-card:hover {
  background: var(--white);
  color: var(--black);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent);
}

.product-card:hover .product-name,
.product-card:hover .product-brand,
.product-card:hover .product-description,
.product-card:hover .product-price {
  color: var(--black);
}

.product-card:hover .audit-badge {
  background: var(--black);
  color: var(--accent);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  border-bottom: var(--border-width) solid var(--white);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Audit badge base */
.audit-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 12px;
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* PASSED — green with score */
.audit-badge.badge-pass {
  background: var(--green);
  color: var(--black);
}

.audit-badge.badge-pass .badge-label::before {
  content: '✓ ';
}

.audit-badge .badge-score {
  font-size: 10px;
  opacity: 0.8;
}

/* FAILED — red with strikethrough */
.audit-badge.badge-fail {
  background: var(--red);
  color: var(--white);
  border-color: var(--white);
}

.audit-badge.badge-fail .badge-label::before {
  content: '✗ ';
}

/* INVESTIGATE / DISCLOSURE — amber, Tier C sellable with disclosure */
.audit-badge.badge-investigate {
  background: #FFBE0B;
  color: var(--black);
}

.audit-badge.badge-investigate .badge-label::before {
  content: '⚠ ';
}

.product-card-investigate {
  border-color: rgba(255, 190, 11, 0.3);
}

/* PENDING — gray, not yet audited */
.audit-badge.badge-pending {
  background: var(--gray);
  color: var(--text-muted);
  border-color: var(--text-muted);
}

/* Unavailable message for non-purchasable products */
.product-unavailable {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 0;
}

.product-card:hover .product-unavailable {
  color: rgba(0, 0, 0, 0.4);
}

.coming-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-alt);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 2px solid var(--white);
}

.product-info {
  padding: var(--spacing-md);
}

.product-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.product-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.product-actions {
  display: flex;
  gap: var(--spacing-xs);
}

.btn-audit-detail,
.btn-buy,
.btn-buy-disabled {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 12px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-audit-detail:hover,
.btn-buy:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.product-card:hover .btn-audit-detail,
.product-card:hover .btn-buy {
  border-color: var(--black);
  color: var(--black);
}

.product-card:hover .btn-audit-detail:hover,
.product-card:hover .btn-buy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-buy-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-main h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.about-main p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  max-width: 800px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.feature-card {
  border: var(--border-width) solid var(--white);
  padding: var(--spacing-md);
  background: var(--black);
  transition: all 0.2s;
}

.feature-card:hover {
  background: var(--white);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent);
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  transition: color 0.2s;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.feature-card:hover h4,
.feature-card:hover p {
  color: var(--black);
}

/* ============================================================
   8b. METHODOLOGY (condensed, inside About)
   ============================================================ */
.about-methodology h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
}

.about-method-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.method-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s;
}

.method-step:hover {
  border-color: var(--accent);
}

.step-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 40px;
}

.method-step h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.method-step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.tier-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.tier-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tier-mini span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.tier-mini em {
  font-style: normal;
}

.tier-mini--a { border-color: #22c55e; }
.tier-mini--a span { color: #22c55e; }
.tier-mini--b { border-color: #3b82f6; }
.tier-mini--b span { color: #3b82f6; }
.tier-mini--c { border-color: #FFBE0B; }
.tier-mini--c span { color: #FFBE0B; }
.tier-mini--rejected { border-color: #ef4444; }
.tier-mini--rejected span { color: #ef4444; }

.method-override {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #ef4444;
  padding: 12px 16px;
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

@media (max-width: 768px) {
  .method-steps {
    grid-template-columns: 1fr;
  }
  .tier-inline {
    gap: 8px;
  }
  .tier-mini {
    padding: 6px 10px;
    font-size: 11px;
  }
  .tier-mini span {
    font-size: 16px;
  }
}

/* ============================================================
   9. CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  border: var(--border-width) solid var(--white);
  padding: var(--spacing-lg);
  text-align: center;
  background: var(--black);
  transition: all 0.2s;
}

.contact-card:hover {
  background: var(--white);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--accent);
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  transition: color 0.2s;
}

.contact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  transition: color 0.2s;
}

.contact-card:hover h4,
.contact-card:hover p {
  color: var(--black);
}

.btn-contact {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 24px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-contact:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.contact-card:hover .btn-contact {
  border-color: var(--black);
  color: var(--black);
}

.contact-card:hover .btn-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  border-top: var(--border-width) solid var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-brand .nav-logo {
  font-size: 32px;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-end;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: var(--spacing-sm);
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.footer-socials a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.6);
  transition: fill 0.2s;
}

.footer-socials a:hover svg {
  fill: var(--accent);
}

.machamba {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   11. AUDIT OVERLAY
   ============================================================ */
.audit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--black);
  z-index: 2000;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.87, 0, 0.13, 1);
  overflow: hidden;
}

.audit-overlay.active {
  transform: translateY(0);
}

.audit-overlay-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 48px;
  height: 48px;
  background: var(--white);
  color: var(--black);
  font-size: 32px;
  line-height: 1;
  border: var(--border-width) solid var(--white);
  z-index: 2001;
  transition: all 0.2s;
}

.audit-overlay-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.audit-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

/* Mobile: iframe takes full viewport, content scrolls internally after responsive CSS injection */
@media (max-width: 768px) {
  .audit-overlay iframe {
    max-width: none;
  }
  .audit-overlay-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* ── Mobile Rotate Prompt (inside audit overlay) ─────────── */

.audit-rotate-prompt {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black, #0D0D0D);
  z-index: 2002;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 40px;
}

.audit-overlay.active .audit-rotate-prompt {
  display: flex;
}

.audit-rotate-prompt .rotate-icon {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
  animation: rotatePhone 2s ease-in-out infinite;
}

.audit-rotate-prompt .rotate-icon::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(0deg); }
  30%, 70% { transform: rotate(90deg); }
}

.audit-rotate-prompt .rotate-text {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.audit-rotate-prompt .rotate-dismiss {
  margin-top: 16px;
  padding: 8px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.audit-rotate-prompt .rotate-dismiss:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.7);
}

/* Show rotate prompt ONLY on mobile portrait */
@media (orientation: landscape), (min-width: 769px) {
  .audit-rotate-prompt {
    display: none !important;
  }
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-card.card-wide {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
  }
}

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

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(32px + 70px + var(--spacing-md)) var(--spacing-md) var(--spacing-lg);
    align-items: flex-start;
  }

  .hero.hero-split {
    padding-top: calc(32px + 70px);
  }

  .hero-top {
    padding: var(--spacing-md) var(--spacing-md) 0;
  }

  .hero-bottom {
    padding: 0 var(--spacing-md) var(--spacing-lg);
  }

  .hero-title {
    font-size: 48px;
    line-height: 0.9;
  }

  .section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .section-title {
    font-size: 36px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ticker {
    height: 28px;
    font-size: 12px;
  }

  .navbar {
    top: 28px;
  }

  .nav-container {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .hero {
    min-height: auto;
    padding: calc(28px + 60px + var(--spacing-sm)) var(--spacing-md) var(--spacing-md);
  }

  .hero.hero-split {
    padding-top: calc(28px + 60px);
  }

  .hero-top {
    padding: var(--spacing-sm) var(--spacing-md) 0;
  }

  .hero-bottom {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  .hero-title {
    font-size: 40px;
    line-height: 0.88;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .product-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-audit-detail,
  .btn-buy {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   13. DEBUG THEME SWITCHER
   Only visible when ?debug is in URL
   ============================================================ */
/* ── Settings panel (floating bottom-right, always visible) ── */

.debug-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: var(--font-mono);
}

.debug-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.debug-toggle:hover {
  background: var(--teal);
  transform: scale(1.1);
}

body[data-theme="light"] .debug-toggle {
  background: var(--purple, #8b5cf6);
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.debug-menu {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--black-alt);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
}

.debug-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body[data-theme="light"] .debug-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.debug-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.debug-btn:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
}

.debug-btn.active {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.debug-info {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ============================================================
   BACK TO TOP — Enlarged language-toggle aesthetic
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 12px 20px;
  border: var(--border-width) solid var(--white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, color 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--black);
  color: var(--white);
}
