/* ==========================================================================
   GLOBEX Industries LLC — Shared Stylesheet
   Purpose: One responsive CSS file for all pages and screen sizes.
   How to customize:
   - Change brand colors in :root
   - Adjust typography in body / headings
   - Modify spacing using the --space-* variables
   ========================================================================== */

/* -------------------------
   1) Design tokens (colors, spacing, typography)
   ------------------------- */
:root {
  /* Background palette */
  --bg: #070b14;
  --bg2: #0b1220;

  /* Surface colors (cards/panels) */
  --surface: rgba(255, 255, 255, 0.05);
  --surface2: rgba(255, 255, 255, 0.07);

  /* Borders and text */
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted2: rgba(255, 255, 255, 0.55);

  /* Brand accents (edit these to change the whole site vibe) */
  --accent: #6cf0ff;
  --accent2: #9b7bff;
  --good: #4cf2a8;

  /* Layout */
  --max: 1120px; /* max content width on large screens */
  --radius: 16px;
  --radius2: 22px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);

  /* Spacing scale (simple, predictable) */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 64px;

  /* Fonts */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

/* -------------------------
   2) Base / reset
   ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* nice anchor scrolling */
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);

  /* A subtle tech-style background with gradients */
  background: radial-gradient(1200px 800px at 25% 15%, rgba(155, 123, 255, 0.22), transparent 60%),
    radial-gradient(900px 700px at 70% 20%, rgba(108, 240, 255, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.6;
}

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

/* "Skip to content" improves accessibility for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Container sets max width and page padding */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------
   3) Reusable UI primitives
   ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(108, 240, 255, 0.28), rgba(155, 123, 255, 0.24));
  color: rgba(255, 255, 255, 0.95);
  font-weight: 650;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn:active {
  transform: translateY(0px);
}
.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Disabled button/link style for "inactive external links" section */
.is-disabled,
.is-disabled:visited,
.is-disabled:hover,
.is-disabled:active {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Link-like button for footer controls (no underline by default) */
.linklike {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.linklike:hover {
  text-decoration: underline;
}

/* Monospace label used for small headings / counters */
.mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  margin: 0;
}

.muted {
  color: var(--muted2);
}
.fine {
  font-size: 13px;
  color: var(--muted2);
  margin: 8px 0 0;
}

/* Simple cards / panels */
.panel,
.card {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.card {
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

/* -------------------------
   4) Header / navigation (shared across pages)
   ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 20, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 200ms ease, background 200ms ease;
}

/* Elevated when you scroll slightly; JS toggles data-elevated */
.site-header[data-elevated="true"] {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  background: rgba(7, 11, 20, 0.72);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
}

/* Brand area: shows wordmark when possible; icon when constrained */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

/* Logo wrappers (wordmark + icon). If images are missing, we show text fallback. */
.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-wordmark,
.logo-icon {
  display: block;
  height: 26px; /* adjust to taste */
  width: auto;
}

/* Icon is hidden by default (wordmark is your primary identity). */
.logo-icon {
  display: none;
  height: 28px;
}

/* Text fallback brand (used if you don't add svg assets yet) */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-weight: 750;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

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

/* Active page highlighting (JS sets aria-current on the active nav link) */
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 140ms ease, opacity 140ms ease;
}
.nav-links a:hover {
  color: rgba(255, 255, 255, 0.94);
}
.nav-links a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  margin: 4px auto;
  border-radius: 2px;
}

/* -------------------------
   5) Page sections + headings
   ------------------------- */
.section {
  padding: var(--space-8) 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.section-head {
  margin-bottom: var(--space-6);
}

h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}
h2 {
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  font-size: clamp(26px, 2.4vw, 36px);
}
h3 {
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.subhead {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* -------------------------
   6) Landing page hero
   ------------------------- */
.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: start;
}

/* A pill badge used for short status/descriptor */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  margin: 0 0 var(--space-4);
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(76, 242, 168, 0.12);
}

.lead {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 var(--space-5);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

/* Highlight row for key messaging on landing */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.trust-item {
  padding: var(--space-4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-kicker {
  display: block;
  font-size: 12px;
  color: var(--muted2);
}
.trust-value {
  display: block;
  font-weight: 650;
  font-size: 13.5px;
}

/* Background ornaments for the hero (purely visual) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.gridlines {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.25;
  mask-image: radial-gradient(closest-side at 35% 10%, rgba(0, 0, 0, 1), transparent 70%);
}
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
}
.orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(108, 240, 255, 0.6), transparent 60%);
}
.orb-b {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -180px;
  background: radial-gradient(circle at 30% 30%, rgba(155, 123, 255, 0.55), transparent 60%);
}

/* -------------------------
   7) Content grids / cards for services + info pages
   ------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.service {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 150ms ease, border-color 160ms ease, background 160ms ease;
  min-height: 220px;
}
.service:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.service p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}
.service ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.86);
}
.service li {
  margin: 6px 0;
}
.service-accent {
  background: linear-gradient(180deg, rgba(108, 240, 255, 0.06), rgba(155, 123, 255, 0.05));
  border-color: rgba(108, 240, 255, 0.14);
}

/* Two-column layout used on founder/contact pages */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Founder portrait: portrait orientation, centered, large but responsive */
.portrait-wrap {
  display: grid;
  place-items: center;
  margin: var(--space-6) 0;
}
.portrait {
  width: min(520px, 92vw);   /* never exceeds 520px, but shrinks on phones */
  aspect-ratio: 3 / 4;      /* portrait shape */
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact "details" tiles */
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.detail {
  padding: var(--space-4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.label {
  display: block;
  font-size: 12px;
  color: var(--muted2);
}
.value {
  display: block;
  font-weight: 650;
  margin-top: 4px;
}

/* External links list (built now, inactive until you add real URLs) */
.external-links {
  display: grid;
  gap: var(--space-3);
}
.external-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.external-links a span {
  color: var(--muted);
  font-size: 13px;
}

/* -------------------------
   8) Footer
   ------------------------- */
.footer {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.7fr;
  gap: var(--space-4);
  align-items: start;
}
.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.92);
}
.footer-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

/* -------------------------
   9) Responsive rules (one set of files for all devices)
   ------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr; /* stack hero on tablets */
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr; /* stack columns */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  /* On small screens, collapse nav into a dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    right: 18px;
    left: 18px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(7, 11, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* When space is tight: hide wordmark, show icon */
  .logo-wordmark {
    display: none;
  }
  .logo-icon {
    display: block;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .contact-details {
    grid-template-columns: 1fr;
  }
}