:root {
  color-scheme: light;
  --bg: #f4f8f4;
  --bg-strong: #e8f4ec;
  --surface: #ffffff;
  --surface-2: #f8fbf8;
  --text: #10201a;
  --muted: #66736d;
  --line: #dce9e1;
  --accent: #0f7a4f;
  --accent-2: #25a36e;
  --accent-soft: #dff3ea;
  --warning: #9a5c00;
  --danger: #b42318;
  --shadow: 0 24px 80px rgba(21, 61, 42, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 163, 110, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(211, 146, 54, 0.12), transparent 24rem),
    linear-gradient(135deg, #f8fbf7 0%, var(--bg) 54%, #eef7f0 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(15, 122, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 122, 79, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 18px 0 88px;
  position: relative;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(220, 233, 225, 0.9);
  border-radius: 999px;
  box-shadow: 0 14px 44px rgba(21, 61, 42, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(145deg, #10885a, #0a623f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 24px rgba(15, 122, 79, 0.28);
}

.brand strong,
.brand em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand em {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.ghost-link {
  color: #315045;
}

.ghost-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.primary-link {
  background: var(--text);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 26, 0.15);
}

.primary-link:hover,
.submit-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}

.hero-copy,
.triage-panel,
.issue-form,
.helper-card {
  border: 1px solid rgba(220, 233, 225, 0.94);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 56px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(15, 122, 79, 0.18), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(35deg, rgba(15, 122, 79, 0.18) 0 2px, transparent 2px 18px);
}

.project-line {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 860;
  letter-spacing: 0.04em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 820px;
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #40554c;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248, 251, 248, 0.82);
  color: #496158;
  font-size: 14px;
}

.hero-stats strong {
  color: var(--accent);
}

.triage-panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel-title-row,
.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row h2,
.form-head h2,
.helper-card h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.panel-title-row span,
.form-head p {
  color: var(--muted);
  font-size: 14px;
}

.category-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.category-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: rgba(15, 122, 79, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(21, 61, 42, 0.1);
  outline: none;
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 15px;
}

.category-card small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.category-card .arrow {
  color: var(--accent);
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.issue-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 32px);
}

.form-head,
.span-2 {
  grid-column: 1 / -1;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.status-pill.is-warn {
  background: #fff3d8;
  color: var(--warning);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #244137;
  font-size: 14px;
  font-weight: 780;
}

.field b {
  color: var(--danger);
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.62;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 122, 79, 0.68);
  box-shadow: 0 0 0 4px rgba(15, 122, 79, 0.12);
  background: #fff;
}

.upload-field {
  gap: 10px;
}

.file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 18px;
  border: 1.5px dashed rgba(15, 122, 79, 0.34);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(223, 243, 234, 0.78), rgba(255, 255, 255, 0.88));
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.upload-drop:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 122, 79, 0.64);
  background: #f1fbf6;
}

.upload-drop strong {
  color: var(--accent);
  font-size: 15px;
}

.upload-drop small {
  color: var(--muted);
}

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

.attachment-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.attachment-item img {
  width: 64px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-strong);
}

.attachment-item div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.attachment-item strong,
.attachment-item small,
.attachment-item a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item strong {
  color: #18362c;
  font-size: 13px;
}

.attachment-item small,
.attachment-item a {
  color: var(--muted);
  font-size: 12px;
}

.attachment-item a {
  color: var(--accent);
  font-weight: 780;
  text-decoration: none;
}

.attachment-item button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: #edf4ef;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.submit-btn,
.secondary-btn,
.text-btn,
.mobile-submit-bar a,
.mobile-submit-bar button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.submit-btn {
  color: #fff;
  background: linear-gradient(145deg, #128a5a, #0d6b47);
  box-shadow: 0 16px 34px rgba(15, 122, 79, 0.22);
}

.secondary-btn {
  color: var(--accent);
  background: var(--accent-soft);
}

.text-btn {
  color: var(--muted);
  background: transparent;
}

button:disabled {
  cursor: progress;
  opacity: 0.66;
}

.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #315045;
  line-height: 1.58;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-success {
  border-color: rgba(15, 122, 79, 0.3);
  background: #ecf9f2;
  color: #0d6b47;
}

.form-message.is-error {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff1ef;
  color: var(--danger);
}

.side-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.helper-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.helper-card p,
.helper-card li {
  color: #52675e;
  line-height: 1.72;
}

.workflow-list,
.quality-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.workflow-list li + li,
.quality-list li + li {
  margin-top: 10px;
}

.muted-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(223, 243, 234, 0.78));
}

.full-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 860;
  text-decoration: none;
}

.mobile-submit-bar {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-stack {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, var(--max-width));
    padding-top: 10px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .topbar {
    top: 8px;
    align-items: center;
    border-radius: 24px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand em,
  .hide-mobile,
  .top-actions .ghost-link {
    display: none;
  }

  .primary-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-grid {
    margin-top: 16px;
    gap: 14px;
  }

  .hero-copy,
  .triage-panel,
  .issue-form,
  .helper-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 26px 20px 28px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: -0.06em;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-stats span {
    flex: 1 1 auto;
    justify-content: center;
  }

  .triage-panel {
    padding: 18px;
  }

  .panel-title-row,
  .form-head {
    display: grid;
  }

  .category-grid,
  .issue-form {
    grid-template-columns: 1fr;
  }

  .span-2,
  .form-head {
    grid-column: auto;
  }

  .content-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .issue-form {
    padding: 18px;
  }

  .form-actions {
    display: grid;
  }

  .submit-btn,
  .secondary-btn,
  .text-btn {
    width: 100%;
  }


  .mobile-submit-bar {
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(220, 233, 225, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 64px rgba(16, 32, 26, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-submit-bar a,
  .mobile-submit-bar button {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
  }

  .mobile-submit-bar button {
    color: var(--accent);
    background: var(--accent-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  .top-actions {
    display: none;
  }

  .topbar {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(30px, 10.2vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-copy::after {
    width: 210px;
    height: 210px;
    right: -70px;
    bottom: -64px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats span:last-child {
    grid-column: 1 / -1;
  }
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 720px) {
  h1 {
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -0.045em;
  }
}

.mobile-title {
  display: none;
}

@media (max-width: 720px) {
  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats span:last-child {
    grid-column: auto;
  }

  .hero-lead {
    overflow-wrap: anywhere;
  }
}
