/* ============================================================
   INTERNET COURT — Shared Stylesheet
   ============================================================ */

:root {
  --bg:         #08080C;
  --surface:    #1A1A24;
  --surface2:   #22222E;
  --gold:       #FFD60A;
  --red:        #FF2D55;
  --blue:       #0A84FF;
  --orange:     #FF9F0A;
  --green:      #30D158;
  --secondary:  #8E8E9B;
  --white:      #F2F2F7;
  --radius-card: 24px;
  --radius-sm:   12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(8,8,12,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,214,10,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  border: none;
  text-decoration: none;
}

.btn-pill:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-pill:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: #08080C;
  box-shadow: 0 0 18px rgba(255,214,10,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

/* animated gradient mesh */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}

.hero__bg::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #0A84FF 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: driftA 18s ease-in-out infinite alternate;
}

.hero__bg::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FFD60A 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation: driftB 22s ease-in-out infinite alternate;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FF2D55 0%, transparent 70%);
  bottom: 0; left: 40%;
  animation: driftC 26s ease-in-out infinite alternate;
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.2); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-60px, -40px) scale(0.9); }
}
@keyframes driftC {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, 50px) scale(1.3); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero__text { max-width: 560px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,214,10,0.1);
  border: 1px solid rgba(255,214,10,0.25);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--secondary);
  margin-bottom: 42px;
  line-height: 1.55;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Phone mockup ── */
.phone-wrap {
  position: relative;
  width: 290px;
  flex-shrink: 0;
}

.phone {
  width: 290px;
  height: 590px;
  border-radius: 44px;
  background: #0D0D14;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(255,214,10,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* notch */
.phone::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #0D0D14;
  border-radius: 0 0 20px 20px;
  z-index: 10;
  border: 3px solid rgba(255,255,255,0.12);
  border-top: none;
}

.phone__screen {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 41px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ── App UI inside phone ── */
.app-header {
  padding: 52px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.app-header__logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.app-header__badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 999px;
}

.case-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 8px 12px 0;
}

/* Individual case cards */
.case-card {
  position: absolute;
  inset: 0;
  margin: 0 0 0 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: none;
}

.case-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-card.swiping-left {
  animation: swipeLeft 0.45s forwards;
}

.case-card.entering {
  animation: cardEnter 0.4s forwards;
}

@keyframes swipeLeft {
  0%   { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
}

@keyframes cardEnter {
  0%   { transform: translateY(50px) scale(0.94); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.case-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}
.chip-relationship { background: rgba(10,132,255,0.18); color: #5AC8FF; }
.chip-workplace    { background: rgba(255,214,10,0.15); color: var(--gold); }
.chip-family       { background: rgba(255,159,10,0.18); color: var(--orange); }

.case-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.case-desc {
  font-size: 11px;
  color: var(--secondary);
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.case-parties {
  display: flex;
  gap: 6px;
}

.party-tag {
  flex: 1;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}
.party-plaintiff { background: rgba(255,45,85,0.15); color: var(--red); border: 1px solid rgba(255,45,85,0.25); }
.party-defendant { background: rgba(10,132,255,0.15); color: var(--blue); border: 1px solid rgba(10,132,255,0.25); }

/* Vote buttons */
.vote-row {
  display: flex;
  gap: 6px;
  padding: 10px 12px 12px;
  flex-shrink: 0;
  background: var(--bg);
}

.vote-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.14s;
}

.vote-guilty   { background: rgba(255,45,85,0.18); color: var(--red); border: 1px solid rgba(255,45,85,0.3); }
.vote-innocent { background: rgba(10,132,255,0.18); color: var(--blue); border: 1px solid rgba(10,132,255,0.3); }
.vote-both     { background: rgba(255,159,10,0.18); color: var(--orange); border: 1px solid rgba(255,159,10,0.3); }

/* Stamp overlay */
.stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scale(0);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 4px solid;
  padding: 6px 14px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  white-space: nowrap;
}
.stamp-guilty   { color: var(--red);   border-color: var(--red);   background: rgba(255,45,85,0.1); }
.stamp-innocent { color: var(--blue);  border-color: var(--blue);  background: rgba(10,132,255,0.1); }
.stamp-both     { color: var(--orange);border-color: var(--orange);background: rgba(255,159,10,0.1); }

.stamp.show {
  animation: stampIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes stampIn {
  0%   { transform: translate(-50%,-50%) rotate(-15deg) scale(0); opacity: 0; }
  60%  { transform: translate(-50%,-50%) rotate(-15deg) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%,-50%) rotate(-15deg) scale(1); opacity: 1; }
}

/* Verdict bar */
.verdict-view {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.verdict-view.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.verdict-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.vote-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface2);
  overflow: hidden;
  display: flex;
}

.vote-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}
.fill-red    { background: var(--red); }
.fill-blue   { background: var(--blue); }
.fill-orange { background: var(--orange); }

.vote-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.legend-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-left { display: flex; align-items: center; color: var(--secondary); }
.legend-pct  { font-weight: 700; color: var(--white); }

.verdict-agree {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  padding: 8px;
  background: rgba(255,214,10,0.08);
  border-radius: 10px;
}

/* swipe hint */
.swipe-hint {
  position: absolute;
  bottom: 16px; right: 20px;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
}
.swipe-hint.show { animation: swipeHint 1.2s ease forwards; }

@keyframes swipeHint {
  0%   { opacity: 0; transform: translateX(0); }
  20%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; transform: translateX(-30px); }
  100% { opacity: 0; transform: translateX(-40px); }
}

/* ── Sections shared ── */
section { padding: 100px 0; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--secondary);
  max-width: 540px;
  line-height: 1.6;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(255,214,10,0.06);
}

.step-num {
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,214,10,0.08);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 18px;
  display: block;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.6;
}

/* ── Feature Grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border-radius: 14px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.5;
}

/* ── Download section ── */
.download-section {
  text-align: center;
  padding: 120px 0;
}

.download-section .section-sub {
  margin: 0 auto 44px;
  max-width: 480px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: #000;
  border-radius: 16px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.18);
}
.appstore-badge svg { width: 28px; height: 28px; }

.download-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--secondary);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: rgba(255,214,10,0.1);
  border-color: rgba(255,214,10,0.35);
  color: var(--gold);
}

.footer__mid {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--secondary);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer__links a { color: var(--secondary); transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__links .email-link { color: var(--gold); opacity: 0.85; }
.footer__links .email-link:hover { color: var(--gold); opacity: 1; }

.footer__copy {
  font-size: 13px;
  color: var(--secondary);
}

/* ── Legal pages ── */
.legal-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 60px;
}

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-hero p {
  color: var(--secondary);
  font-size: 16px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 14px;
  color: var(--white);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.legal-content h2:first-of-type { margin-top: 0; border-top: none; }

.legal-content p {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 10px 0 18px 22px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.8;
}

.legal-content strong { color: var(--white); }

.legal-content a { color: var(--gold); }
.legal-content a:hover { text-decoration: underline; }

.legal-content .highlight-box {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--secondary);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero__text { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .phone-wrap { order: -1; }
  .phone { width: 250px; height: 510px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .phone { width: 230px; height: 470px; }
  .nav__logo span { display: none; }
  .footer__top { flex-wrap: wrap; gap: 16px; }
  .footer__links { gap: 16px; }
  .hero__ctas { flex-direction: column; }
  .btn-pill { width: 100%; justify-content: center; }
}
