/* =========================================================
   KIOXIA Event Microsite — shared stylesheet
   Brand system: black / white / silver base with the vivid
   magenta -> violet -> blue gradient KIOXIA uses as an accent
   across its communication materials.
   ========================================================= */

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

:root {
  --black: #0a0a0b;
  --near-black: #17181a;
  --white: #ffffff;
  --gray-50: #f7f7f8;
  --gray-100: #eef0f1;
  --gray-200: #e2e4e7;
  --gray-400: #9aa0a6;
  --gray-600: #5f6368;
  --gray-800: #2c2d30;
  --silver: #c8cacd;

  --magenta: #e5007d;
  --violet: #7b2ff7;
  --blue: #0091d5;
  --cyan: #00b8d9;
  --green: #00a86b;
  --amber: #f5a623;
  --red: #d93025;

  --gradient-brand: linear-gradient(120deg, var(--magenta) 0%, var(--violet) 50%, var(--blue) 100%);
  --gradient-brand-soft: linear-gradient(120deg, rgba(229, 0, 125, 0.12), rgba(123, 47, 247, 0.12), rgba(0, 145, 213, 0.12));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(10, 10, 11, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 10, 11, 0.10);
  --shadow-lg: 0 24px 64px rgba(10, 10, 11, 0.16);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--gray-800); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--near-black); }
.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { height: 26px; width: auto; flex-shrink: 0; }
.brand .divider { width: 1px; height: 22px; background: var(--gray-400); flex-shrink: 0; }
.brand .event-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gray-800);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--black); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-brand);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: 10px;
  font-size: 19px;
  color: var(--near-black);
  flex-shrink: 0;
}
.main-nav a.mobile-cta { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: 96px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: var(--gradient-brand);
  opacity: 0.35;
  filter: blur(90px);
  transform: rotate(-8deg);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); }
.hero-gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { color: var(--gray-400); font-size: 18px; max-width: 540px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 34px;
}
.hero-meta div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--white); font-weight: 600; }
.hero-meta .icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.countdown-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.countdown-card .cc-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); font-weight: 700; margin-bottom: 16px; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-grid .unit { background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 14px 6px; text-align: center; }
.countdown-grid .num { font-size: 28px; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown-grid .lbl { font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.countdown-card .venue-line { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 14px; color: var(--gray-400); }
.countdown-card .venue-line strong { color: var(--white); display: block; margin-bottom: 2px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark p { color: var(--gray-400); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 38px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.stat-card, .info-card, .highlight-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight-card .badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.highlight-card h3 { font-size: 18px; margin-bottom: 8px; }
.highlight-card p { font-size: 14.5px; margin: 0; }

/* Agenda timeline */
.agenda-list { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-100); }
.agenda-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 26px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.agenda-row:last-child { border-bottom: none; }
.agenda-row:hover { background: var(--gray-50); }
.agenda-time { font-weight: 800; color: var(--violet); font-size: 15px; }
.agenda-title { font-weight: 700; font-size: 16px; }
.agenda-track {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(0, 145, 213, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Forms ---------- */
.form-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
.form-summary {
  position: sticky;
  top: 100px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.form-summary h3 { font-size: 20px; }
.form-summary .summary-row { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }
.form-summary .summary-row:first-of-type { border-top: none; }
.form-summary .summary-row .icon { font-size: 18px; }
.form-summary .summary-row strong { display: block; color: var(--white); }
.form-summary .summary-row span.muted { color: var(--gray-400); }

.field-group { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--near-black);
}
label .req { color: var(--magenta); }
label .optional { color: var(--gray-400); font-weight: 500; text-transform: none; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--near-black);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.12);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
.error-msg { color: var(--red); font-size: 12.5px; margin-top: 6px; min-height: 15px; font-weight: 600; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet); flex-shrink: 0; }
.checkbox-row label { margin: 0; font-weight: 500; font-size: 13.5px; color: var(--gray-800); }
.checkbox-row a { color: var(--violet); font-weight: 700; text-decoration: underline; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Star rating */
.rating-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.stars { display: flex; gap: 6px; }
.stars button {
  background: none; border: none; font-size: 30px; line-height: 1;
  color: var(--gray-200);
  transition: transform 0.1s ease, color 0.1s ease;
  padding: 2px;
}
.stars button:hover { transform: scale(1.15); }
.stars button.active { color: var(--amber); }

.nps-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.nps-scale button {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s ease;
}
.nps-scale button.active { background: var(--gradient-brand); color: var(--white); border-color: transparent; }
.nps-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-400); margin-top: 6px; }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.error { background: rgba(217, 48, 37, 0.08); color: var(--red); border: 1px solid rgba(217, 48, 37, 0.2); }
.form-alert.success { background: rgba(0, 168, 107, 0.08); color: var(--green); border: 1px solid rgba(0, 168, 107, 0.2); }

/* Success screen */
.success-screen { display: none; text-align: center; padding: 40px 10px; }
.success-screen.show { display: block; }
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--white);
  margin: 0 auto 22px;
}
.reference-pill {
  display: inline-block;
  margin: 18px 0;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--gray-50);
  border: 1.5px dashed var(--gray-400);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--gray-400); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 24px; margin-bottom: 16px; filter: invert(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.social-icons a:hover { background: var(--gradient-brand); border-color: transparent; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag-pill {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .form-summary { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mobile header & nav ---------- */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .site-header .container { height: 62px; }

  /* Logo only in the mobile header bar — event name is restated large in the hero. */
  .brand .divider,
  .brand .event-name { display: none; }

  /* The header's standalone Register button is hidden on mobile: the hero and
     closing section both carry their own full-width Register CTA already, and
     duplicating it here caused the pill to overlap the brand text. */
  .nav-actions .btn-outline,
  .nav-actions > .btn-primary { display: none; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    padding: 6px 18px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 15px;
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.mobile-cta {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 14px;
    border-radius: 999px;
    border-bottom: none;
    background: var(--gradient-brand);
    color: var(--white);
    font-weight: 700;
  }

  .field-row { grid-template-columns: 1fr; }
  .agenda-row { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .agenda-track { width: fit-content; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { gap: 28px; }
  .countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .countdown-grid .num { font-size: 22px; }
  .hero { padding: 48px 0 64px; }
  .hero-meta { gap: 16px 24px; margin: 22px 0 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 48px 0; }
  .section-tight { padding: 40px 0; }
  .form-card { padding: 26px 20px; }
  .stars button { font-size: 26px; }
  .nps-scale button { width: 34px; height: 34px; font-size: 12.5px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .form-card { padding: 20px 16px; }
  .countdown-grid { gap: 6px; }
  .countdown-grid .unit { padding: 10px 4px; }
}
