
/* =========================================
   FLOPPIO — RETRO LANDING PAGE
   Version 2.0 — Widescreen Edition
   Target: 1920x1080 Desktop
   ========================================= */

/* ---------- THEME ---------- */

:root {
  color-scheme: dark;

  --bg: #080e10;
  --panel: rgba(5, 15, 17, 0.95);
  --border: #23605b;

  --green: #33f5aa;
  --green-bright: #45ffc1;

  --text: #c8d8e2;
  --muted: #a6b4c9;
  --amber: #ffca76;

  --font: "Courier New", Courier, monospace;
}

/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------- CRT SCANLINES ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;

  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.13) 4px
  );

  opacity: 0.38;
}

/* =========================================
   FULL-WIDTH WEBSITE
   ========================================= */

.site-shell {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-height: 100vh;
  min-height: 100svh;

  margin: 0;
  padding: 12px clamp(16px, 2.6vw, 54px) 0;

  background: radial-gradient(
    ellipse at 50% 38%,
    #103128 0%,
    #081719 46%,
    #060b0d 95%
  );
}

/* =========================================
   FULL-WIDTH CITYSCAPE BACKGROUND
   ========================================= */

/*
   Skyline is now part of the page
   background, like Krillion's seascape.

   It spans the whole browser width and
   sits behind the interface.
*/

.site-shell::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background-image:
    url("assets/images/floppio-skyline.png");

  background-repeat: no-repeat;
  background-position: center bottom 35px;
  background-size: 100% auto;

  opacity: 0.9;
  pointer-events: none;

  /* Blend the artwork into the dark sky */

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 43%,
    rgba(0, 0, 0, 0.65) 65%,
    black 82%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 43%,
    rgba(0, 0, 0, 0.65) 65%,
    black 82%
  );
}

/* Place actual content above the artwork */

.site-shell > * {
  position: relative;
  z-index: 1;
}

/* =========================================
   TOP NAVIGATION
   ========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;

  width: 100%;
  min-height: 46px;

  padding: 9px 18px;

  border: 1px solid var(--border);
  background: rgba(4, 14, 16, 0.9);

  color: var(--green);
  font-size: 12px;
}

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

  font-weight: bold;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--green);
}

.connection-status {
  white-space: nowrap;
  font-size: 11px;
}

.status-dot {
  display: inline-block;

  width: 7px;
  height: 7px;
  margin-right: 6px;

  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

/* =========================================
   MAIN CONTENT
   ========================================= */

main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* =========================================
   FLOPPIO LOGO
   ========================================= */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;

  height: clamp(175px, 21vh, 230px);
  flex-shrink: 0;

  margin: 0;
  overflow: hidden;
}

.hero-logo {
  display: block;

  width: min(740px, 75vw);
  height: auto;

  flex-shrink: 0;
  object-fit: contain;
}

/* =========================================
   WIDESCREEN DASHBOARD
   ========================================= */

.dashboard {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(340px, 1.05fr)
    minmax(0, 1fr);

  align-items: start;

  column-gap: clamp(20px, 2.5vw, 56px);

  width: 100%;
  min-height: 0;

  margin: 0;
  padding: 0;
}

/* Remove the old dashboard background */

.dashboard::before {
  display: none;
}

/* ---------- SIDE COLUMNS ---------- */

.side-column {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vh, 22px);

  min-width: 0;
  padding-top: 10px;
}

/* =========================================
   TERMINAL PANELS
   ========================================= */

.terminal-panel {
  width: 100%;
  min-width: 0;

  overflow: hidden;

  background: var(--panel);

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

  box-shadow:
    0 0 14px rgba(0, 255, 170, 0.035);
}

.panel-title {
  margin: 0;
  padding: 9px 13px;

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

  color: var(--green);

  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: bold;
  letter-spacing: 0.4px;
}

.panel-content {
  padding: clamp(12px, 1.1vw, 20px);

  font-size: clamp(12px, 0.73vw, 14px);
}

/* ---------- BOOT SEQUENCE ---------- */

.boot-list p {
  margin: 0 0 7px;
  white-space: nowrap;

  font-size: clamp(11px, 0.72vw, 14px);
}

.boot-list p:last-child {
  margin-bottom: 0;
}

.ok {
  color: var(--green);
}

.pending {
  color: var(--muted);
}

/* ---------- ABOUT FLOPPIO ---------- */

.about-copy {
  font-size: clamp(12px, 0.78vw, 15px);
  line-height: 1.65;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--green);
}

/* =========================================
   CENTER GAME AREA
   ========================================= */

.game-center {
  position: relative;

  min-width: 0;
  text-align: center;
}

/*
   Shorter reserved scene height.
   This is the key to avoiding a
   tall vertical landing page.
*/

.disk-scene {
  position: relative;
  isolation: isolate;

  width: min(100%, 480px);
  height: clamp(310px, 35vh, 390px);

  margin: 0 auto;
}

/* ---------- FLOATING DISK ---------- */

.floppy-disk {
  position: absolute;
  z-index: 2;

  width: 63%;
  height: auto;

  top: -5%;
  left: 18.5%;

  filter: drop-shadow(
    0 0 15px rgba(47, 255, 180, 0.22)
  );

  transform-origin: center;

  animation:
    disk-float 3s ease-in-out infinite;
}

/* ---------- FLOPPY DRIVE ---------- */

.floppy-drive {
  position: absolute;
  z-index: 1;

  width: 93%;
  height: auto;

  left: 3.5%;
  bottom: 0;
}

/* ---------- FLOATING ANIMATION ---------- */

@keyframes disk-float {
  0%, 100% {
    transform:
      translateY(0)
      rotate(-1.5deg);
  }

  50% {
    transform:
      translateY(-12px)
      rotate(1.5deg);
  }
}

/* ---------- INSERTION ANIMATION ---------- */

.disk-scene.inserting .floppy-disk {
  animation:
    disk-insert 1.1s ease-in forwards;
}

@keyframes disk-insert {
  0% {
    transform:
      translateY(0)
      scale(1);

    opacity: 1;
  }

  70% {
    transform:
      translateY(125px)
      scale(0.68);

    opacity: 1;
  }

  100% {
    transform:
      translateY(155px)
      scale(0.12);

    opacity: 0;
  }
}

/* =========================================
   INSERT DISK BUTTON
   ========================================= */

.insert-button {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;

  width: min(82%, 385px);
  min-height: 62px;

  margin: -5px auto 0;
  padding: 10px 20px;

  border: 3px solid #57ffc2;
  border-radius: 6px;

  background: linear-gradient(
    #4affe0,
    #19d97c
  );

  box-shadow:
    0 0 0 4px #153d31,
    0 0 22px rgba(38, 255, 157, 0.28);

  color: #05211a;

  font-size: clamp(17px, 1.5vw, 24px);
  font-weight: 900;
  letter-spacing: -0.5px;

  cursor: pointer;

  transition:
    filter 0.2s,
    transform 0.2s;
}

.insert-button:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.insert-button:active:not(:disabled) {
  transform: translateY(2px);
}

.insert-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ---------- DRIVE MESSAGE ---------- */

.drive-message {
  margin: 16px 5px 6px;

  color: var(--amber);

  font-size: clamp(11px, 0.78vw, 14px);
  font-weight: bold;
  letter-spacing: 0.4px;

  text-shadow: 0 0 10px #120b03;
}

/* =========================================
   COMING SOON RESULT WINDOW
   ========================================= */

/*
   Display the result over the central
   scene instead of expanding the page.

   This prevents the skyline from moving
   downward when the disk is inserted.
*/

.boot-result {
  position: absolute;
  z-index: 20;

  top: 22%;
  left: 50%;

  transform: translateX(-50%);

  width: min(95%, 390px);
  max-width: 390px;

  margin: 0;
  padding: 20px;

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

  background: rgba(34, 22, 10, 0.97);

  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.6);

  font-size: 13px;
}

.boot-result strong {
  color: var(--amber);
  font-size: 17px;
}

.boot-result p {
  margin: 8px 0;
}

.reset-button {
  margin-top: 10px;
  padding: 9px 22px;

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

  background: transparent;
  color: var(--green);

  cursor: pointer;
}

.reset-button:hover {
  background: rgba(51, 245, 170, 0.12);
}

/* =========================================
   SYSTEM STATUS PANEL
   ========================================= */

.status-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 12px;

  font-size: clamp(11px, 0.7vw, 14px);
}

.status-line strong {
  color: var(--amber);
  font-weight: normal;
}

/* ---------- PROGRESS BAR ---------- */

.progress-track {
  width: 100%;
  height: 21px;

  margin-top: 18px;
  padding: 3px;

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

  background: #071614;
}

.progress-fill {
  width: 25%;
  height: 100%;

  background: repeating-linear-gradient(
    to right,
    #37ffc0 0,
    #37ffc0 19px,
    #092b23 19px,
    #092b23 23px
  );

  box-shadow:
    0 0 12px rgba(51, 245, 170, 0.45);

  transition: width 1.3s ease;
}

/* =========================================
   COMING SOON FEATURES
   ========================================= */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vh, 20px);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.feature-icon {
  flex-shrink: 0;
  width: 34px;

  color: var(--green);

  font-size: 26px;
  line-height: 1;
}

.feature h3 {
  margin: 0 0 4px;

  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: bold;
}

.feature p {
  margin: 0;

  color: var(--muted);

  font-size: clamp(11px, 0.68vw, 13px);
}

/* =========================================
   SKYLINE CAPTION
   ========================================= */

/*
   No separate background strip.

   The existing HTML section only
   positions the slogan over the
   full-width background scene.
*/

.skyline {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  min-height: 36px;

  margin: 0;
  padding: 12px 10px;

  background: none;
  text-align: center;
}

.skyline p {
  margin: 0;

  color: #83cbb4;

  font-size: 12px;
  letter-spacing: 3px;
  line-height: 1.8;

  text-shadow:
    0 0 8px #00120b,
    0 0 15px #00120b;
}

/* =========================================
   FOOTER
   ========================================= */

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

  flex-wrap: wrap;
  gap: 12px;

  width: 100%;
  min-height: 42px;

  padding: 12px 8px;

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

  background: rgba(3, 10, 12, 0.68);

  color: #8ebcac;
  font-size: 11px;
}

/* =========================================
   SHORT DESKTOP SCREENS
   ========================================= */

@media (min-width: 1151px) and (max-height: 820px) {

  .hero {
    height: 175px;
  }

  .disk-scene {
    height: 310px;
  }

  .insert-button {
    min-height: 56px;
  }

  .side-column {
    gap: 12px;
  }

  .panel-content {
    padding: 12px;
  }

  .feature-list {
    gap: 12px;
  }
}

/* =========================================
   TABLETS / NARROW WINDOWS
   ========================================= */

@media (max-width: 1150px) {

  .hero {
    height: 190px;
  }

  .dashboard {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 20px;
  }

  .game-center {
    grid-column: 1 / -1;
    grid-row: 1;

    width: 100%;
    max-width: 560px;

    justify-self: center;
  }

  .side-column {
    padding-top: 0;
  }

  .disk-scene {
    height: 375px;
  }

  .site-shell::before {
    opacity: 0.55;
  }

  .boot-list p {
    font-size: 12px;
  }

  .boot-result {
    top: 18%;
  }
}

/* =========================================
   MOBILE PHONES
   ========================================= */

@media (max-width: 700px) {

  .site-shell {
    padding: 10px 12px 0;
  }

  /* Show skyline in its own area on phones */

  .site-shell::before {
    display: none;
  }

  .topbar {
    justify-content: center;
    text-align: center;
    padding: 12px;
  }

  .topbar nav {
    order: 3;

    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .connection-status {
    font-size: 10px;
  }

  .hero {
    height: 155px;
  }

  .hero-logo {
    width: 100%;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .game-center {
    order: 0;
    width: 100%;
    max-width: none;
  }

  .side-column {
    order: 1;

    width: 100%;
    padding: 0;

    gap: 14px;
  }

  .disk-scene {
    width: min(100%, 400px);
    height: 320px;
  }

  .floppy-disk {
    width: 68%;
    left: 16%;
  }

  .insert-button {
    width: min(88%, 355px);
    min-height: 56px;

    font-size: 18px;
  }

  .drive-message {
    font-size: 12px;
  }

  .boot-result {
    top: 19%;
    width: min(95%, 350px);
  }

  .skyline {
    flex: none;

    min-height: 170px;
    margin-top: 16px;
    padding: 30px 15px 45px;

    background-image:
      url("assets/images/floppio-skyline.png");

    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
  }

  .skyline p {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

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

  html {
    scroll-behavior: auto;
  }

  .floppy-disk,
  .disk-scene.inserting .floppy-disk {
    animation: none;
  }

  .insert-button,
  .progress-fill {
    transition: none;
  }
}
