:root {
  --bg-dark: #05060d;
  --bg-darker: #0b1021;
  --bg-light: #f1f5ff;
  --text-light: #f8fbff;
  --text-dark: #101828;
  --accent: #2f80ed;
  --accent-2: #00d4ff;
  --card-glass: rgba(255, 255, 255, 0.68);
  --shadow-soft: 0 20px 55px rgba(6, 20, 53, 0.24);
  --radius-xl: 30px;
  --heading-font: "Playfair Display", "Times New Roman", serif;
  --body-font: "Algerian", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text-dark);
  background:
    radial-gradient(circle at 8% 8%, rgba(50, 118, 255, 0.36), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(0, 212, 255, 0.25), transparent 30%),
    linear-gradient(180deg, #04050c 0%, #0d1330 34%, #eef3ff 34%, #f9fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  text-transform: uppercase;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.site-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 38px;
}

.hero-section {
  min-height: 40vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-light);
  padding-top: 34px;
  animation: riseIn 700ms ease both;
}

.hero-content h1 {
  margin: 22px 0 8px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
  font-family: var(--heading-font);
  font-weight: 700;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  letter-spacing: 0.04em;
  color: #ffffff;
}

.hero-content p {
  margin: 0;
  opacity: 0.88;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.logo-circle {
  width: 142px;
  height: 142px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(145deg, #000000 0%, #0a0a0a 52%, #ffffff 100%);
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 800;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25), var(--shadow-soft);
  animation: pulseGlow 4s ease-in-out infinite;
}

.combined-logo {
  gap: 10px;
}

.logo-text {
  font-size: 2.45rem;
  line-height: 1;
}

.logo-divider {
  width: 2px;
  height: 46px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.logo-symbol {
  font-size: 2.1rem;
  line-height: 1;
}

.dispute-section,
.punishment-section,
.offence-section,
.judgment-section,
.tax-section,
.bare-acts-section {
  margin-top: 18px;
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  animation: riseIn 650ms ease both;
}

.dispute-section h2,
.punishment-section h2,
.offence-section h2,
.judgment-section h2,
.tax-section h2,
.bare-acts-section h2 {
  margin: 0 0 20px;
  color: #0e1a3a;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(43, 78, 149, 0.16);
}

h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #102249;
}

.dispute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 16px;
}

.dispute-card {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #d8e3f5;
  background: linear-gradient(145deg, #ffffff, #eaf2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 30px rgba(29, 53, 97, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: #1f2937;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.dispute-card span {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #0b1738;
  text-transform: uppercase;
}

.dispute-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #9ebcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 20px 36px rgba(38, 78, 148, 0.22);
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 3px solid #7ea8ff;
  outline-offset: 4px;
}

.offence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.punishment-circles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.punishment-circle {
  width: 100%;
  max-width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid #d2e1fb;
  background: linear-gradient(145deg, #ffffff, #e9f1ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(38, 76, 143, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  justify-self: center;
}

.punishment-circle label,
.punishment-circle h3 {
  margin: 0;
  font-weight: 800;
  color: #111827;
}

.punishment-circle input {
  width: min(230px, 100%);
  height: 40px;
  font-size: 0.9rem;
}

.punishment-circle button {
  width: min(230px, 100%);
  height: 40px;
  font-size: 0.9rem;
}

.punishment-result {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.45;
}

.punishment-output-box {
  width: min(235px, 100%);
  border: 1px solid #cfd9e7;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.punishment-note {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: #475569;
}

.panel {
  border-radius: 20px;
  border: 1px solid #d5e1f5;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(242, 247, 255, 0.93));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-note {
  margin: -4px 0 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.35;
}

label {
  font-weight: 700;
  color: #1f2937;
}

input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #c3d3ee;
  padding: 0 14px;
  font-size: 0.97rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  text-transform: uppercase;
}

input:focus {
  outline: 0;
  border-color: #4b86f8;
  box-shadow: 0 0 0 4px rgba(79, 138, 255, 0.2);
}

button {
  border: 0;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(120deg, #1c3f93, #2f80ed 55%, #00aadf);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 89, 190, 0.3);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(31, 89, 190, 0.38);
}

.result-panel h3 {
  margin: 0 0 12px;
  color: #111827;
}

.result-text {
  min-height: 84px;
  color: #1f2937;
  line-height: 1.5;
}

.judgment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tax-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 16px;
}

.tax-input-panel {
  max-width: 330px;
}

textarea {
  border-radius: 12px;
  border: 1px solid #c3d3ee;
  padding: 12px 14px;
  font-size: 0.97rem;
  resize: vertical;
  min-height: 120px;
  font-family: var(--body-font);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  text-transform: uppercase;
}

input::placeholder,
textarea::placeholder {
  text-transform: uppercase;
}

textarea:focus {
  outline: 0;
  border-color: #4b86f8;
  box-shadow: 0 0 0 4px rgba(79, 138, 255, 0.2);
}

.judgment-list {
  margin: 0;
  padding-left: 20px;
}

.judgment-list li {
  margin-bottom: 10px;
}

.judgment-list a {
  color: #0f172a;
  font-weight: 700;
}

.bare-acts-list {
  display: grid;
  gap: 10px;
}

.bare-acts-list a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  width: fit-content;
  transition: border-color 150ms ease;
}

.bare-acts-list a:hover {
  border-color: #2f80ed;
}

.dispute-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.78);
  padding: 18px;
}

.dispute-modal.is-open {
  display: flex;
}

.modal-circle {
  width: min(700px, 100%);
  min-height: min(700px, calc(100vh - 36px));
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, #ffffff 0%, #edf4ff 55%, #d6e3fb 100%);
  border: 1px solid #d2dae7;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.35);
  padding: 70px 68px 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.dispute-section {
  animation-delay: 70ms;
}

.punishment-section {
  animation-delay: 130ms;
}

.offence-section {
  animation-delay: 190ms;
}

.judgment-section {
  animation-delay: 250ms;
}

.bare-acts-section {
  animation-delay: 310ms;
}

.tax-section {
  animation-delay: 280ms;
}

.dispute-card:nth-child(1) {
  animation: riseIn 500ms ease 80ms both;
}

.dispute-card:nth-child(2) {
  animation: riseIn 500ms ease 140ms both;
}

.dispute-card:nth-child(3) {
  animation: riseIn 500ms ease 200ms both;
}

.dispute-card:nth-child(4) {
  animation: riseIn 500ms ease 260ms both;
}

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

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25), var(--shadow-soft);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.35), 0 24px 60px rgba(11, 36, 92, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.modal-circle h3 {
  margin: 0;
  text-align: center;
}

.close-modal-btn {
  position: absolute;
  top: 24px;
  right: 34px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cbd4e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.modal-boxes {
  display: grid;
  gap: 10px;
}

.modal-box {
  border-radius: 14px;
  border: 1px solid #d4dcea;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
}

.modal-box h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.modal-box p {
  margin: 0;
  color: #1f2937;
  line-height: 1.4;
  font-weight: 600;
}

.modal-box input {
  margin-bottom: 10px;
}

.modal-note {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: #334155;
}

@media (max-width: 860px) {
  .dispute-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .offence-layout {
    grid-template-columns: 1fr;
  }

  .judgment-layout {
    grid-template-columns: 1fr;
  }

  .tax-layout {
    grid-template-columns: 1fr;
  }

  .tax-input-panel {
    max-width: 100%;
  }

  .punishment-circles {
    grid-template-columns: 1fr;
  }

  .punishment-circle {
    max-width: 100%;
    height: auto;
    min-height: 260px;
    border-radius: 24px;
  }
}

@media (max-width: 500px) {
  .site-wrap {
    padding: 0 14px 20px;
  }

  .dispute-section,
  .punishment-section,
  .offence-section,
  .judgment-section,
  .tax-section,
  .bare-acts-section {
    padding: 20px;
    border-radius: 20px;
  }

  .modal-circle {
    width: 100%;
    min-height: auto;
    border-radius: 26px;
    padding: 60px 18px 18px;
  }

  .close-modal-btn {
    top: 14px;
    right: 14px;
  }
}
