:root {
  --ink: #15151b;
  --muted: #626272;
  --line: rgba(32, 32, 44, 0.13);
  --paper: #fbfbff;
  --blue: #5878ff;
  --violet: #6b38d7;
  --magenta: #c12d8f;
  --coral: #ff563c;
  --soft: #eef4ff;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.52) 38%, rgba(255,255,255,0.22)),
    url("./assets/lisbon-hero-bg.png") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 48% 34%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.24));
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 14% 28%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28%;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px clamp(24px, 5vw, 72px);
}

.nav img {
  width: min(248px, 48vw);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(44, 42, 118, 0.14));
}

.countdown {
  display: grid;
  gap: 8px;
  text-align: right;
  color: #413673;
}

.countdown span {
  font-size: 0.9rem;
  font-weight: 500;
}

.countdown strong {
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: var(--magenta);
  font-weight: 600;
}

.hero-center {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin: 4vh auto 0;
  text-align: center;
  color: #07072b;
  text-shadow: 0 16px 34px rgba(255, 255, 255, 0.72);
}

.kicker {
  margin-bottom: 22px;
  color: #756a9f;
  font-size: clamp(0.9rem, 1.8vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(4rem, 9vw, 8.1rem);
  line-height: 0.84;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  color: transparent;
  background: linear-gradient(100deg, var(--coral), var(--magenta), #4c18e8);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
}

.republic-title {
  margin-bottom: 7px;
  color: #29254d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.republic-subtitle {
  margin-bottom: 18px;
  color: #6b6590;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1.55;
  text-transform: uppercase;
}

.title-rule {
  width: 112px;
  height: 3px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--magenta), var(--violet));
}

.hero-copy {
  max-width: 540px;
  margin: 0 auto 22px;
  color: #2f2c58;
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.32;
  font-weight: 600;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.event-meta span {
  border: 1px solid rgba(77, 65, 138, 0.16);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.45);
  color: #524b79;
  font-size: 0.9rem;
}

.hero-actions,
.closing {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
}

.primary {
  background: #fff;
  color: #252331;
  box-shadow: 0 16px 40px rgba(47, 45, 119, 0.2);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  background: linear-gradient(105deg, var(--coral), var(--magenta), #4b12f0);
  color: white;
  box-shadow: 0 22px 48px rgba(94, 46, 213, 0.3);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  padding: 21px;
  background: rgba(255, 255, 255, 0.95);
  color: #85818f;
  text-align: center;
  font-weight: 600;
}

section:not(.hero) {
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto 36px;
}

.section-heading span {
  display: block;
  margin-bottom: 12px;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.register-copy h2,
.platform-panel h2,
.closing h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 600;
}

.intro-grid,
.founder-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 16px;
}

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

.intro-grid article,
.founder-grid article,
.form,
.connector-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 22px 70px rgba(34, 35, 82, 0.07);
}

.intro-grid article {
  padding: 28px;
}

.intro-grid h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.intro-grid p,
.register-copy p,
.platform-panel p,
.closing p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  background:
    radial-gradient(circle at 10% 20%, rgba(88, 120, 255, 0.18), transparent 28%),
    #fff;
}

.register-copy {
  justify-self: end;
  width: min(620px, 100%);
}

.register-copy .tag,
.platform-panel .tag {
  margin-bottom: 20px;
  border-color: rgba(193, 45, 143, 0.18);
  background: #fff;
  color: var(--magenta);
}

.register-copy h2,
.platform-panel h2 {
  margin-bottom: 24px;
}

.register-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #343445;
}

.register-copy li {
  position: relative;
  padding-left: 25px;
}

.register-copy li::before {
  position: absolute;
  left: 0;
  content: "•";
  color: var(--coral);
  font-weight: 800;
}

.form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form label {
  display: grid;
  gap: 8px;
  color: #3f3f50;
  font-size: 0.9rem;
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: #f8f9ff;
  color: var(--ink);
  font: inherit;
}

.form textarea {
  min-height: 106px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: rgba(88, 120, 255, 0.65);
  outline: 4px solid rgba(88, 120, 255, 0.16);
}

.form button {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--violet), var(--magenta), var(--coral));
  color: white;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.agenda {
  background: #f3f6ff;
}

.agenda-list {
  width: min(980px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.agenda-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.agenda-item b {
  color: var(--blue);
  font-size: 1.05rem;
}

.agenda-item p {
  margin: 0;
  color: #222231;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 600;
}

.showcase {
  background: linear-gradient(180deg, #fbfbff, #fff);
}

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

.founder-grid article {
  min-height: 190px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

.founder-grid span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(88, 120, 255, 0.1);
  color: var(--violet);
  font-size: 0.83rem;
  font-weight: 700;
}

.founder-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.02;
  font-weight: 600;
}

.founder-card {
  display: grid;
  align-content: end;
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}

.initials {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 68% 24%, rgba(255, 86, 60, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(88, 120, 255, 0.95), rgba(193, 45, 143, 0.9));
  color: white;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 800;
}

.platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #15151b;
  color: white;
}

.platform-panel p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin-bottom: 28px;
}

.connector-list {
  display: grid;
  gap: 14px;
}

.connector-list article {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.connector-list strong {
  color: #fff;
  font-size: 1.7rem;
}

.connector-list span {
  color: rgba(255, 255, 255, 0.72);
}

.closing {
  display: grid;
  justify-items: center;
  text-align: center;
}

.closing img {
  width: min(300px, 70vw);
  margin-bottom: 28px;
}

.closing h2 {
  margin-bottom: 18px;
}

.closing p {
  max-width: 560px;
  margin-bottom: 30px;
}

.closing .primary {
  background: linear-gradient(135deg, var(--violet), var(--magenta), var(--coral));
  color: white;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    padding: 30px 22px;
  }

  .countdown {
    min-width: 112px;
  }

  .hero-center {
    margin-top: 8vh;
  }

  .intro-grid,
  .founder-grid,
  .split,
  .platform-panel {
    grid-template-columns: 1fr;
  }

  .register-copy {
    justify-self: start;
  }

  .agenda-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .nav {
    display: grid;
  }

  .countdown {
    text-align: left;
    color: #fff;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.1rem);
  }

  .hero-actions {
    display: grid;
  }

  .button,
  button {
    width: 100%;
    text-align: center;
  }

  .founder-grid strong {
    margin-top: 44px;
  }
}
