/* ============================================================
   Glowball Technologies — glowballtechnologies.com
   Brand palette:
     --navy      #050d18   (background)
     --green-dk  #c9f04e   (GLOWBALL on dark)
     --green-lt  #a8cc00   (GLOWBALL on light)
     --slate-dk  #4a6a88   (TECHNOLOGIES on dark)
     --slate-lt  #3a5a78   (TECHNOLOGIES on light)
   Font: Exo 2 (300, 400, 600, 800)
   ============================================================ */

:root {
  --navy: #050d18;
  --navy-2: #0a1829;
  --navy-3: #10223a;

  --green: #c9f04e;
  --green-deep: #a8cc00;

  --slate: #4a6a88;
  --slate-strong: #6b8aaa;

  --text: #e6edf5;
  --text-muted: #9eb1c5;
  --line: rgba(201, 240, 78, 0.14);

  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(.2, .8, .2, 1);

  --measure: 64ch;
  --container-max: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  --font-body: 'Exo 2', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #0a1a2e 0%, var(--navy) 55%) no-repeat var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  min-height: 100svh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--green);
  color: var(--navy);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-body);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3.2vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  color: var(--green);
}

p { margin: 0 0 1rem; }
.muted { color: var(--text-muted); }

a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
a:hover { border-bottom-color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--navy) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-bottom: 0;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}
.site-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  font-size: 0.9375rem;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero-frame {
  position: relative;
  width: min(100%, 1120px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 80px -30px rgba(201, 240, 78, 0.18),
    0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

.hero-animation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-copy {
  text-align: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-strong);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  max-width: 22ch;
  margin-inline: auto;
  background: linear-gradient(180deg, #ffffff 0%, #cdd8e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.prose {
  max-width: var(--measure);
}
.prose p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

.section-about .prose p:first-of-type {
  font-weight: 300;
  font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.375rem);
  color: var(--text);
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.875rem;
  width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(201, 240, 78, 0.3);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(201, 240, 78, 0.18);
  background: var(--navy-3);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 6px 20px -8px rgba(201, 240, 78, 0.6);
}
.btn-primary:hover  { background: #d5f970; }
.btn-primary:active { transform: translateY(1px); }

.form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.form-hint a { color: var(--green); }

/* Styled like a link, but actually a <button> so no address
   appears in the DOM until the user clicks (anti-scraping). */
.link-button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--green);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease);
}
.link-button:hover,
.link-button:focus-visible { border-bottom-color: var(--green); }
.link-button[data-revealed="true"] {
  cursor: text;
  user-select: all;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.footer-inner {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
}

.footer-line,
.footer-contact {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-contact a { color: var(--slate-strong); border-bottom-color: transparent; }
.footer-contact a:hover { color: var(--green); border-bottom-color: var(--green); }

/* ---------- Small-screen tweaks ---------- */
@media (max-width: 480px) {
  .brand img { height: 32px; }
  .site-nav a { font-size: 0.875rem; }
  .hero-frame { border-radius: var(--radius); }
}
