:root {
  --night: #07111f;
  --night-2: #0d1a2e;
  --ink: #f4f7fc;
  --muted: #9aa8bd;
  --signal: #ff5c1a;
  --signal-2: #ff8a4c;
  --line: rgba(244, 247, 252, 0.14);
  --paper: #f3f6fb;
  --paper-ink: #101828;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.25rem);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper-ink);
  background: var(--paper);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.back-to-portfolio {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  background: rgba(7, 17, 31, 0.75);
  color: #fff;
  border: 1px solid var(--line);
  opacity: 0.8;
}

.back-to-portfolio:hover {
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.topbar__nav {
  display: none;
  gap: 1.35rem;
}

.topbar__nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.topbar__nav a:hover {
  color: var(--ink);
}

.btn-sm {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  background: var(--signal);
  color: #fff;
  transition: background 0.15s ease;
}

.btn-sm:hover {
  background: var(--signal-2);
  color: var(--night);
}

.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ink);
  background: var(--night);
}

.hero__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom 1.1s ease both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.92) 0%, rgba(7, 17, 31, 0.7) 46%, rgba(7, 17, 31, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.85), transparent 48%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  padding: 3rem var(--pad) 3.5rem;
  animation: rise 0.75s ease both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.08em;
  color: var(--signal);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 420px;
}

.countdown__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 0.75rem 0.4rem;
  text-align: center;
}

.countdown__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.countdown__item span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown.is-live .countdown__item strong {
  color: var(--signal);
}

.hero__meta {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero__meta strong {
  color: var(--signal-2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: var(--signal);
  color: #fff;
  font-weight: 800;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--signal-2);
  color: var(--night);
  transform: translateY(-2px);
}

.btn-primary--wide {
  width: 100%;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.agenda {
  padding: 4rem var(--pad) 2rem;
}

.agenda__head {
  max-width: var(--max);
  margin: 0 auto 2rem;
}

.agenda h2,
.speaker h2,
.register h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.agenda__head p:last-child {
  margin: 0;
  color: #5b667a;
  max-width: 42ch;
}

.timeline {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-left: 2px solid rgba(16, 24, 40, 0.12);
}

.timeline li {
  position: relative;
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 0 0 1.75rem 1.35rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 92, 26, 0.18);
}

.timeline time {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--signal);
}

.timeline h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.timeline p {
  margin: 0;
  color: #5b667a;
}

.speaker {
  padding: 2rem var(--pad) 3rem;
}

.speaker__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.speaker__layout img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.speaker__layout > div {
  padding: 1.25rem 1.25rem 1.5rem;
}

.speaker p {
  color: #5b667a;
}

.speaker ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.speaker li {
  position: relative;
  padding-left: 1rem;
  font-weight: 600;
}

.speaker li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--signal);
}

.register {
  padding: 3.5rem var(--pad) 4.5rem;
  background: var(--night-2);
  color: var(--ink);
}

.register .eyebrow {
  color: var(--signal-2);
}

.register__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.register__intro p {
  color: var(--muted);
  max-width: 40ch;
}

.perks {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.perks li {
  font-weight: 600;
  padding-left: 1.1rem;
  position: relative;
}

.perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--signal);
}

.form {
  background: #fff;
  color: var(--paper-ink);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
  border-top: 3px solid var(--signal);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
}

.optional {
  font-weight: 500;
  color: #7a8699;
  font-size: 0.8em;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  border: 1px solid rgba(16, 24, 40, 0.16);
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.field input:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}

.field input.is-invalid {
  border-color: #d92d20;
  background: #fff5f4;
}

.field__error {
  margin: 0;
  color: #d92d20;
  font-size: 0.82rem;
  font-weight: 600;
}

.field--check label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.field--check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--signal);
}

.form__note {
  margin: 0;
  font-size: 0.82rem;
  color: #7a8699;
}

.form__success {
  margin: 0;
  font-weight: 700;
  color: #0f7a4c;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--pad);
  background: var(--night);
  color: var(--muted);
  font-weight: 600;
}

.footer a {
  text-decoration: none;
  color: var(--signal-2);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoom {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@media (min-width: 720px) {
  .topbar__nav {
    display: flex;
  }

  .hero {
    align-items: center;
  }

  .hero__copy {
    padding: 4.5rem var(--pad);
  }

  .timeline li {
    grid-template-columns: 5.5rem 1fr;
  }

  .speaker__layout {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .speaker__layout img {
    max-height: none;
    min-height: 360px;
  }

  .speaker__layout > div {
    padding: 2rem 2rem 2rem 0.5rem;
  }

  .register__layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 2.5rem;
  }

  .form {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
