:root {
  --bg: #090a0c;
  --bg-soft: #0d0f12;
  --surface: #111317;
  --surface-light: #171a1f;
  --border: #252a31;
  --border-light: #30363e;

  --text: #f2f4f7;
  --text-soft: #a5abb4;
  --text-muted: #656c76;

  --accent: #d9ff4f;
  --accent-soft: rgba(217, 255, 79, 0.1);
  --accent-border: rgba(217, 255, 79, 0.35);

  --danger: #ff6868;
  --danger-soft: rgba(255, 104, 104, 0.1);

  --mono: "DM Mono", monospace;
  --sans: "Inter", sans-serif;

  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  top: -250px;
  left: 50%;
  width: 700px;
  height: 700px;

  transform: translateX(-50%);

  background: radial-gradient(
    circle,
    rgba(217, 255, 79, 0.055),
    transparent 68%
  );

  pointer-events: none;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 75%
  );

  pointer-events: none;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;

  height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border: 1px solid var(--accent-border);
  border-radius: 7px;

  background: var(--accent-soft);
  color: var(--accent);

  font-family: var(--mono);
  font-size: 14px;
}

.brand-accent {
  color: var(--accent);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: var(--accent);

  box-shadow: 0 0 12px var(--accent);

  animation: pulse 2s infinite;
}

.container {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 105px 0 100px;
}

.hero {
  max-width: 760px;
  margin-bottom: 65px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 20px;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 800px;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--text-muted);
}

.hero-description {
  max-width: 620px;
  margin-top: 27px;

  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.research-card,
.panel,
.report-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.025),
      transparent 50%
    ),
    var(--surface);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.22);
}

.research-card {
  padding: 35px;
}

.card-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 32px;
}

.section-label {
  display: block;

  margin-bottom: 8px;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.card-header h2,
.panel-header h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.terminal-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid var(--border-light);
  border-radius: 9px;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 14px;
}

.input-wrapper label {
  display: block;

  margin-bottom: 10px;

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

textarea {
  width: 100%;

  resize: vertical;
  min-height: 130px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 9px;

  outline: none;

  background: #0b0d10;
  color: var(--text);

  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea::placeholder {
  color: #4d535c;
}

textarea:focus {
  border-color: var(--accent-border);

  box-shadow:
    0 0 0 3px rgba(217, 255, 79, 0.045);
}

.input-footer {
  display: flex;
  justify-content: space-between;

  margin-top: 8px;

  color: var(--text-muted);

  font-size: 11px;
}

.shortcut {
  padding: 2px 6px;

  border: 1px solid var(--border);
  border-radius: 4px;

  font-family: var(--mono);
}

.mode-section {
  margin-top: 30px;
}

.mode-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  margin-bottom: 12px;
}

.mode-title > span {
  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.mode-title small {
  color: var(--text-muted);
  font-size: 11px;
}

.mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-option {
  position: relative;

  display: block;

  cursor: pointer;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-content {
  min-height: 78px;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 15px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: #0c0e11;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.mode-option:hover .mode-content {
  border-color: var(--border-light);
}

.mode-option input:checked + .mode-content {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.mode-icon {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border: 1px solid var(--border);
  border-radius: 7px;

  color: var(--text-muted);

  font-family: var(--mono);
}

.mode-option input:checked + .mode-content .mode-icon {
  border-color: var(--accent-border);
  color: var(--accent);
}

.mode-content strong {
  display: block;

  margin-bottom: 2px;

  font-size: 13px;
}

.mode-content small {
  display: block;

  color: var(--text-muted);
  font-size: 10px;
}

.radio-mark {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 11px;
  height: 11px;

  border: 1px solid var(--border-light);
  border-radius: 50%;
}

.mode-option input:checked ~ .radio-mark {
  border-color: var(--accent);
  background: var(--accent);

  box-shadow: 0 0 0 3px rgba(217, 255, 79, 0.08);
}

.submit-btn {
  width: 100%;
  height: 57px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 25px;
  padding: 0 18px 0 21px;

  border: 1px solid var(--accent);
  border-radius: 8px;

  background: var(--accent);
  color: #0a0b0c;

  font-size: 13px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 12px 35px rgba(217, 255, 79, 0.12);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn-arrow {
  font-size: 21px;
}

.error-box {
  margin-top: 18px;
  padding: 15px 17px;

  border: 1px solid rgba(255, 104, 104, 0.3);
  border-radius: 8px;

  background: var(--danger-soft);
  color: #ff9a9a;

  font-family: var(--mono);
  font-size: 11px;

  animation: slideUp 0.3s ease;
}

.panel {
  margin-top: 25px;
  padding: 30px;
  animation: slideUp 0.45s ease;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;

  padding: 6px 9px;

  border: 1px solid var(--accent-border);
  border-radius: 5px;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.live-badge span {
  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: var(--accent);

  animation: pulse 1.2s infinite;
}

.terminal {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: #08090b;
}

.terminal-bar {
  height: 36px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 13px;

  border-bottom: 1px solid var(--border);

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 9px;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;

  display: block;

  border: 1px solid var(--border-light);
  border-radius: 50%;
}

.log-list {
  min-height: 100px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 18px;

  list-style: none;

  font-family: var(--mono);
  font-size: 11px;
  color: #9da5ae;
}

.log-list li {
  opacity: 0;

  animation: logIn 0.4s ease forwards;
}

.log-list li::first-letter {
  color: var(--accent);
}

.log-list li.alert {
  color: #ff9a9a;
}

.report-panel {
  position: relative;

  margin-top: 70px;
  padding: 50px;

  animation: reportReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.report-panel::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;

  width: 150px;
  height: 1px;

  transform: translateX(-50%);

  background: var(--accent);

  box-shadow: 0 0 25px rgba(217, 255, 79, 0.35);
}

.report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-mode {
  padding: 6px 9px;

  border: 1px solid var(--accent-border);
  border-radius: 5px;

  color: var(--accent);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.report-meta {
  margin-top: 18px;

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 10px;
}

.report-title {
  max-width: 760px;

  margin-top: 18px;

  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.report-divider {
  width: 100%;
  height: 1px;

  margin: 35px 0;

  background: var(--border);
}

.report-body {
  color: #c7ccd2;

  font-size: 15px;
  line-height: 1.9;
}

.report-body p {
  max-width: 760px;
  margin-bottom: 20px;
}

.report-body p:last-child {
  margin-bottom: 0;
}

.report-footer {
  display: flex;
  justify-content: space-between;

  margin-top: 45px;
  padding-top: 17px;

  border-top: 1px solid var(--border);

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.report-footer span:last-child {
  color: var(--accent);
}

.footer {
  width: min(1180px, calc(100% - 40px));

  display: flex;
  justify-content: space-between;

  margin: 0 auto;
  padding: 22px 0;

  border-top: 1px solid var(--border);

  color: var(--text-muted);

  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 18px; }

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.export-btn span {
  color: var(--accent);
  font-size: 13px;
}

.export-btn:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

.export-btn:active {
  transform: translateY(0);
}
@media (max-width: 700px) {
  .report-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
  }
  .export-btn {
    width: 100%;
    justify-content: center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes logIn {
  from {
    opacity: 0;
    transform: translateX(-7px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reportReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {

  .topbar {
    width: min(100% - 28px, 920px);
    height: 68px;
  }

  .status {
    display: none;
  }

  .container {
    width: min(100% - 28px, 920px);
    padding-top: 65px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-description {
    font-size: 14px;
  }

  .research-card,
  .panel,
  .report-panel {
    padding: 22px;
  }

  .mode-options {
    grid-template-columns: 1fr;
  }

  .mode-title {
    display: block;
  }

  .mode-title small {
    display: block;
    margin-top: 4px;
  }

  .report-panel {
    margin-top: 45px;
  }

  .report-topline {
    align-items: flex-start;
    gap: 15px;
  }

  .report-mode {
    white-space: nowrap;
  }

  .report-title {
    font-size: 31px;
  }

  .report-footer,
  .footer {
    flex-direction: column;
    gap: 8px;
  }

  .footer {
    width: calc(100% - 28px);
  }
}


@media (max-width: 430px) {

  .hero h1 {
    font-size: 38px;
  }

  .card-header h2,
  .panel-header h2 {
    font-size: 17px;
  }

  .terminal-icon {
    display: none;
  }

  .report-panel {
    padding: 20px;
  }

  .report-body {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
