/* ================================================================
   UNYKORN // INTEL — LAW PLATFORM DESIGN SYSTEM
   law.unykorn.org
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --midnight:   #080b16;
  --navy:       #0e1225;
  --navy-light: #161b33;
  --navy-card:  #111628;
  --gold:       #c9a84c;
  --gold-light: #d4b868;
  --gold-dim:   rgba(201,168,76,0.12);
  --parchment:  #f5f0e8;
  --cream:      #e8e2d4;
  --muted:      #8a9ab0;
  --border:     #1e2e42;
  --danger:     #c44444;
  --success:    #3a8a5a;

  --serif: Georgia, 'Times New Roman', serif;
  --body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Courier New', Courier, monospace;

  --radius: 8px;
  --transition: 0.2s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.parchment { color: var(--parchment); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--parchment); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
.overline {
  display: block;
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}
.lead {
  font-size: 1.15rem;
  color: var(--cream);
  max-width: 700px;
  line-height: 1.8;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,11,22,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
  line-height: 1.1;
}
.nav-wordmark span { color: rgba(255,255,255,0.3); }
.nav-sub {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: var(--gold-dim); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--midnight) !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: 4px;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(8,11,22,0.92) 0%, rgba(14,18,37,0.88) 60%, rgba(8,11,22,0.95) 100%),
    url('../images/hero-brand.png') center center / cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--parchment);
  margin-bottom: 8px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-rule {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 28px 0;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.hero-pill {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-gold:hover { background: var(--gold-light); color: var(--midnight); box-shadow: 0 6px 28px rgba(201,168,76,0.45); }
.btn-outline {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}
.hero-stat .num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--serif);
  line-height: 1;
}
.hero-stat .label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* ── SECTION HEADERS ── */
.section-head {
  margin-bottom: 60px;
}
.section-head h2 {
  margin-top: 8px;
}
.section-head .lead {
  margin-top: 14px;
}
.divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

/* ── CARDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 28px; }

.card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card h3 { color: var(--parchment); margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .9rem; line-height: 1.7; margin: 0; }
.card-tag {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ── CASE CARDS ── */
.case-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.case-card:hover { border-color: rgba(201,168,76,0.35); box-shadow: 0 16px 50px rgba(0,0,0,0.5); }
.case-card-header {
  background: var(--midnight);
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.case-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-active { background: rgba(220,38,38,0.15); color: #ef4444; border: 1px solid rgba(220,38,38,0.3); }
.status-active::before { content: ''; width: 5px; height: 5px; background: #ef4444; border-radius: 50%; animation: pulse 2s infinite; }
.status-appeal { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.case-card-body { padding: 24px 28px; }
.case-card-body h3 { font-size: 1.05rem; color: var(--parchment); margin-bottom: 14px; }
.case-meta { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-meta li { font-size: .82rem; }
.case-meta .key { color: var(--muted); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.case-meta .val { color: var(--cream); font-weight: 500; }
.case-card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case-access-link {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap var(--transition);
}
.case-access-link:hover { gap: 10px; color: var(--gold-light); }

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.step {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  background: var(--navy-card);
}
.step:last-child { border-right: 1px solid var(--border); }
.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201,168,76,0.15);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 12px;
}
.step h4 { color: var(--parchment); margin-bottom: 8px; font-size: 1rem; }
.step p { color: var(--muted); font-size: .85rem; margin: 0; }

/* ── BAND ── */
.band {
  background: var(--midnight);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  background: var(--midnight);
  font-family: var(--body);
  font-weight: 700;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-size: .88rem;
}
.data-table tr:hover td { background: rgba(201,168,76,0.03); }
.data-table .mono { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box h4 { color: var(--gold); margin-bottom: 8px; font-size: 1rem; }
.highlight-box p { color: var(--cream); margin: 0; font-size: .92rem; }

/* ── FOOTER ── */
.footer {
  background: var(--midnight);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-brand p { font-size: .85rem; color: var(--muted); max-width: 280px; line-height: 1.7; }
.footer h4 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
  font-family: var(--body);
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: .85rem; text-decoration: none; transition: color var(--transition); }
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: rgba(138,154,176,0.6); margin: 0; }
.footer-chain {
  font-size: .7rem;
  letter-spacing: .12em;
  color: rgba(201,168,76,0.5);
  font-family: var(--mono);
  text-transform: uppercase;
}

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HEADER ── */
.page-header {
  background: var(--midnight);
  border-bottom: 1px solid var(--border);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .overline { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-header p { color: var(--muted); margin: 14px 0 0; font-size: 1rem; max-width: 600px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 1px solid var(--border); }
  .step:nth-child(even) { border-right: 1px solid var(--border); }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 66px; left: 0; right: 0; background: rgba(8,11,22,0.98); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.6rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 1px solid var(--border); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
