/* ============================================================
   GTIN – Global Therapeutic Intelligence Network
   ============================================================ */

:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50:  #eff5ff;
  --blue-100: #e3edff;

  /* Brand (logo) colors */
  --brand-blue: #1d4ed8;
  --brand-green: #4ca62e;

  --ink-900: #0b1220;
  --ink-700: #1f2a44;
  --ink-500: #475569;
  --ink-400: #64748b;

  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-soft: #f7f9fd;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 60px -24px rgba(29, 78, 216, 0.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(29, 78, 216, 0.6);
}
.btn-primary:hover {
  background: #1742be;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(29, 78, 216, 0.7);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: var(--ink-900);
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}
.brand-full {
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: .03em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 116px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, var(--blue-50), transparent 60%),
    radial-gradient(700px 420px at -6% 6%, #f3f7ff, transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow-accent { color: var(--blue-600); }

.hero-title { margin: 0 0 26px; }
.hero-title-acronym {
  display: block;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink-900);
}
/* Brand-colored GTIN wordmark (matches the logo) */
.gtin-blue { color: var(--brand-blue); }
.gtin-green { color: var(--brand-green); }
.hero-title-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue-700);
}
.hero-lead {
  margin: 0 0 20px;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-500);
}
.hero-actions { margin-top: 34px; }

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-glow {
  position: absolute;
  inset: 6% 6% auto auto;
  width: 78%;
  height: 78%;
  background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.22), transparent 62%);
  filter: blur(8px);
  z-index: 0;
}
.network-globe {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(29, 78, 216, 0.16));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.nodes .node circle {
  fill: var(--blue-700);
  stroke: #fff;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}
.node-core circle { fill: var(--blue-600); }
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: .82; }
}

.link {
  stroke-dasharray: 7 9;
  animation: dash 5s linear infinite;
}
.link-2 { animation-duration: 6.2s; }
.link-3 { animation-duration: 4.4s; }
.link-4 { animation-duration: 7s; }
.link-5 { animation-duration: 5.6s; }
.link-6 { animation-duration: 6.6s; }
@keyframes dash {
  to { stroke-dashoffset: -160; }
}

.pulse-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace 4.5s ease-in-out infinite;
}
@keyframes trace {
  0% { stroke-dashoffset: 600; opacity: 0; }
  20% { opacity: .55; }
  70% { stroke-dashoffset: 0; opacity: .55; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

/* ---------- Early Bird Registration ---------- */
.register {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.register-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.section-title {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink-900);
}
/* visible heading is .section-title; the eyebrow duplicates the label for screen structure */
.register .eyebrow { display: none; }

.register-lead {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  color: var(--ink-700);
  max-width: 46ch;
}
.register-body {
  margin: 0 0 22px;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-500);
  max-width: 52ch;
}
.register-note {
  margin: 0;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-700);
  padding: 12px 18px;
  background: var(--blue-50);
  border: 1px solid #d4e2ff;
  border-radius: 12px;
}

/* ---------- Form card ---------- */
.register-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-lg);
}
.register-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-700);
}
.field input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}
.register-form .btn { margin-top: 6px; }
.form-status {
  margin: 4px 0 0;
  font-size: .92rem;
  min-height: 1.2em;
  color: var(--blue-700);
  font-weight: 600;
}
.form-status.error { color: #b42318; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 600; color: var(--ink-700); font-size: .95rem; }
.footer-logo { display: block; height: 30px; width: auto; }
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-powered { color: var(--ink-400); font-size: .9rem; }
.footer-powered a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: none;
}
.footer-powered a:hover { text-decoration: underline; }
.footer-copy { color: var(--ink-400); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
  .hero-lead { max-width: 56ch; }
  .register-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .brand-full { display: none; }
  .header-inner { height: 66px; }
  .btn { padding: 14px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .network-globe,
  .nodes .node circle,
  .link,
  .pulse-line { animation: none; }
  .pulse-line { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
