:root {
  color-scheme: light;
  --bg: #eef3f9;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #17324d;
  --muted: #5d7187;
  --line: rgba(23, 50, 77, 0.12);
  --brand-blue: #2a69b8;
  --brand-blue-deep: #255ca0;
  --brand-red: #e43d4f;
  --brand-gray: #d9d9db;
  --brand-ice: #dceaf9;
  --warning-bg: rgba(228, 61, 79, 0.1);
  --warning-text: #a52b39;
  --shadow: 0 28px 60px rgba(24, 45, 72, 0.14);
  --radius-xl: 32px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(42, 105, 184, 0.12), transparent 34%),
    linear-gradient(320deg, rgba(228, 61, 79, 0.12), transparent 30%),
    radial-gradient(circle at 15% 20%, rgba(42, 105, 184, 0.16), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(228, 61, 79, 0.14), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

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

.app-shell {
  width: min(920px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.hero-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, transparent 54%, rgba(42, 105, 184, 0.04) 54%, rgba(42, 105, 184, 0.04) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(34px, 7vw, 58px);
  max-width: 9ch;
}

h2 {
  font-size: clamp(24px, 5vw, 34px);
}

.lead,
.panel-copy,
.hero-note {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  margin: 16px 0 0;
  max-width: 54ch;
}

.hero-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.hero-note,
.panel-copy {
  margin: 0;
  font-size: 14px;
}

.hero-mark {
  position: relative;
  min-height: 260px;
}

.mark-block {
  position: absolute;
  background: transparent;
}

.mark-red.top {
  top: 10px;
  left: 8px;
  width: 140px;
  height: 112px;
  border: 30px solid var(--brand-red);
  border-right: 0;
  border-bottom: 0;
}

.mark-blue.top {
  top: 0;
  left: 76px;
  width: 150px;
  height: 126px;
  border: 32px solid var(--brand-blue);
  border-left: 0;
  border-bottom: 0;
}

.mark-blue.center {
  top: 76px;
  left: 58px;
  width: 156px;
  height: 144px;
  background: var(--brand-blue);
}

.mark-red.center {
  top: 62px;
  left: 18px;
  width: 118px;
  height: 122px;
  border: 22px solid var(--brand-red);
  border-right: 0;
  border-bottom: 0;
}

.mark-gray.bottom {
  right: 6px;
  bottom: 8px;
  width: 86px;
  height: 74px;
  background: var(--brand-gray);
}

.panel {
  margin-top: 16px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ticket-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(42, 105, 184, 0.16);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(42, 105, 184, 0.44);
  box-shadow: 0 0 0 4px rgba(42, 105, 184, 0.12);
}

textarea {
  resize: vertical;
  min-height: 164px;
}

.primary-button,
.ghost-button {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-blue) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(42, 105, 184, 0.24);
}

.ghost-button {
  background: rgba(42, 105, 184, 0.08);
  color: var(--brand-blue-deep);
  font-weight: 600;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.actions {
  display: flex;
  justify-content: flex-start;
}

.hidden {
  display: none !important;
}

.profile-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(42, 105, 184, 0.1), rgba(220, 234, 249, 0.9));
  color: var(--brand-blue-deep);
  line-height: 1.55;
}

.profile-banner strong {
  display: block;
  margin-bottom: 6px;
}

.result-card {
  display: grid;
  gap: 14px;
}

.result-card h2 {
  font-size: clamp(28px, 7vw, 40px);
}

.result-card p {
  margin: 0;
}

.result-card code {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-ice);
  color: var(--brand-blue-deep);
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--warning-bg);
  color: var(--warning-text);
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 16px, 920px);
    padding-top: 16px;
  }

  .hero-card,
  .panel {
    border-radius: 24px;
    padding: 20px;
  }

  .hero-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    min-height: 180px;
  }
}
