/* ==================================================
   GLOBAL
   ================================================== */

:root {
  --background: #030815;

  --text: #edf6ff;
  --muted: #a8bbcf;

  --blue: #5fc8ff;

  --panel: rgba(7, 24, 52, 0.72);
  --panel-light: rgba(23, 57, 92, 0.35);

  --border: rgba(95, 170, 255, 0.25);
  --border-strong: rgba(95, 200, 255, 0.45);

  --success: #7de6bc;

  --radius: 18px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  min-width: 320px;
}


body {
  margin: 0;
  min-height: 100vh;

  color: var(--text);

  background:
    linear-gradient(
      rgba(2, 7, 18, 0.18),
      rgba(2, 7, 18, 0.4)
    ),
    url("../img/bg.png") center / cover fixed no-repeat;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


button {
  font: inherit;
}


h1,
h2,
p {
  margin: 0;
}


/* ==================================================
   LAYOUT
   ================================================== */

.app-shell {
  width: min(700px, calc(100% - 32px));

  margin-inline: auto;
  padding: 80px 0;

  display: grid;
  gap: 20px;
}


/* ==================================================
   TYPOGRAPHY
   ================================================== */

.page-header {
  display: grid;
  gap: 10px;

  margin-bottom: 10px;
}


.page-header h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
}


.page-header p {
  max-width: 560px;

  color: var(--muted);
  line-height: 1.6;
}


.eyebrow {
  color: var(--blue);

  font-size: 0.75rem;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ==================================================
   SHARED GLASS PANEL
   ================================================== */

.glass-panel {
  padding: 24px;

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

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      transparent 35%
    ),
    var(--panel);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(16px);
}


/* ==================================================
   PANEL HEADER
   ================================================== */

.panel-header {
  display: grid;
  gap: 6px;

  margin-bottom: 20px;
}


.panel-header h2 {
  font-size: 1.35rem;
  font-weight: 500;
}


/* ==================================================
   STATUS CONTROLS
   ================================================== */

.status-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.status-button {
  flex: 1;

  min-width: 120px;

  padding: 12px 18px;

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

  color: var(--text);
  background: var(--panel-light);

  cursor: pointer;
}


.status-button:hover {
  border-color: var(--border-strong);
}


.status-button.is-active {
  border-color: var(--blue);

  background: rgba(95, 200, 255, 0.14);
}


/* ==================================================
   RESULT
   ================================================== */

.result-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.status-badge {
  width: fit-content;

  margin-top: 10px;
  padding: 10px 16px;

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

  background: rgba(95, 200, 255, 0.1);

  font-size: 1.4rem;
  font-weight: 600;

  letter-spacing: 0.08em;
}


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

  color: var(--success);
}


.validation-message p {
  color: inherit;
}


/* ==================================================
   CONCEPT
   ================================================== */

.concept-panel {
  display: grid;
  gap: 12px;
}


.concept-panel code {
  padding: 14px;

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

  color: #cdeaff;
  background: rgba(3, 8, 21, 0.65);

  overflow-wrap: anywhere;
}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 560px) {

  .app-shell {
    padding: 40px 0;
  }


  .result-panel {
    align-items: flex-start;
    flex-direction: column;
  }


  .status-controls {
    flex-direction: column;
  }


  .status-button {
    width: 100%;
  }

}