/* =================================================================
   SIGNAL TOWER — style.css  |  FINAL
   Desktop: untouched original
   Mobile:  phones ≤ 480px
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;1,400&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --bg:           #0b0b0b;
  --text:         #e9e9e7;
  --muted:        #575751;
  --green:        #4c7d59;
  --green-hi:     #62ac74;
  --quote-border: #282824;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.1; }
}

.terminal-glow {
  color: #6EFF8B;
  text-shadow:
    0 0 2px rgba(110,255,139,0.8),
    0 0 6px rgba(110,255,139,0.6),
    0 0 12px rgba(110,255,139,0.35);
  transition: text-shadow 0.3s ease;
}

/* ── TOP BAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 22px 36px 20px;
  gap: 117px;
}

.topbar-left {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 17.42px;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(110, 255, 139, 0.2);
  text-shadow:
    0 0 2px rgba(110,255,139,0.1),
    0 0 6px rgba(110,255,139,0.3),
    0 0 12px rgba(110,255,139,0.15);
}

.topbar-right {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 18.36px;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(110, 255, 139, 0.2);
  text-shadow:
    0 0 2px rgba(110,255,139,0.1),
    0 0 6px rgba(110,255,139,0.3),
    0 0 12px rgba(110,255,139,0.15);
  margin-left: auto;
}

/* ── PHASE ROW ── */
.phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 330px;
  padding-right: 60px;
  margin-bottom: 52px;
  animation: fadeUp .5s ease .07s both;
}

.phase-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-clock { display: none; }

.phase-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-hi);
  box-shadow: 0 0 5px var(--green-hi);
  flex-shrink: 0;
  animation: blink 2.6s ease-in-out infinite;
}

.phase-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 253, 253, 0.4);
}

/* ── CONTENT ── */
.content {
  padding-left: 330px;
  padding-right: 60px;
  padding-bottom: 100px;
  max-width: 1010px;
}

.headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 39px;
  letter-spacing: 0.001em;
  color: rgba(225,225,225,0.75);
  line-height: 51px;
  margin-top: 52.28px;
  margin-bottom: 52.99px;
  animation: fadeUp .6s ease .15s both;
}

.subtext {
  margin-bottom: 0px;
  animation: fadeUp .6s ease .24s both;
}

.subtext p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16.43px;
  line-height: 1;
  letter-spacing: 0.07em;
  color: rgba(225,225,225,0.9);
}

.subtext2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16.43px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 7.48px;
  color: #E1E1E199;
}

.quote-block {
  border-left: 2px solid var(--quote-border);
  padding-left: 18px;
  margin-bottom: 44px;
  margin-top: 53.21px;
  animation: fadeUp .6s ease .33s both;
}

.quote-bold {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15.61px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.quote-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 15.61px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 13.41px;
  color: #E1E1E199;
}

.headline, .subtext, .subtext2, .quote-bold, .quote-mono {
  word-wrap: break-word;
}

/* ── FORM ── */
.form-wrap {
  margin-right: 210px;
  margin-top: 53.21px;
}

.form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  caret-color: var(--green-hi);
  transition: color .2s;
  -webkit-text-size-adjust: 100%;
}

.form-input::placeholder {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.29px;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: #E1E1E159;
}

@supports (-webkit-touch-callout: none) {
  .form-input { font-size: 16px; flex: 1; min-width: 0; }
}

.form-input::placeholder { color: var(--muted); }
.form-input:focus         { color: var(--text); }

.form-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16.43px;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: #E1E1E1CC;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 37.2px;
}

.form-btn-mobile { display: none; }

.form-line {
  border-bottom: 0.52px solid #FFFFFF59;
  width: 100%;
  margin-top: 15.63px;
}

.form-hint {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 13.34px;
  line-height: 100%;
  letter-spacing: 0;
  color: rgba(110, 255, 139, 0.2);
  text-shadow:
    0 0 2px rgba(110,255,139,0.1),
    0 0 6px rgba(110,255,139,0.3),
    0 0 12px rgba(110,255,139,0.15);
}

/* =================================================================
   MOBILE ONLY — ≤ 480px
   ================================================================= */
@media (max-width: 480px) {

  html, body { height: 100%; }

  .topbar { padding: 16px 20px; gap: 0; }
  .topbar-left { font-size: 13px; letter-spacing: 0.02em; }
  .topbar-right { display: none; }

  .phase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 14px;
    margin-bottom: 0;
    gap: 0;
    border-bottom: 0.5px solid rgba(110, 255, 139, 0.15);
    box-shadow: 0 1px 8px rgba(110,255,139,0.06), 0 2px 16px rgba(110,255,139,0.04);
  }

  .phase-left { display: flex; align-items: center; gap: 6px; }
  .phase-dot  { width: 5px; height: 5px; }
  .phase-text { font-size: 11px; letter-spacing: 0.06em; color: rgba(255,253,253,0.4); }

  .phase-clock {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(110, 255, 139, 0.2);
    text-shadow:
      0 0 2px rgba(110,255,139,0.1),
      0 0 6px rgba(110,255,139,0.3),
      0 0 12px rgba(110,255,139,0.15);
  }

  .content {
    padding: 0 5vw 50px;
    max-width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .headline {
    font-size: 8vw;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 5vw;
    color: rgba(225,225,225,0.9);
    white-space: nowrap;
  }

  .subtext p {
    font-size: 3.2vw;
    font-weight: 600;
    letter-spacing: 0em;
    line-height: 1.5;
    color: rgba(225,225,225,0.9);
    white-space: nowrap;
  }

  .subtext2 {
    font-size: 3.2vw;
    font-weight: 500;
    letter-spacing: 0em;
    line-height: 1.5;
    margin-top: 3px;
    color: #E1E1E199;
    white-space: nowrap;
  }

  .quote-block {
    border-left: none;
    padding-left: 0;
    margin-top: 4vw;
    margin-bottom: 4vw;
  }

  .quote-bold {
    font-size: 3.2vw;
    font-weight: 600;
    letter-spacing: 0em;
    line-height: 1.5;
    color: #FFFFFF;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  .quote-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3vw;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-top: 0;
    color: #E1E1E199;
    line-height: 1.5;
    white-space: nowrap;
  }

  /* ── Form ── */
  .form-wrap {
    margin-top: 5vw;
    width: 85%;
    max-width: 85%;
  }

  .form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    border: 0.5px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 0 0 0 12px;   /* no top/bottom/right padding — controlled by input height */
    background: rgba(255,255,255,0.02);
    box-sizing: border-box;
    width: 100%;
    height: 11vw;          /* fixed height — nothing can stretch it */
    overflow: hidden;
  }

  .form-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    font-size: 3.2vw;
    color: rgba(225,225,225,0.35);
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    outline: none;
    /* centres placeholder text vertically */
    line-height: 11vw;
  }

  .form-input::placeholder {
    font-family: 'Inter', sans-serif;
    font-size: 3.2vw;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(225,225,225,0.35);
  }

  .form-line { display: none; }
  .form-btn  { display: none; }

  /* Arrow button — fills full height, flush right */
  .form-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    border: none;
    outline: none;
    cursor: pointer;
    /* fills entire height of form-row */
    align-self: stretch;
    width: 11vw;
    min-width: 11vw;
    /* rounded right side only, matching box radius */
    border-radius: 0 5px 5px 0;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: -0.5px;  /* flush with border */
    padding: 0;
    transition: background .2s;
  }

  /* SVG arrow — scales with button */
  .form-btn-mobile svg {
    width: 45%;
    height: 45%;
    display: block;
  }

  .form-btn-mobile:active { background: var(--green-hi); }
  .form-btn-mobile:active svg { stroke: #000; }

  .form-hint {
    margin-top: 3vw;
    font-size: 2.4vw;
    line-height: 1.6;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .headline    { font-size: 24px; margin-bottom: 16px; }
    .quote-block { margin-top: 20px; margin-bottom: 20px; }
    .form-wrap   { margin-top: 20px; }
    .content     { padding-bottom: 30px; min-height: auto; }
  }
}
