/* CIG conference landing page.
   Colors, type and radii are straight from CIG Brand Specs v1.0. */

:root {
  --navy: #112D51;
  --blue: #2867C6;
  --charcoal: #383C44;
  --slate: #5A607A;
  --periwinkle: #C5CBE8;
  --pale: #E9EFF9;
  --mist: #E8EFF3;
  --cloud: #F0F5F8;
  --gray: #ECECEC;
  --offwhite: #F8F8F8;
  --white: #fff;
  --wrap: 1080px;
  --r-card: 15px;
  --r-tile: 10px;
}

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

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

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

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

/* --- buttons: 50px pill, uppercase, bold. No exceptions per brand. --- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(40,103,198,.28); }
.btn-primary:hover { background: #1f57ac; }
.btn-primary:disabled { background: var(--slate); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-onnavy { background: var(--white); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* --- masthead --- */
.masthead { background: var(--navy); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.logo img { display: block; width: 230px; height: auto; }
.badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--periwinkle);
  border: 1px solid rgba(197,203,232,.4);
  border-radius: 50px; padding: 7px 16px; white-space: nowrap;
}

/* --- hero --- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #163a68 0%, var(--navy) 55%, #0c2140 100%);
  color: var(--periwinkle);
  padding: 76px 0 132px;
  overflow: hidden;
}
.hero.has-image::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--hero-image);
  background-size: cover; background-position: center;
  opacity: .22;
}
.hero.has-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(17,45,81,.82), rgba(12,33,64,.94));
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); font-size: 46px; letter-spacing: -.01em; }
/* One line each on desktop. On phones these go inline and wrap naturally,
   which is why the spans are separated by real whitespace in the markup. */
.hero h1 span { display: block; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #8fb4ee;
}
.hero-lede { font-size: 18px; line-height: 1.65; margin: 20px 0 30px; max-width: 620px; }

.stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 40px;
  margin: 48px 0 0; padding: 34px 0 0;
  border-top: 1px solid rgba(197,203,232,.22);
}
.stats strong { display: block; font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.2; }
.stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* --- form card, lifted over the hero edge --- */
/* position + z-index are load bearing. The hero is position:relative, so it
   paints in a later layer than plain block content; without this the card's
   negative margin tucks its heading UNDER the hero instead of over it. */
.connect { background: var(--offwhite); padding-bottom: 84px; position: relative; z-index: 1; }
.card { background: var(--white); border-radius: var(--r-card); }
.form-card {
  max-width: 620px; margin: -84px auto 0; padding: 44px;
  box-shadow: 0 18px 50px rgba(17,45,81,.16);
  border: 1px solid var(--gray);
}
.form-card h2 { font-size: 26px; }
.card-lede { margin: 12px 0 30px; font-size: 15px; }

.field { margin-bottom: 20px; }
label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--charcoal);
}
input, select {
  width: 100%; padding: 13px 15px;
  font-family: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--offwhite);
  border: 1px solid var(--mist); border-radius: var(--r-tile);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #9aa1b5; }
input:focus, select:focus {
  outline: none; background: var(--white);
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,103,198,.16);
}
input.invalid, select.invalid { border-color: #DA1266; }
.fineprint { font-size: 12px; color: var(--slate); text-align: center; margin: 16px 0 0; }
.form-error {
  margin: 0 0 16px; padding: 12px 14px;
  font-size: 14px; font-weight: 600; color: #DA1266;
  background: #fdf0f5; border-radius: var(--r-tile);
}

.done { text-align: center; padding: 22px 0 10px; }
.done-mark {
  width: 58px; height: 58px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white); border-radius: 50%;
}
.done h3 { font-size: 22px; }
.done p { margin: 12px 0 0; }

/* --- included --- */
.included { padding: 84px 0; background: var(--white); }
.section-title { font-size: 26px; text-align: center; margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  border-radius: var(--r-tile);
  padding: 28px 26px;
  background: var(--cloud);
  border: 1px solid var(--mist);
}
.tile h3 { font-size: 15px; letter-spacing: .04em; color: var(--blue); margin-bottom: 10px; }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.65; }

/* --- closing --- */
.closing { background: var(--navy); color: var(--periwinkle); padding: 78px 0; }
.closing-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.closing h2 { color: var(--white); font-size: 26px; }
.closing p { margin: 18px 0 32px; font-size: 16.5px; line-height: 1.7; }
.closing-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- footer --- */
.foot { background: #050222; color: var(--periwinkle); padding: 26px 0; font-size: 13px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot a { color: var(--periwinkle); }

/* --- responsive --- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo img { width: 190px; }
  .hero { padding: 40px 0 104px; }
  /* Everyone here arrived by scanning a code and is standing up. Let the
     headline wrap naturally instead of holding the desktop line breaks, so
     the form is reachable without a long scroll. */
  .hero h1 { font-size: 28px; }
  .hero h1 span { display: inline; }
  .hero-lede { font-size: 16px; margin: 16px 0 26px; }
  .stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin-top: 30px; padding-top: 22px;
  }
  .stats strong { font-size: 21px; }
  /* Two of the three labels wrap at this width. Reserving the same height for
     all three keeps the row from looking ragged. */
  .stats span { font-size: 11px; letter-spacing: .03em; display: block; min-height: 2.7em; }
  .form-card { padding: 30px 22px; margin-top: -72px; }
  .form-card h2 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; }
  .included, .closing { padding: 56px 0; }
  .btn { width: 100%; text-align: center; }
  .closing-links { flex-direction: column; }
  .foot .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, input, select { transition: none; }
  .btn:hover { transform: none; }
}
