/* =========================================================================
   Pangalom — Coming Soon
   Simulated terminal system panel
   ========================================================================= */
:root {
  --bg: #0a0a0c;
  --border: #33363d;
  --border-soft: #24262c;
  --text-primary: #ececea;
  --text-dim: #6b7078;

  --amber: #f5a623;
  --blue: #4dabf7;
  --green: #51cf66;
  --green-bg: #2f9e44;
  --blue-bg: #2f6fed;
  --red: #ff6b6b;
  --pink: #e879b0;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  --font-pixel: 'Press Start 2P', var(--font-mono);

  --fs-body: clamp(0.72rem, 0.64rem + 0.32vw, 0.92rem);
  --fs-logo: clamp(1.5rem, 0.9rem + 3vw, 2.9rem);

  --page-max-w: 900px;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 1px solid var(--text-primary);
  outline-offset: 3px;
}

/* =========================================================================
   Page shell
   ========================================================================= */
.term-page {
  max-width: var(--page-max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.boot-line {
  margin: 0 0 0.35rem;
  color: var(--text-dim);
}

.boot-line--cmd {
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

/* =========================================================================
   Logo
   ========================================================================= */
.logo {
  margin: 0 0 2rem;
  font-family: var(--font-pixel);
  font-size: var(--fs-logo);
  line-height: 1.4;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #e64980 0%, #f5a623 55%, #ffd43b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Panel
   ========================================================================= */
.panel {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.panel__title {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.panel__col {
  padding: 1rem 1.1rem;
}

.panel__col:first-child {
  border-right: 1px solid var(--border-soft);
}

.col__heading {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.col__heading--amber { color: var(--amber); }
.col__heading--blue { color: var(--blue); }

.row {
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
}

.row:last-child {
  margin-bottom: 0;
}

.label {
  color: var(--text-dim);
  min-width: 5.6em;
}

.bar {
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.dim {
  color: var(--text-dim);
}

.value-red { color: var(--red); }
.value-pink { color: var(--pink); }
.value-green { color: var(--green); }

.badge {
  display: inline-block;
  padding: 0.05em 0.55em;
  border-radius: 3px;
  font-weight: 700;
  color: #fff;
  font-size: 0.92em;
}

.badge--green { background: var(--green-bg); }
.badge--blue { background: var(--blue-bg); }

/* =========================================================================
   Logs
   ========================================================================= */
.panel__logs {
  padding: 1rem 1.1rem 1.15rem;
}

.logs__heading {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.log-line {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  display: flex;
  gap: 0.5em;
}

.log-line:last-child {
  margin-bottom: 0;
}

.arrow {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* =========================================================================
   Success + final prompt
   ========================================================================= */
.success-line {
  margin: 1.5rem 0 0;
  color: var(--text-primary);
}

.final-prompt {
  margin: 1.75rem 0 0;
  color: var(--text-primary);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--text-primary);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.footnote {
  margin: 2.5rem 0 0;
  color: var(--text-dim);
  font-size: 0.78em;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 640px) {
  .panel__grid {
    grid-template-columns: 1fr;
  }

  .panel__col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .label {
    min-width: 5.2em;
  }
}

@media (max-width: 420px) {
  .bar {
    display: block;
  }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .panel {
    animation: none;
  }

  .cursor {
    animation: none;
    opacity: 1;
  }
}
