/* ═══════════════════════════════════════════════════════════════
   HumanitasAI Compact — Global Signing Site
   Pure CSS · No framework · FTP-ready static files
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C8A96E;
  --gold-light: #F0D98B;
  --gold-dim:   #8A6E40;
  --navy:       #080F1E;
  --navy-2:     #0D1729;
  --navy-3:     #111E35;
  --navy-4:     #162240;
  --navy-card:  #0E1829;
  --blue-soft:  #7EB8D4;
  --blue-glow:  #3A8CB8;
  --white:      #FFFFFF;
  --white-90:   rgba(255,255,255,0.9);
  --white-70:   rgba(255,255,255,0.7);
  --white-40:   rgba(255,255,255,0.4);
  --white-15:   rgba(255,255,255,0.15);
  --white-08:   rgba(255,255,255,0.08);
  --gold-08:    rgba(200,169,110,0.08);
  --gold-15:    rgba(200,169,110,0.15);
  --gold-25:    rgba(200,169,110,0.25);
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white-90);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-25); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
abbr { text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ─── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 15, 30, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--white-08);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 15, 30, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { flex-shrink: 0; display: flex; }
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-70);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: var(--white-08); }

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.01em;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white-90);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--white-08);
}
.mobile-menu a {
  padding: 11px 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--white-70);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu a:hover { background: var(--white-08); color: var(--white); }
.mobile-cta {
  margin-top: 8px;
  text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
}
.mobile-menu.open { display: flex; }

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(200,169,110,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(62,140,184,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 50% 100%, rgba(22,34,64,0.8) 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(200,169,110,0.08); top: -100px; left: -120px; animation-duration: 9s; }
.orb-2 { width: 400px; height: 400px; background: rgba(62,140,184,0.08); top: 30%; right: -100px; animation-duration: 11s; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(200,169,110,0.05); bottom: 0; left: 40%; animation-duration: 7s; animation-delay: -5s; }

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.particles-canvas { position: absolute; inset: 0; z-index: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--gold-08);
  border: 1px solid var(--gold-25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fade-up 0.8s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.1s ease both;
}
.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--blue-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-70);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fade-up 0.8s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(200,169,110,0.3);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,169,110,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--white-08);
  color: var(--white-90);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--white-15);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--white-15);
  border-color: var(--white-40);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: fade-up 0.8s 0.4s ease both;
}
.stat-item { text-align: center; padding: 0 36px; }
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.82rem; font-weight: 500; color: var(--white-40); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 48px; background: var(--white-15); flex-shrink: 0; }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--white-40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-up 1s 0.8s ease both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white-40), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION COMMON ────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  gap: 8px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 1px; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-70);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ─── ABOUT / FEATURES ──────────────────────────────────────────── */
.about-section { background: var(--navy); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--navy-card);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--gold-15);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--gold-08);
  border: 1px solid var(--gold-15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.feature-card p  { font-size: 0.92rem; color: var(--white-70); line-height: 1.65; }

/* ─── PRINCIPLES ────────────────────────────────────────────────── */
.principles-section {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy-3) 100%);
}
.principles-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.principles-text { position: sticky; top: 100px; }
.principles-text .section-subtitle { margin-bottom: 32px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.principles-list { list-style: none; }
.principle-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--white-08);
  align-items: flex-start;
}
.principle-item:last-child { border-bottom: none; }
.principle-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  min-width: 28px;
  padding-top: 2px;
}
.principle-item h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.principle-item p  { font-size: 0.9rem; color: var(--white-70); line-height: 1.6; }

/* ─── SIGNATORIES ───────────────────────────────────────────────── */
.signatories-section { background: var(--navy); }

.signatory-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.sig-cat {
  background: var(--navy-card);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.sig-cat:hover { transform: translateY(-4px); border-color: var(--gold-25); }
.sig-icon { font-size: 2.2rem; margin-bottom: 12px; }
.sig-cat h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.sig-cat p { font-size: 0.85rem; color: var(--white-40); margin-bottom: 16px; line-height: 1.5; }
.sig-count {
  display: inline-block;
  padding: 4px 16px;
  background: var(--gold-15);
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50px;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy-card);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  padding: 14px 20px;
  overflow: hidden;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}
.ticker-outer { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-item {
  font-size: 0.88rem;
  color: var(--white-70);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ticker-item::before { content: '✦'; color: var(--gold); font-size: 0.6rem; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SIGN SECTION ──────────────────────────────────────────────── */
.sign-section { background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy-4) 100%); }
.sign-header { text-align: center; margin-bottom: 60px; }
.sign-header .section-tag { justify-content: center; }
.sign-header .section-subtitle { margin: 0 auto; }

.sign-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* Info panel */
.sign-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  padding: 24px;
  background: var(--navy-card);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
}
.info-icon {
  color: var(--gold);
  margin-bottom: 14px;
}
.info-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.info-card p  { font-size: 0.875rem; color: var(--white-70); line-height: 1.6; }
.info-card strong { color: var(--gold-light); }

.process-steps {
  padding: 24px;
  background: var(--gold-08);
  border: 1px solid var(--gold-15);
  border-radius: var(--radius);
}
.process-steps h4 { font-size: 0.88rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.process-steps ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.process-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--white-70);
}
.process-steps li span {
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: var(--navy-card);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.form-step { padding: 40px; }
.step-header { margin-bottom: 32px; }
.step-header h3 { font-size: 1.35rem; font-weight: 700; color: var(--white); margin-top: 16px; }

/* Step indicators */
.step-indicators {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white-08);
  border: 2px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--white-40);
  transition: all var(--transition);
  flex-shrink: 0;
}
.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.step-dot.done {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  font-size: 0.9rem;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--white-15);
  min-width: 32px;
  transition: background var(--transition);
}
.step-line.active { background: var(--gold); }

/* Form elements */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
}
label a { color: var(--gold); text-decoration: underline; }
label a:hover { color: var(--gold-light); }

input[type="text"],
input[type="email"],
select,
.typed-sig-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy-2);
  border: 1.5px solid var(--white-15);
  border-radius: var(--radius-sm);
  color: var(--white-90);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
.typed-sig-input::placeholder { color: var(--white-40); }
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
.typed-sig-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-08);
}
input.invalid, select.invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.1); }

select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
select option { background: #1a2642; color: var(--white-90); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--white-70);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-row input[type="checkbox"] { display: none; }
.check-box {
  width: 20px; height: 20px;
  min-width: 20px;
  background: var(--navy-2);
  border: 1.5px solid var(--white-15);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
}
.checkbox-row input:checked ~ .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-row input:checked ~ .check-box::after {
  content: '✓';
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.err {
  font-size: 0.8rem;
  color: #f87171;
  min-height: 18px;
  display: block;
}

.btn-next, .btn-sign-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(200,169,110,0.25);
  letter-spacing: 0.01em;
}
.btn-next:hover, .btn-sign-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,169,110,0.4);
}
.btn-next:disabled, .btn-sign-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white-08);
  color: var(--white-70);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  border: 1px solid var(--white-15);
}
.btn-back:hover { background: var(--white-15); color: var(--white); }

/* Signature area */
.sig-instruction { font-size: 0.875rem; color: var(--white-70); margin-bottom: 16px; }
.sig-tabs {
  display: flex;
  gap: 4px;
  background: var(--navy-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--white-08);
  width: fit-content;
}
.sig-tab {
  padding: 7px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-70);
  transition: all var(--transition);
}
.sig-tab.active { background: var(--white-15); color: var(--white); }
.sig-tab:hover:not(.active) { color: var(--white-90); }

.canvas-wrap {
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white-15);
  overflow: hidden;
  transition: border-color var(--transition);
}
.canvas-wrap:hover { border-color: var(--gold-25); }
#sig-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
}
.canvas-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #9ca3af;
  font-style: italic;
  pointer-events: none;
  transition: opacity var(--transition);
}

.sig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.btn-clear {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--white-08);
  color: var(--white-70);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--white-15);
  transition: all var(--transition);
}
.btn-clear:hover { background: rgba(248,113,113,0.15); border-color: rgba(248,113,113,0.3); color: #f87171; }
.sig-status { font-size: 0.8rem; color: #4ade80; font-weight: 600; }

/* Typed signature */
.typed-sig-wrap { display: flex; flex-direction: column; gap: 12px; }
.typed-preview {
  min-height: 100px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 2rem;
  color: #1a1a1a;
  text-align: center;
  letter-spacing: 0.02em;
}

.sig-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.sig-nav .btn-next { flex: 1; }

/* Review */
.review-block {
  background: var(--navy-2);
  border: 1px solid var(--white-08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.review-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--white-08);
}
.review-row:last-child { border-bottom: none; }
.review-row span { color: var(--white-40); min-width: 110px; }
.review-row strong { color: var(--white-90); font-weight: 600; }

.review-sig { margin-bottom: 28px; }
.review-sig-label { font-size: 0.82rem; font-weight: 600; color: var(--white-40); display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.review-sig-box {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--white-15);
  padding: 12px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.review-sig-box img { max-height: 70px; object-fit: contain; }

.submit-area { display: flex; gap: 12px; }
.submit-area .btn-sign-submit { flex: 1; position: relative; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(8,15,30,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MODAL ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-in 0.35s ease;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--navy-3);
  border: 1px solid var(--gold-25);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(200,169,110,0.15), var(--shadow-lg);
  animation: modal-up 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modal-up { from { transform: scale(0.85) translateY(30px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-icon {
  width: 80px; height: 80px;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #4ade80;
}
.modal-box h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.modal-name { font-size: 1.1rem; color: var(--gold-light); font-weight: 600; margin-bottom: 12px; }
.modal-msg { font-size: 0.9rem; color: var(--white-70); line-height: 1.65; margin-bottom: 32px; }

.modal-actions { display: flex; flex-direction: column; gap: 16px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.4); }

.share-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 9px 18px;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-70);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--white-15); color: var(--white); border-color: var(--white-40); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white-08);
  color: var(--white-70);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--white-15); color: var(--white); }

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-2);
  border-top: 1px solid var(--white-08);
  padding: 60px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand .nav-brand { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: 0.875rem; color: var(--white-40); max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: var(--white-40); transition: color var(--transition); }
.footer-col a:hover { color: var(--white-70); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--white-08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--white-40); }
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .principles-inner { grid-template-columns: 1fr; gap: 48px; }
  .principles-text { position: static; }

  .sign-layout { grid-template-columns: 1fr; }
  .sign-info { order: 2; }
  .sign-form-panel { order: 1; }
}

@media (max-width: 680px) {
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 0 20px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-step { padding: 28px 20px; }

  .sig-nav { flex-direction: column; }
  .submit-area { flex-direction: column; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; }

  .modal-box { padding: 36px 24px; }
  .share-strip { flex-direction: column; }
  .share-btn { text-align: center; }
}

@media (max-width: 420px) {
  .stat-item { padding: 0 12px; }
  .stat-divider { height: 36px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}
