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

:root {
  --sphere-black-900: #1D1D1D;
  --sphere-black-800: #212121;
  --sphere-black-700: #252525;
  --sphere-gray-600:  #3B3B3B;
  --sphere-gray-500:  #4E4E4E;
  --sphere-gray-400:  #8D8D8D;
  --sphere-gray-300:  #D9D9D9;
  --sphere-white:     #FFFFFF;

  --sphere-lavender: #D4A7FF;
  --sphere-cyan:     #A7FFF6;
  --sphere-lime:     #E5FF00;

  --bg-page: var(--sphere-black-700);
  --bg-surface: rgba(255,255,255,0.04);
  --bg-pill: rgba(255,255,255,0.06);
  --text-primary: var(--sphere-white);
  --text-secondary: var(--sphere-gray-400);
  --border-subtle: rgba(255,255,255,0.08);
  --border-default: rgba(255,255,255,0.14);
  --danger: #FF6B6B;

  --font-fono: 'Space Grotesk', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --font-pro: 'Manrope', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --maxw: 1080px;
  --control-h: 36px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 400 18px/1.5 var(--font-pro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sphere-lavender); text-decoration: none; }
a:hover { color: var(--sphere-cyan); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- dot grid motif ---------- */
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(37,37,37,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
header.site .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.brand-tag {
  font: 400 13px/1 var(--font-fono); color: var(--sphere-lavender);
  border-left: 1px solid var(--border-default); padding-left: 10px;
}
.nav { display: flex; align-items: center; gap: 22px; font: 400 14px/1.2 var(--font-fono); }
.nav a { color: var(--text-secondary); }
.nav a:hover { color: var(--sphere-white); }
.nav a.nav-cta {
  display: inline-flex; align-items: center;
  height: var(--control-h); padding: 0 20px; box-sizing: border-box;
  color: #000; background: var(--sphere-lavender);
  border-radius: 999px; font-weight: 500;
}
.nav a.nav-cta:hover { background: var(--sphere-cyan); color: #000; }

.lang {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border-default);
  border-radius: 999px; overflow: hidden; flex: none;
  height: var(--control-h); box-sizing: border-box;
}
.lang button {
  display: flex; align-items: center;
  background: none; border: 0; color: var(--text-secondary);
  font: 400 13px/1 var(--font-fono); text-transform: lowercase;
  padding: 0 15px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--sphere-lavender); color: #000; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 96px 72px; }
.hero .glow {
  position: absolute; left: 50%; top: -220px; translate: -50% 0;
  width: 900px; height: 900px; max-width: 160vw;
  background: radial-gradient(circle, rgba(212,167,255,0.22), rgba(212,167,255,0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-pill); border: 1px solid var(--border-default);
  border-radius: 999px; padding: 7px 15px;
  font: 400 13px/1 var(--font-fono); color: var(--sphere-lavender);
  text-transform: lowercase;
}
/* Sphere's identity glyph: 4x4 dot grid, corners removed */
.dotgrid { width: 17px; height: 17px; flex: none; color: var(--sphere-lavender); }

h1 {
  font: 400 clamp(40px, 7.6vw, 76px)/1.02 var(--font-pro);
  margin: 22px 0 0; letter-spacing: -0.02em;
}
/* Below the width where "Prompt to CAD - Hackathon" fits on one line,
   stack it instead of stranding the hyphen at a line end. */
@media (max-width: 1024px) {
  h1 .sep { display: none; }
  h1 .h1-tail { display: block; }
}
h1 em { font-style: normal; color: var(--sphere-lavender); }
.lede {
  max-width: 40ch; margin: 20px 0 0;
  font: 400 clamp(17px, 2.2vw, 20px)/1.45 var(--font-pro); color: var(--sphere-gray-300);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 26px; cursor: pointer;
  font: 500 16px/1 var(--font-fono); text-transform: lowercase;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--sphere-lavender); color: #000; }
.btn-primary:hover { background: var(--sphere-cyan); color: #000; }
.btn-ghost { border-color: var(--border-default); color: var(--sphere-gray-300); background: none; }
.btn-ghost:hover { border-color: var(--sphere-lavender); color: var(--sphere-lavender); }

/* Primary hero CTA: the one thing on the page we want pressed. */
.btn-hero {
  font: 500 19px/1 var(--font-fono);
  padding: 19px 40px;
  box-shadow: 0 0 0 6px rgba(212,167,255,0.12), 0 12px 34px rgba(212,167,255,0.28);
  transition: box-shadow .18s, transform .18s, background .15s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 8px rgba(167,255,246,0.14), 0 16px 40px rgba(167,255,246,0.34);
}
.btn-hero:active { transform: translateY(0); }
.btn-hero .arrow-r { font-size: 18px; transition: transform .18s; }
.btn-hero:hover .arrow-r { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .btn-hero, .btn-hero:hover, .btn-hero .arrow-r { transform: none; }
}
.seats { font: 400 14px/1.2 var(--font-fono); color: var(--sphere-lavender); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px; margin-top: 52px;
}
.fact {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 20px;
}
.fact .k {
  font: 400 12px/1 var(--font-fono); text-transform: lowercase;
  color: var(--text-secondary); display: block; margin-bottom: 10px;
}
.fact .v { font: 500 19px/1.25 var(--font-pro); display: block; }
a.map-link { color: var(--text-primary); display: block; }
a.map-link:hover { color: var(--sphere-cyan); }
a.map-link .ext {
  width: 13px; height: 13px; display: inline-block;
  vertical-align: -1px; margin-left: 7px; color: var(--sphere-lavender);
}
a.map-link:hover .ext { color: var(--sphere-cyan); }

/* ---------- sections ---------- */
section { padding-block: 72px; }
section.alt { background: var(--sphere-black-800); border-block: 1px solid var(--border-subtle); }
.eyebrow {
  font: 400 13px/1 var(--font-fono); text-transform: lowercase;
  color: var(--sphere-lavender); margin: 0 0 14px;
}
h2 {
  font: 400 clamp(28px, 4.6vw, 46px)/1.08 var(--font-pro);
  margin: 0 0 18px; letter-spacing: -0.015em;
}
.section-lede { max-width: 58ch; color: var(--sphere-gray-300); margin: 0 0 36px; }
/* Welcome statement, directly under the hero */
.welcome-band { padding-block: 0 8px; }
.welcome-band p {
  margin: 0; max-width: 68ch;
  padding: 22px 0;
  font: 400 clamp(17px, 2.1vw, 21px)/1.5 var(--font-pro);
  color: var(--sphere-gray-300);
}
.welcome-band strong { color: var(--sphere-white); font-weight: 500; }

/* flow */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.flow .step {
  flex: 1 1 180px; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 22px;
}
.flow .step img { height: 26px; width: auto; opacity: .9; margin-bottom: 14px; }
.flow .step .t { font: 500 17px/1.25 var(--font-pro); display: grid; }
.flow .step .t2 { color: var(--text-secondary); }
.flow .arrow {
  align-self: center; color: var(--sphere-lavender);
  font: 400 22px/1 var(--font-fono);
}

/* prize */
.prize { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.prize ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.prize li { display: flex; gap: 12px; align-items: flex-start; color: var(--sphere-gray-300); }
.prize li img { height: 22px; width: 22px; flex: none; margin-top: 3px; }

/* General info cards under the grand prize */
.info-eyebrow { margin-top: 56px; }
.info-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.info-grid li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 18px 20px;
  color: var(--sphere-gray-300); font: 400 16px/1.4 var(--font-pro);
}
.info-grid li img { height: 22px; width: 22px; flex: none; margin-top: 2px; opacity: .9; }

/* MacBook render: the official PNG has a transparent screen, so a soft
   lavender glow sits behind it to read as switched on. */
.macbook { position: relative; }
.macbook::before {
  content: ""; position: absolute;
  left: 13.5%; right: 13.5%; top: 12%; bottom: 19%;
  background: radial-gradient(ellipse at 50% 42%, rgba(212,167,255,0.40), rgba(212,167,255,0.12) 52%, transparent 80%);
  border-radius: 6px; filter: blur(2px); pointer-events: none;
}
.macbook > img { position: relative; width: 100%; }
/* Screen area of the render, in image-relative percentages. */
.macbook-screen {
  position: absolute; left: 13.5%; right: 13.5%; top: 12%; bottom: 19%;
  display: grid; place-items: center; pointer-events: none;
}
.macbook-screen .screen-logo { width: 46%; height: auto; opacity: .95; }

/* agenda — ruled rows, as on the flyer */
.agenda { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 78px 124px 20px 1fr;
  gap: 20px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--border-subtle);
}
.agenda .row:last-child { border-bottom: 1px solid var(--border-subtle); }
.row .day {
  font: 400 12px/1.2 var(--font-fono); letter-spacing: .03em;
  color: var(--sphere-lavender); padding-top: 4px;
}
.row .time { font: 400 15px/1.2 var(--font-fono); color: var(--text-primary); padding-top: 2px; }
.row .ag-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--text-secondary); opacity: .85; }
.row .what { font: 400 16px/1.4 var(--font-pro); color: var(--sphere-gray-300); text-wrap: pretty; }

/* keynotes */
.logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 8px; }
.logo-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 76px; box-sizing: border-box;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 0 28px;
  font: 500 20px/1 var(--font-pro); letter-spacing: .04em;
}
.logo-card img { height: 32px; width: auto; opacity: .95; }
.logo-card--img { padding: 0 16px; }
.logo-card--img img { height: 71px; opacity: 1; }

/* ---------- form ---------- */
.form-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 20px; padding: clamp(22px, 4vw, 40px);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label {
  font: 400 13px/1.2 var(--font-fono); text-transform: lowercase;
  color: var(--sphere-gray-300);
}
.req { color: var(--sphere-lavender); }
input[type=text], input[type=email], select, textarea {
  width: 100%; background: rgba(0,0,0,0.28);
  border: 1px solid var(--border-default); border-radius: 10px;
  color: var(--text-primary); font: 400 16px/1.4 var(--font-pro);
  padding: 13px 14px; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sphere-gray-400) 50%),
                    linear-gradient(135deg, var(--sphere-gray-400) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select option { background: var(--sphere-black-800); color: var(--text-primary); }
textarea { resize: vertical; min-height: 108px; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sphere-lavender); outline-offset: 1px; border-color: transparent;
}
.hint { font: 400 13px/1.4 var(--font-pro); color: var(--text-secondary); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-default); border-radius: 999px;
  padding: 11px 18px; cursor: pointer;
  font: 400 15px/1 var(--font-pro); color: var(--sphere-gray-300);
}
.radio-row input { accent-color: var(--sphere-lavender); margin: 0; }
.radio-row label:has(input:checked) {
  border-color: var(--sphere-lavender); color: var(--sphere-white);
  background: rgba(212,167,255,0.10);
}
.radio-row label:focus-within { outline: 2px solid var(--sphere-lavender); outline-offset: 2px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: rgba(0,0,0,0.2); padding: 16px; margin-bottom: 20px;
}
.consent input { accent-color: var(--sphere-lavender); margin-top: 4px; flex: none; width: 17px; height: 17px; }
.consent span { font: 400 15px/1.4 var(--font-pro); color: var(--sphere-gray-300); }

.error { color: var(--danger); font: 400 13px/1.3 var(--font-pro); }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.form-status { margin-top: 16px; font: 400 15px/1.45 var(--font-pro); min-height: 1.45em; }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success {
  text-align: center; padding: 40px 20px;
}
.success .mark {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; color: #000;
  background: var(--sphere-lavender); box-shadow: 0 0 40px rgba(212,167,255,.45);
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border-subtle); padding-block: 34px;
  color: var(--text-secondary); font: 400 14px/1.5 var(--font-fono);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; align-items: center; }
.social { display: flex; gap: 10px; order: 1; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--border-default); border-radius: 50%;
  color: var(--sphere-gray-300);
}
.social a:hover { color: #000; background: var(--sphere-lavender); border-color: var(--sphere-lavender); }
.social svg { width: 17px; height: 17px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .brand-tag { display: none; }
  .prize { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .row { grid-template-columns: 58px 1fr; gap: 4px 14px; padding: 16px 0; }
  .row .day { grid-column: 1; grid-row: 1; padding-top: 2px; }
  .row .time { grid-column: 2; grid-row: 1; }
  .row .ag-icon { grid-column: 1; grid-row: 2; justify-self: start; }
  .row .what { grid-column: 2; grid-row: 2; }
  .hero { padding-block: 60px 48px; }
  section { padding-block: 54px; }
  .flow .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Sticky header clearance for in-page anchors */
section[id], #top { scroll-margin-top: 84px; }
