/* ==========================================================================
   GammaOne — gammaone.cc
   Plain HTML + CSS. No frameworks, packages or external dependencies.
   ========================================================================== */

/* ---------- design tokens ---------- */

:root {
  --bg:        #08090b;
  --bg-raised: #0e1013;
  --line:      #1b2029;
  --line-soft: #232b36;

  --text:      #f2f4f7;
  --text-dim:  #98a2b0;
  --text-mute: #7d8794;

  --accent:    #3ecf8e;
  --accent-2:  #38bdf8;

  --radius:    14px;
  --radius-lg: 16px;
  --wrap:      1120px;
  --gutter:    24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 78% -6%,   rgba(62, 207, 142, 0.10), transparent 62%),
    radial-gradient(760px 460px at  0% 8%,    rgba(56, 189, 248, 0.06), transparent 64%),
    radial-gradient(1000px 620px at 50% 104%, rgba(62, 207, 142, 0.055), transparent 68%);
  background-repeat: no-repeat;
}

::selection {
  background: rgba(62, 207, 142, 0.28);
  color: var(--text);
}

/* ---------- layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section[id] { scroll-margin-top: 76px; }

/* ---------- typography ---------- */

h1, h2, h3 { text-wrap: balance; }

p { text-wrap: pretty; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.028em;
  color: var(--text);
}

.body {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.measure { max-width: 58ch; }

/* ---------- links & focus ---------- */

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

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #04150d;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.16s ease;
}

.skip-link:focus { top: 12px; text-decoration: none; }

img { max-width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  position: relative;
  display: inline-block;
  padding: 4px 0 4px 19px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* mark is absolutely positioned so the wordmark stays a single text run */
.logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dim);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: rgba(62, 207, 142, 0.55);
  text-decoration: none;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #4ad79a, #34bf82);
  color: #04150d;
  box-shadow: 0 12px 30px -16px rgba(62, 207, 142, 0.85);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -16px rgba(62, 207, 142, 0.95);
}

.btn-ghost {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(62, 207, 142, 0.42);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- hero ---------- */

.hero { padding: 92px 0 84px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 680;
  line-height: 1.06;
  letter-spacing: -0.036em;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.68;
  color: var(--text-dim);
}

/* ---------- figures ---------- */

.figure { margin: 0; }

.figure-media {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow:
    0 24px 60px -34px rgba(0, 0, 0, 0.95),
    0 20px 54px -36px rgba(62, 207, 142, 0.28);
}

.figure-media img {
  display: block;
  width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* ---------- sections ---------- */

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: 40px; }

.section-head .section-title { margin-bottom: 0; }

/* ---------- split layouts ---------- */

.split {
  display: grid;
  align-items: center;
  gap: 56px;
}

.split-research { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }

.split-about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.split-about .body { max-width: 60ch; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035),
                                            rgba(255, 255, 255, 0.008));
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: rgba(62, 207, 142, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px -34px rgba(0, 0, 0, 0.9);
}

.card-mark {
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* ---------- AI points ---------- */

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.points li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- contact ---------- */

.contact-panel {
  padding: 60px 32px 64px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  background-image:
    radial-gradient(620px 240px at 50% -30%, rgba(62, 207, 142, 0.11), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0));
}

.contact-panel .eyebrow {
  justify-content: center;
  margin-bottom: 14px;
}

.contact-panel .section-title { margin-bottom: 12px; }

.contact-lede {
  margin: 0 auto 28px;
  max-width: 46ch;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 38px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
}

.footer-inner p { margin: 0; }

.copyright {
  font-size: 14px;
  color: var(--text-dim);
}

.disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 68px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lede { max-width: 58ch; }

  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-research { gap: 32px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }

  /* the header wraps to two rows here, so let it scroll away rather than
     pinning two rows of chrome over the viewport */
  .site-header { position: static; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .logo { padding-top: 2px; padding-bottom: 2px; }
  .site-nav { gap: 4px 18px; }
  .site-nav a { padding: 3px 0; font-size: 13.5px; }

  section[id] { scroll-margin-top: 16px; }

  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }

  .section { padding: 56px 0; }

  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px 22px 26px; }

  .points {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 30px;
  }

  .actions { gap: 10px; }
  .btn { flex: 1 1 100%; }

  .contact-panel { padding: 44px 22px 48px; border-radius: 16px; }
  .contact-panel .btn { flex: 0 1 auto; }

  .footer-inner { flex-direction: column; }
  .split { gap: 28px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .btn:hover { transform: none; }
}
