:root {
  --black: #000000;
  --orange: #EC9A1A;
  --white: #ffffff;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.14);
  --card: rgba(255,255,255,.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(236,154,26,.22), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(236,154,26,.14), transparent 26%),
    #000000;
  color: #ffffff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,.86);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

.login-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 44px 0;
}

.login-card,
.panel,
.result-card {
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 10%, rgba(236,154,26,.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 26px 80px rgba(0,0,0,.55);
}

.login-card {
  width: min(560px, 100%);
  padding: 34px;
}

.badge {
  display: inline-flex;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 950;
}

h1 span,
h2 span,
h3 span {
  color: var(--orange);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.52);
  color: #ffffff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(236,154,26,.75);
  box-shadow: 0 0 0 3px rgba(236,154,26,.15);
}

button,
.btn {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--orange);
  color: #000000;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(236,154,26,.24);
  transition: .22s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

button.secondary {
  background: rgba(255,255,255,.05);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.status {
  min-height: 24px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.app-hero {
  padding: 56px 0 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.app-hero h1 {
  max-width: 840px;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: 22px;
  padding: 24px 0 80px;
}

.panel {
  padding: 26px;
}

.panel h2,
.result-card h2 {
  margin: 0 0 18px;
  font-size: 1.7rem;
  letter-spacing: -.045em;
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.result-card {
  padding: 26px;
  position: sticky;
  top: 98px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.kpi {
  padding: 16px;
  border-radius: 20px;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.10);
}

.kpi small {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.kpi strong {
  display: block;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.045em;
}

.summary-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(236,154,26,.12);
  border: 1px solid rgba(236,154,26,.28);
}

.summary-box textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 0;
  outline: none;
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.42);
  color: #ffffff;
  line-height: 1.55;
}

.hide {
  display: none !important;
}

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

  .result-card {
    position: static;
  }

  .inputs-grid,
  .kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .shell {
    width: min(100%, calc(100% - 28px));
  }

  .login-card,
  .panel,
  .result-card {
    padding: 22px;
    border-radius: 26px;
  }

  .logo {
    height: 46px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}
