@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

:root {
  --ink: #ffffff;
  --accent: #ffffff;
  --accent-dark: #e6f7ff;
  --card: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.2);
  --shadow: rgba(10, 24, 55, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.35%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background: linear-gradient(93deg, #02bcae 1.04%, #3a71e6 97.41%);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.4;
}

.shape-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  top: -180px;
  left: -120px;
}

.shape-b {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -240px;
  right: -140px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 90px;
  display: grid;
  gap: 30px;
}

.home {
  background: transparent;
}

.hero {
  padding: 32px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 40px var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  margin: 0 0 6px;
  font-size: 3.6rem;
  letter-spacing: 0.3px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.6px;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-meta span {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.15);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 36px var(--shadow);
  backdrop-filter: blur(8px);
}

.card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

input[type="file"] {
  border: 1px dashed var(--line);
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  flex: 1;
  color: var(--ink);
}

button {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #123;
  padding: 11px 22px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

button:disabled {
  background: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  transform: none;
}

.result {
  display: grid;
  gap: 10px;
}

.label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
}

.box {
  min-height: 60px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.2rem;
}

.diff {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.diff table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.diff td {
  padding: 4px 6px;
  vertical-align: top;
}

.diff .diff_add {
  background: rgba(46, 204, 113, 0.25);
}

.diff .diff_sub {
  background: rgba(231, 76, 60, 0.25);
}

.diff .diff_chg {
  background: rgba(241, 196, 15, 0.25);
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  form {
    flex-direction: column;
    align-items: stretch;
  }
}
