/* ==========================================================================
   Base styles — deep slate with subtle purple accents
   Fonts: Space Grotesk (headings) & Manrope (body)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #0f1117;               /* deep slate */
  --ink: #e7e9ee;              /* near-white text */
  --muted: #b3b9c6;            /* secondary text */
  --line: rgba(255, 255, 255, .08);
  --accent: #7c6cff;           /* hint of purple */
  --accent-2: #a290ff;         /* softer purple for hovers */
  --radius: 12px;
  --pad: clamp(12px, 2vw, 20px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.5;
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 1) Fixed gradient overlay so it doesn't move while scrolling */
body::before {
  content: "";
  position: fixed; /* stays put */
  inset: 0;
  z-index: 0;     /* behind everything */
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(124,108,255,0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(162,144,255,0.12), transparent 55%),
  /* no background-attachment needed with a fixed pseudo-element */
  pointer-events: none;
}

/* Headings / subtitles use Space Grotesk */
h1, h2, h3, .subtitle {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  letter-spacing: 0.2px;
  margin: 0 0 0.6em;
}

header, main, footer { 
  position: relative; 
  z-index: 1; 
}

/* List elements for Jobs page */
ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  list-style-type: disc;
}

ul li {
  margin: 0.25em 0;
  line-height: 1.5;
}


/* ==========================================================================
   Background Video
   ========================================================================== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;		/* behind content & gradient */
  opacity: 0;        	/* hidden unless hero is in view */
  pointer-events: none;
  transition: opacity .25s ease;
}

 /* Show desktop by default, hide mobile */
 .bg-video--mobile { display: none; }
 /* On small screens, swap */
 @media (max-width: 720px) {
   .bg-video--desktop { display: none; }
   .bg-video--mobile  { display: block; }
 }

/* Show the video only when the hero is visible */
body[data-video-on] .bg-video { opacity: 0.50; } 	/* adjust to taste */

/* Keep your gradient/tint above the video but below content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(124,108,255,0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(162,144,255,0.12), transparent 55%);
}

/* Hero fills the viewport; centers overlay text */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10vh var(--pad);
}
.hero__content {
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);       /* subtle readable glass */
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 32px);
  max-width: min(900px, 92vw);
}

/* =======
	Images
   ========== */
.api-img {
  display: block;
  margin: 20px auto 0;
  max-width: 700px;  /* never larger than 700px */
  width: 100%;       /* but shrink to fit smaller screens */
  height: auto;      /* keep aspect ratio */
}


/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--pad);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
  background: transparent;
}

/* Semi-transparent overlay layer */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 92%, #000 8%);
  opacity: 0.60; 		/* affects only background */
  z-index: -1;   		/* behind logo + nav */
  backdrop-filter: blur(6px);
}

/* Small, discrete logo (top-left), clickable home */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px;
  outline: none;
}
.site-logo img {
  height: 32px;                /* discrete */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}
.site-logo:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ==========================================================================
   Desktop nav (top-right) — simple inline links
   ========================================================================== */

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  outline: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .18s ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 80%, white 20%);
}

/* ==========================================================================
   Main content scaffold
   ========================================================================== */

.site-main {
  flex: 1;
  max-width: min(1100px, 92vw);
  margin: 10vh auto 16vh;
  padding: 0 var(--pad);
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

/* ==========================================================================
   Mobile: turn the nav into a dead-simple dropdown
   Pure CSS using :focus-within / :hover (no JS, no extra HTML)
   - Shows a "Menu" pill on small screens
   - Tapping the menu (focusing any link) reveals the list
   ========================================================================== */

@media (max-width: 720px) {

  /* Replace inline list with a dropdown panel */
  .site-nav {
    position: relative;
    min-width: 92px;
  }

  /* "Menu" trigger bar (non-interactive label) */
  .site-nav::before {
    content: "Menu";
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--ink);
    cursor: pointer; /* purely visual cue */
    user-select: none;
  }

  /* The list becomes an overlay panel */
  .site-nav ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    grid-auto-rows: 1fr;
    gap: 2px;
    min-width: 180px;
    padding: 6px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in oklab, var(--bg) 88%, #1a1535 12%);
    box-shadow:
      0 6px 18px rgba(0,0,0,.35),
      0 0 0 1px rgba(255,255,255,.03) inset;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }

  /* bridge: expands the nav's hover area into the gap so it never closes */
  .site-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;          /* spans nav width; adjust if your ul is wider */
    top: 100%;
    height: 12px;      /* >= the visual gap */
    pointer-events: auto; /* counts as hovered area */
  }

  .site-nav li { margin: 0; }

  .site-nav a {
    display: block;
    padding: 10px 10px;
    border-radius: 8px;
  }
  .site-nav a::after { display: none; } /* no underline in dropdown */

  /* Reveal panel on hover (desktop narrow) or when any link gets focus */
  .site-nav:hover ul,
  .site-nav:focus-within ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Make the first link reachable for focus to open the panel */
  .site-nav ul a {
    /* Larger tap targets */
    -webkit-tap-highlight-color: transparent;
  }

  /* Keep open when:
     - hovered (narrow desktop)
     - nav itself is focused (after tapping the "Menu" area)
     - any child link is focused */
  .site-nav a { display:block; padding: 12px 12px; border-radius: 8px; }
  .site-nav a::after { display:none; }

}

/* ==========================================================================
   Click to Action (CTA)
   ========================================================================== */
.CTA {
  display:flex; 
  flex-wrap:wrap; 
  gap:10px; 
  margin-top:14px;
  justify-content: center;
  align-items: center;
}

.CTA a {
  position: relative;
  display:inline-flex; 
  align-items:center; 
  gap:8px; 
  padding:8px 20px; 
  border:1px solid var(--line); 
  border-radius:999px; 
  text-decoration:none; 
  color:var(--ink); 
  background:rgba(255,255,255,0.03);
}

.CTA a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform .18s ease-out;
}

.CTA a:hover::after,
.CTA a:focus-visible::after {
  transform: scaleX(1);
}

.CTA a:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 80%, white 20%);
}


/* Honeypot field: completely hidden from layout but still in the DOM */
.hp {
  position: absolute;
  left: -9999px;        /* Move it far off-screen */
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none; /* So users can't tab or click */
}








/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  width: 100%;
  margin-top: 6vh; 			/* separation from content */
  padding: 20px 0 15px; 		/* bottom whitespace ✅ */
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 92%, #000 8%);
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* Social icon row inside footer */
footer .social-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

/* All icons adopt currentColor */
footer .social-row a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity .18s ease;
}

footer .social-row a:hover,
footer .social-row a:focus-visible {
  opacity: 1;
  color: var(--accent-2); 		/* optional brighter on hover */
}

/* Copyright text */
footer small {
  font-size: 0.8rem;
  color: var(--muted);
}



/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: calc(var(--pad) * 1.2);
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--accent-2);
}




/* ==========================================================================
   Mobile tweaks: smaller text and tighter padding
   ========================================================================== */
@media (max-width: 720px) {
  /* 1️⃣  Make all text ~30% smaller */
  html {
    font-size: 85%;  /* reduces everything that uses rem/em proportionally */
  }


  /* 2️⃣  Reduce side padding sitewide */
  :root {
    --pad: clamp(8px, 1vw, 14px);  /* smaller than desktop */
  }

  .site-main {
    padding: 0 var(--pad);
  }

  .hero {
    padding: 6vh var(--pad);
  }
}

