/* ============================================================
   TULAŞ × OZAI · Görüntü Veri Aktarım Portalı
   Premium · enterprise · Geist + Newsreader · brass + ink
============================================================ */

:root {
  --bg:            #FAFBFD;
  --bg-mute:       #F2F5FA;
  --bg-soft:       #E8EDF5;

  --ink:           #060F1F;
  --ink-2:         #0F1F38;
  --text:          #182640;
  --text-soft:     #3F516F;
  --text-mute:     #6B7A95;
  --border:        #DDE4EF;
  --border-soft:   #EAEFF6;
  --border-strong: #BAC6D8;
  --rule:          1px solid var(--border);
  --hairline:      1px solid var(--border-soft);

  --primary:       #08214A;
  --primary-2:     #103067;
  --primary-3:     #1B4083;
  --primary-soft:  #E5EAF5;
  --primary-ring:  rgba(8, 33, 74, 0.10);

  --brass:         #B58A3E;
  --brass-2:       #9E7530;
  --brass-3:       #D4AC5C;
  --brass-soft:    #F7EFDD;

  --tulas:         #1F6BC6;
  --tulas-soft:    #E5F0FB;

  --success:       #1A6E40;
  --success-2:     #2A9A5F;
  --success-soft:  #DFF1E6;
  --danger:        #B33232;
  --danger-soft:   #FAE6E6;
  --warning:       #9E6B1E;

  --sans:          'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:          'Geist Mono', ui-monospace, Menlo, monospace;
  --serif:         'Newsreader', 'Iowan Old Style', Georgia, serif;

  --shadow-xs:     0 1px 0 rgba(8, 33, 74, 0.04);
  --shadow-sm:     0 1px 2px rgba(8, 33, 74, 0.04), 0 1px 3px rgba(8, 33, 74, 0.03);
  --shadow-md:
    0 0 0 1px rgba(8, 33, 74, 0.02),
    0 2px 4px rgba(8, 33, 74, 0.05),
    0 12px 28px -8px rgba(8, 33, 74, 0.12);
  --shadow-lg:
    0 0 0 1px rgba(8, 33, 74, 0.025),
    0 6px 16px rgba(8, 33, 74, 0.08),
    0 32px 64px -16px rgba(8, 33, 74, 0.22);
  --shadow-xl:
    0 0 0 1px rgba(8, 33, 74, 0.03),
    0 8px 20px rgba(8, 33, 74, 0.1),
    0 48px 80px -24px rgba(8, 33, 74, 0.28);
  --shadow-primary:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 1px 2px rgba(8, 33, 74, 0.2),
    0 12px 32px -8px rgba(8, 33, 74, 0.6);

  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     22px;

  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:      cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { background: var(--bg-mute); }

body {
  position: relative;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss03', 'cv09';
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--brass-2); }

::selection { background: var(--primary); color: #fff; }

button { font-family: inherit; }

.view { display: none; min-height: 100vh; flex-direction: column; }
.view-active { display: flex; }

/* ============================================================
   GLOBAL LAYERS — mesh + grain + top strip
============================================================ */

.mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.mesh > span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; will-change: transform; }
.mesh-a {
  top: -220px; left: -220px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(8, 33, 74, 0.12), transparent 65%);
  animation: drift-a 30s linear infinite;
}
.mesh-b {
  top: 30%; right: -300px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(181, 138, 62, 0.11), transparent 65%);
  animation: drift-b 38s linear infinite;
}
.mesh-c {
  bottom: -260px; left: 30%; width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(31, 107, 198, 0.07), transparent 60%);
  animation: drift-c 46s linear infinite;
}
@keyframes drift-a { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(140px, 90px); } }
@keyframes drift-b { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(-160px, -110px); } }
@keyframes drift-c { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(-110px, -130px); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.top-strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.top-strip::before {
  /* brass thread */
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass-3) 50%, var(--brass) 70%, transparent);
  opacity: 0.5;
}
.top-strip-inner {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 9px 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-strip .dot {
  width: 4px; height: 4px;
  background: var(--brass);
  box-shadow: none;
  animation: none;
  opacity: 0.6;
}

/* ============================================================
   MASTHEAD / LOCKUP
============================================================ */

.masthead {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 48px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}

.lockup {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.lockup::before {
  content: '';
  position: absolute; top: -1px; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass-3) 50%, var(--brass) 70%, transparent);
  opacity: 0.8;
}
.lockup::after {
  /* inner gold hairline */
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(181, 138, 62, 0.12);
  border-radius: 8px;
  pointer-events: none;
}
.lockup:hover { box-shadow: var(--shadow-md); }

.lockup-logo { display: block; width: auto; object-fit: contain; position: relative; z-index: 1; }
.lockup-ozai  { height: 42px; }
.lockup-tulas { height: 46px; }
.lockup-rule {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
  opacity: 0.5;
}

.masthead-r { display: flex; align-items: center; gap: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(26, 110, 64, 0.22);
  border-radius: 999px;
}
.status-pill-glass {
  background: rgba(223, 241, 230, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dot {
  width: 6px; height: 6px; border-radius: 999px;
  display: inline-block;
}
.dot-live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(26, 110, 64, 0.18);
  animation: pulse 2.2s var(--ease) infinite;
}
.dot-gold { background: var(--brass); box-shadow: 0 0 0 3px rgba(181, 138, 62, 0.2); }
.dot-success { background: var(--success); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   HERO SPLIT (LOGIN)
============================================================ */

.hero-split {
  max-width: 1200px;
  margin: 56px auto 32px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

/* giant decorative wordmark behind hero */
.wordmark {
  position: absolute;
  top: -10px; left: -40px; right: -200px;
  pointer-events: none;
  z-index: -1;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(140px, 18vw, 240px);
  line-height: 0.9;
  color: transparent;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(8, 33, 74, 0.04) 0%, rgba(8, 33, 74, 0.0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.wordmark span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(180deg, rgba(181, 138, 62, 0.1) 0%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  padding: 0 0.1em;
}

.hero-l { position: relative; min-width: 0; }

.seal {
  display: inline-block;
  margin-bottom: 28px;
  animation: seal-spin 80s linear infinite;
  filter: drop-shadow(0 6px 18px rgba(181, 138, 62, 0.22));
}
@keyframes seal-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--ink);
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--primary-2) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title::after {
  content: '';
  display: block;
  width: 80px; height: 1.5px;
  margin: 22px 0 0;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.hero-sub {
  margin: 22px 0 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 50ch;
  letter-spacing: -0.005em;
}

/* consortium row */
.consortium {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  position: relative;
}
.consortium::before {
  /* gold dot */
  content: '';
  position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
  border-radius: 0 4px 4px 0;
}
.consortium-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex-shrink: 0;
  font-weight: 500;
}
.consortium-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
}
.consortium-list li {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.consortium-list .cn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brass-2);
}

.hero-refs {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-refs li { margin: 0; }
.hero-refs a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-xs);
}
.hero-refs a:hover {
  color: var(--ink);
  border-color: var(--brass);
  background: var(--brass-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ref-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-2);
  padding: 2px 6px;
  border: 1px solid var(--brass);
  border-radius: 4px;
  background: var(--brass-soft);
}

/* RIGHT column - login card */
.hero-r {
  position: relative;
  display: flex; justify-content: flex-end; align-items: flex-start;
}

/* ============================================================
   LOGIN CARD
============================================================ */

.login-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.card-frame {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brass) 50%, var(--primary) 100%);
  z-index: 2;
}
.card-frame-inner {
  position: absolute; inset: 6px;
  border: 1px solid rgba(181, 138, 62, 0.12);
  border-radius: 11px;
  pointer-events: none;
  z-index: 1;
}

.card-head { padding: 44px 40px 24px; position: relative; z-index: 2; }
.card-head .badge { margin-bottom: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  width: max-content;
}
.badge-glass {
  color: var(--primary);
  background: rgba(229, 234, 245, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(8, 33, 74, 0.14);
}

.card-head h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.card-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.login-form { padding: 0 40px 32px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2; }

.field-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.pw-row { position: relative; }
.pw-row input {
  width: 100%;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 46px 15px 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
  box-shadow: 0 1px 0 rgba(8, 33, 74, 0.02) inset;
}
.pw-row input:focus {
  border-color: var(--primary);
  box-shadow:
    0 1px 0 rgba(8, 33, 74, 0.02) inset,
    0 0 0 4px var(--primary-ring);
}
.pw-row input::placeholder { color: var(--text-mute); font-family: var(--sans); font-size: 14px; }

.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; padding: 8px;
  color: var(--text-mute);
  cursor: pointer; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.pw-toggle:hover { color: var(--primary); background: var(--primary-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.28s var(--ease), transform 0.06s var(--ease);
  position: relative;
  -webkit-appearance: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, var(--primary-3) 0%, var(--primary) 100%);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #2A5BAA 0%, var(--primary-2) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.24) inset,
    0 1px 2px rgba(8, 33, 74, 0.18),
    0 18px 38px -10px rgba(8, 33, 74, 0.62);
}
.btn-primary .btn-arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(229, 234, 245, 0.7);
}

.btn-block { width: 100%; padding: 16px 18px; font-size: 15px; }
.btn-large { padding: 17px 24px; font-size: 15px; }
.btn-sm    { padding: 8px 14px; font-size: 13px; }

.alert {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
}
.alert-error { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(179, 50, 50, 0.22); }

/* trust grid */
.trust-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  background: var(--bg-mute);
  border-top: var(--rule);
  position: relative; z-index: 2;
}
.trust-grid li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  transition: background 0.22s var(--ease);
}
.trust-grid li:hover { background: #fff; }
.trust-grid li:nth-child(even) { border-right: 0; }
.trust-grid li:nth-last-child(-n+2) { border-bottom: 0; }
.trust-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-grid li > div:nth-child(2) { display: flex; flex-direction: column; gap: 1px; }
.trust-grid li strong {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 600;
  color: var(--ink);
}
.trust-grid li span {
  font-family: var(--mono);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

/* ============================================================
   FOOTNOTE
============================================================ */

.footnote {
  max-width: 1200px;
  margin: auto auto 32px;
  padding: 28px 48px 0;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.6;
}
.footnote-l, .footnote-r { display: flex; flex-direction: column; gap: 2px; }
.footnote-r { text-align: right; }
.footnote-c { text-align: center; }
.sigil {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--brass-2);
  padding: 6px 12px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: rgba(247, 239, 221, 0.5);
  text-transform: uppercase;
  font-weight: 500;
}
.footnote strong { color: var(--text); font-weight: 600; }
.footnote a { color: var(--primary); }

/* ============================================================
   TOPBAR
============================================================ */

.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: var(--rule);
  padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.topbar-lockup { display: flex; align-items: center; gap: 16px; }
.topbar-logo { object-fit: contain; }
.topbar-logo-ozai { height: 32px; }
.topbar-logo-tulas { height: 34px; }
.topbar-rule {
  width: 1px; height: 24px;
  background: linear-gradient(180deg, transparent, var(--brass) 40%, var(--brass) 60%, transparent);
  opacity: 0.5;
}

.topbar-mid { text-align: center; }
.topbar-doc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg-mute);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.topbar-r { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   STEPPER
============================================================ */

.stepper {
  padding: 26px 32px 6px;
  background: transparent;
  display: flex; justify-content: center;
}
.stepper-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 780px; width: 100%;
}
.step-pip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-xs);
}
.pip-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.pip-label {
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.pip-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}

/* ============================================================
   PAGE
============================================================ */

.page {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 48px 64px;
  display: flex; flex-direction: column; gap: 20px;
  flex: 1;
}

/* Welcome */
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.welcome::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--brass) 40%, var(--primary) 80%, transparent);
}
.welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.welcome-eyebrow .bar { display: inline-block; width: 20px; height: 1.5px; background: var(--brass); }
.welcome h1 {
  margin: 0 0 12px;
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.welcome p {
  margin: 0;
  font-size: 14.5px; line-height: 1.65;
  color: var(--text-soft);
  max-width: 60ch;
}

.welcome-refs { display: flex; flex-direction: column; gap: 10px; }
.ref-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-mute);
  color: var(--text);
  transition: all 0.25s var(--ease);
  position: relative;
}
.ref-tile:hover {
  border-color: var(--primary);
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ref-tile-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ref-tile:hover .ref-tile-icon { border-color: var(--brass); color: var(--brass-2); }
.ref-tile > div:not(.ref-tile-icon) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ref-tile strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ref-tile span {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ref-arrow {
  color: var(--text-mute); flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.ref-tile:hover .ref-arrow { transform: translate(3px, -3px); color: var(--primary); }

/* Step card */
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.step-card:hover { box-shadow: var(--shadow-md); }

/* decorative margin numeral on each step card */
.margin-numeral {
  position: absolute;
  top: 26px; right: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 80px;
  line-height: 0.85;
  color: rgba(8, 33, 74, 0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.margin-numeral em {
  font-style: italic;
  color: rgba(181, 138, 62, 0.18);
}

.step-head {
  display: flex; gap: 22px; align-items: flex-start;
  margin-bottom: 26px;
  position: relative; z-index: 1;
}
.step-num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
  border: 1.5px solid var(--primary-soft);
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 5px rgba(8, 33, 74, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
}
.step-num::after {
  content: '';
  position: absolute; right: -4px; top: -4px;
  width: 9px; height: 9px;
  background: var(--brass);
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(181, 138, 62, 0.2);
}
.step-head h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--ink);
}
.step-head p {
  margin: 0;
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-soft);
  max-width: 64ch;
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  position: relative; z-index: 1;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
  background: var(--bg-mute);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.field textarea { resize: vertical; min-height: 68px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F516F' stroke-width='1.8'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

/* dropzone */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-mute) 0%, #fff 100%);
  padding: 56px 24px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  z-index: 1;
}
.dropzone::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(8, 33, 74, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.dropzone:hover::before, .dropzone.dz-hover::before { opacity: 1; }
.dropzone:hover, .dropzone.dz-hover { border-color: var(--primary); }
.dz-illustration {
  color: var(--primary);
  margin-bottom: 10px;
  transition: transform 0.4s var(--ease);
  filter: drop-shadow(0 6px 14px rgba(8, 33, 74, 0.12));
}
.dropzone:hover .dz-illustration, .dropzone.dz-hover .dz-illustration {
  transform: translateY(-4px);
}
.dz-title {
  font-size: 20px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.dz-sub { font-size: 14.5px; color: var(--text-soft); }
.link-btn {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: var(--primary); cursor: pointer;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: color 0.18s var(--ease);
}
.link-btn:hover { color: var(--brass-2); }

.dz-meta {
  display: flex; gap: 22px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.dz-meta span { display: inline-flex; align-items: center; gap: 6px; }
.m-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 999px;
}
.m-dot-primary { background: var(--primary); }
.m-dot-gold    { background: var(--brass); }
.m-dot-success { background: var(--success); }

/* file list */
.file-list {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  position: relative; z-index: 1;
}
.file-list-head {
  display: flex; justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-mute);
  border-bottom: var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  text-transform: uppercase;
}
#file-rows { display: flex; flex-direction: column; }
.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 18px;
  border-bottom: var(--hairline);
  transition: background 0.18s var(--ease);
}
.file-row:hover { background: var(--bg-mute); }
.file-row:last-child { border-bottom: 0; }
.file-name {
  font-size: 14px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
}
.file-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.file-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.file-status.s-uploading { color: var(--tulas); background: var(--tulas-soft); }
.file-status.s-done      { color: var(--success); background: var(--success-soft); }
.file-status.s-error     { color: var(--danger); background: var(--danger-soft); }
.file-status.s-paused    { color: var(--warning); background: var(--brass-soft); }

.progress {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--tulas) 100%);
  border-radius: 999px;
  transition: width 0.3s var(--ease);
  position: relative;
}
.progress-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 1.6s linear infinite;
}
.progress.is-done .progress-bar  { background: var(--success); }
.progress.is-done .progress-bar::after { animation: none; opacity: 0; }
.progress.is-error .progress-bar { background: var(--danger); }
.progress.is-error .progress-bar::after { animation: none; opacity: 0; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.file-actions {
  grid-column: 1 / -1;
  display: flex; gap: 8px;
  padding-top: 4px;
}
.file-action {
  font-family: var(--sans);
  font-size: 12px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.file-action:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ============================================================
   DONE
============================================================ */

.done-card {
  position: relative;
  max-width: 640px;
  width: calc(100% - 48px);
  margin: 96px auto 40px;
  padding: 64px 52px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  overflow: hidden;
}
.card-frame-success {
  background: linear-gradient(90deg, var(--success-2) 0%, var(--brass) 50%, var(--success-2) 100%);
}

.done-seal {
  display: inline-block;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 28px rgba(42, 154, 95, 0.42));
  animation: seal-pop 0.7s var(--ease-out) both;
}
@keyframes seal-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

.done-card h1 {
  margin: 0 0 12px;
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.done-card p {
  margin: 0 auto 26px;
  font-size: 15.5px; line-height: 1.65;
  color: var(--text-soft);
  max-width: 50ch;
}
.ref-block {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 26px;
  background: linear-gradient(180deg, var(--bg-mute) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 22px;
  position: relative;
  overflow: hidden;
}
.ref-block::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
  border-radius: 0 999px 999px 0;
}
.ref-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ref-no {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.done-fineprint {
  font-size: 12.5px; line-height: 1.6;
  color: var(--text-mute);
  margin: 0 auto 26px;
  max-width: 54ch;
}
.done-actions { display: flex; gap: 10px; justify-content: center; }

/* entrance animations */
.view-active .top-strip { animation: rise 0.4s var(--ease-out) both; }
.view-active .masthead { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.04s; }
.view-active .hero-l { animation: rise 0.6s var(--ease-out) both; animation-delay: 0.08s; }
.view-active .hero-r { animation: rise 0.6s var(--ease-out) both; animation-delay: 0.16s; }
.view-active .welcome { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.06s; }
.view-active .topbar { animation: rise 0.45s var(--ease-out) both; }
.view-active .stepper { animation: rise 0.5s var(--ease-out) both; animation-delay: 0.04s; }
.view-active .step-card:nth-of-type(2) { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.10s; }
.view-active .step-card:nth-of-type(3) { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.16s; }
.view-active .step-card:nth-of-type(4) { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.22s; }
.view-active .done-card { animation: rise 0.55s var(--ease-out) both; animation-delay: 0.08s; }
.view-active .footnote { animation: rise 0.5s var(--ease-out) both; animation-delay: 0.28s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* mobile */
@media (max-width: 1000px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-r { justify-content: center; }
  .login-card { max-width: 540px; }
  .wordmark { display: none; }
}

@media (max-width: 760px) {
  .top-strip-inner { font-size: 9.5px; gap: 10px; }
  .masthead, .footnote { padding-left: 22px; padding-right: 22px; }
  .hero-split { padding: 0 22px; margin: 40px auto 24px; }
  .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; }
  .topbar-mid { display: none; }
  .topbar-logo-ozai { height: 26px; }
  .topbar-logo-tulas { height: 28px; }
  .stepper { padding: 18px 22px 4px; }
  .step-pip .pip-label { display: none; }
  .step-pip { padding: 6px 10px; }
  .page { padding: 26px 18px 36px; }
  .welcome { grid-template-columns: 1fr; padding: 26px 24px; gap: 22px; }
  .step-card { padding: 26px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .margin-numeral { font-size: 50px; top: 18px; right: 22px; }
  .lockup-ozai { height: 32px; }
  .lockup-tulas { height: 34px; }
  .lockup { padding: 10px 14px; gap: 16px; }
  .card-head { padding: 38px 28px 18px; }
  .login-form { padding: 0 28px 24px; }
  .done-card { padding: 44px 28px; margin: 36px auto 24px; }
  .footnote { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .footnote-r { text-align: center; }
  .consortium { flex-direction: column; align-items: flex-start; gap: 8px; }
  .consortium-list { gap: 12px; }
}
