@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

:root {
  --term-bg: #0a0f0a;
  --term-screen: #0d140d;
  --term-green: #33ff66;
  --term-green-dim: #1a9e3f;
  --term-amber: #ffb000;
  --term-cyan: #00e5ff;
  --term-scan: rgba(51, 255, 102, 0.04);
  --term-font: 'Share Tech Mono', 'Courier New', monospace;
  --term-display: 'VT323', monospace;
}

* { box-sizing: border-box; }

body.contact-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at center, #121a12 0%, #050805 70%),
    #050805;
  color: var(--term-green);
  font-family: var(--term-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}

.contact-topbar {
  width: min(920px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--term-green-dim);
}

.contact-topbar a {
  color: var(--term-cyan);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.contact-topbar a:hover {
  color: var(--term-green);
  text-shadow: 0 0 8px rgba(51, 255, 102, 0.5);
}

.crt {
  width: min(920px, 100%);
  background: linear-gradient(145deg, #2a2a2a, #111);
  border-radius: 18px;
  padding: 14px 14px 22px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.crt__bezel-label {
  text-align: center;
  font-family: var(--term-display);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.crt__screen {
  position: relative;
  background: var(--term-screen);
  border: 2px solid #1f2f1f;
  border-radius: 8px;
  padding: 20px clamp(16px, 3vw, 28px) 24px;
  min-height: 72vh;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
}

.crt__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--term-scan) 2px,
    var(--term-scan) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.crt__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 3;
}

.crt__content {
  position: relative;
  z-index: 1;
}

.terminal__ascii {
  font-family: var(--term-font);
  font-size: clamp(0.45rem, 1.4vw, 0.62rem);
  line-height: 1.15;
  white-space: pre;
  margin: 0 0 20px;
  color: var(--term-green);
  text-shadow: 0 0 6px rgba(51, 255, 102, 0.35);
}

.terminal__ascii .logo-sun { color: var(--term-amber); }
.terminal__ascii .logo-leaf { color: #44dd66; }
.terminal__ascii .logo-water { color: var(--term-cyan); }
.terminal__ascii .logo-dollar { color: #fff; font-weight: bold; }
.terminal__ascii .logo-title { color: var(--term-green); }

.terminal__output {
  margin-bottom: 24px;
}

.terminal__line {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--term-green-dim);
  text-shadow: 0 0 4px rgba(51, 255, 102, 0.2);
}

.terminal__line--boot {
  color: var(--term-green);
}

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

.terminal__cursor-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  opacity: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.terminal__cursor-line--active {
  opacity: 1;
  pointer-events: auto;
}

.terminal__prompt {
  color: var(--term-cyan);
  flex-shrink: 0;
  user-select: none;
}

.terminal__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--term-green);
  font-family: var(--term-font);
  font-size: 0.92rem;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  caret-color: var(--term-green);
  text-shadow: 0 0 4px rgba(51, 255, 102, 0.25);
}

.terminal__input:disabled {
  opacity: 0.5;
}

.terminal__input::selection {
  background: rgba(51, 255, 102, 0.35);
  color: #fff;
}

/* Fake block caret when input is focused (native caret also visible) */
.terminal__cursor {
  display: none;
  width: 10px;
  height: 1.1em;
  background: var(--term-green);
  animation: blink-cursor 1s step-end infinite;
  flex-shrink: 0;
}

.terminal__cursor-line--active:not(:focus-within) .terminal__cursor {
  display: inline-block;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

.terminal__line--cmd {
  color: var(--term-green);
  text-shadow: 0 0 4px rgba(51, 255, 102, 0.25);
}

.terminal__line--ai {
  color: var(--term-amber);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.25);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__line--thinking {
  color: var(--term-green-dim);
  font-style: italic;
  animation: thinking-pulse 1s ease-in-out infinite;
}

.terminal__line--error {
  color: #ff6666;
  text-shadow: 0 0 4px rgba(255, 80, 80, 0.35);
}

@keyframes thinking-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.terminal__section {
  margin-bottom: 22px;
  padding: 14px 0 0;
  border-top: 1px dashed rgba(51, 255, 102, 0.2);
}

.terminal__section-title {
  font-family: var(--term-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--term-amber);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.terminal__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.terminal__label {
  color: var(--term-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.terminal__value {
  color: var(--term-green);
}

.terminal__value a {
  color: var(--term-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terminal__value a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(51, 255, 102, 0.6);
}

/* Click-to-call — opens Phone / FaceTime / Skype / etc. via tel: */
a.terminal__phone {
  color: var(--term-amber);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

a.terminal__phone:hover,
a.terminal__phone:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.65);
  outline: none;
}

.terminal__line a.terminal__phone {
  color: var(--term-amber);
}

.terminal__section--support {
  border-top-color: rgba(255, 176, 0, 0.35);
}

.terminal__support {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--term-green);
  margin: 0;
  text-shadow: 0 0 4px rgba(51, 255, 102, 0.2);
}

.terminal__support strong {
  color: #fff;
  font-weight: 600;
}

.terminal__support a {
  color: var(--term-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terminal__support a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.55);
}

.terminal__support-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border: 1px solid var(--term-amber);
  border-radius: 2px;
  font-family: var(--term-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--term-amber);
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.45);
}

.terminal__mission {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--term-green);
  max-width: 68ch;
  text-shadow: 0 0 4px rgba(51, 255, 102, 0.15);
}

.terminal__thanks {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(51, 255, 102, 0.25);
  background: rgba(51, 255, 102, 0.04);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--term-green);
}

.terminal__thanks strong {
  color: var(--term-amber);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.crt__leds {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.crt__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.crt__led--power {
  background: #33ff66;
  box-shadow: 0 0 10px rgba(51, 255, 102, 0.8);
}

.crt__led--active {
  background: var(--term-amber);
  box-shadow: 0 0 8px rgba(255, 176, 0, 0.7);
  animation: blink-cursor 1.4s step-end infinite;
}

@media (max-width: 640px) {
  .terminal__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .terminal__ascii {
    font-size: 0.38rem;
  }
}