/* ═══════════════════════════════════════════════════════════
   EXOFT TECHNOLOGIES — Coming Soon Landing Page
   Pure CSS (no Tailwind) — Responsive Cyberpunk Design
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.cdnfonts.com/css/space-age');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=Black+Ops+One&family=Bebas+Neue&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  overflow-x: hidden;
}

/* ═══ PAGE WRAPPER ═══ */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, #050a0e, #071014, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ═══ LOGO ═══ */
.logo {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 20;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.8s 0.5s forwards;
}
.logo img {
  height: 40px;
  width: auto;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(0,224,255,0.2));
}
@media (min-width: 768px) {
  .logo { top: 24px; left: 24px; }
  .logo img { height: 56px; }
}

/* ═══ BACKGROUND GLOW ═══ */
.bg-glow {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}
.bg-glow-orb {
  width: 600px; height: 500px;
  background: #22d3ee;
  border-radius: 50%;
  filter: blur(180px);
}

/* ═══ GRID OVERLAY ═══ */
.grid-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(0,224,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ═══ PARTICLES ═══ */
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: #00E0FF;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle 5s ease-in-out infinite;
}

/* ═══ MAIN CONTAINER ═══ */
.main-container {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 900px;
}
.main-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}

/* ═══ MONITOR ═══ */
.monitor-wrap {
  position: relative;
  width: 92%;
  z-index: 10;
  opacity: 0;
  transform: translateY(40px) scale(0.92);
  animation: monitorIn 1.2s 0.2s cubic-bezier(0.22,1,0.36,1) forwards;
}
@media (min-width: 768px) {
  .monitor-wrap { width: 85%; }
}

/* Ambient light under monitor */
.monitor-ambient {
  position: absolute;
  bottom: -32px; left: 10%; right: 10%;
  height: 64px;
  background: #00E0FF;
  filter: blur(48px);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseAmbient 3s ease-in-out infinite;
}

/* Shell */
.monitor-shell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(170deg, #2c2c2c 0%, #1a1a1a 40%, #111 100%);
  padding: clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px) clamp(16px, 3vw, 32px);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.9),
    0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* Webcam dot */
.webcam {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Bezel edge */
.bezel-edge {
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 20;
  border: 1px solid rgba(255,255,255,0.03);
  border-bottom-color: rgba(0,0,0,0.2);
}

/* Screen recess */
.screen-recess {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.9),
    inset 0 2px 4px rgba(0,0,0,0.8),
    0 0 1px rgba(0,224,255,0.08);
}

/* IPS panel */
.ips-panel {
  position: relative;
  background: #080c10;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Backlight bleed */
.backlight-tl {
  position: absolute; top: 0; left: 0;
  width: 80px; height: 64px;
  background: #0d1218; opacity: 0.4;
  filter: blur(20px); pointer-events: none;
}
.backlight-br {
  position: absolute; bottom: 0; right: 0;
  width: 96px; height: 64px;
  background: #0d1218; opacity: 0.3;
  filter: blur(20px); pointer-events: none;
}

/* CRT scanlines */
.crt-scanlines {
  position: absolute; inset: 0;
  z-index: 10; pointer-events: none;
  opacity: 0.025;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.4) 3px
  );
}

/* Screen reflection */
.screen-reflection {
  position: absolute; inset: 0;
  z-index: 30; pointer-events: none;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.015) 0%, transparent 40%,
    transparent 60%, rgba(255,255,255,0.008) 100%);
}

/* Screen inner glow */
.screen-inner-glow {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 20;
  box-shadow: inset 0 0 60px rgba(0,224,255,0.02);
}

/* Bottom bezel */
.bottom-bezel {
  display: flex; justify-content: center; align-items: center;
  padding-top: 6px;
}
.bottom-bezel-line {
  width: 30px; height: 2px;
  background: linear-gradient(90deg, transparent, #333, transparent);
  border-radius: 9999px;
}

/* Power LED */
.power-led {
  position: absolute;
  bottom: 6px; right: 14px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #00E0FF;
  z-index: 30;
  animation: ledPulse 2s ease-in-out infinite;
}

/* Stand neck */
.stand-neck-wrap { display: flex; justify-content: center; }
.stand-neck {
  position: relative;
  width: clamp(30px, 5vw, 50px);
  height: clamp(30px, 5.5vw, 60px);
  background: linear-gradient(180deg, #252525 0%, #1a1a1a 50%, #151515 100%);
  clip-path: polygon(15% 0%, 85% 0%, 70% 100%, 30% 100%);
}
.stand-neck-highlight {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

/* Stand base */
.stand-base-wrap { display: flex; justify-content: center; }
.stand-base {
  position: relative;
  width: clamp(100px, 18vw, 180px);
  height: clamp(8px, 1.5vw, 14px);
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 60%, #111 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.4);
}
.stand-base-highlight {
  position: absolute;
  top: 1px; left: 20%; right: 20%; height: 1px;
  border-radius: 9999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* Desk shadow */
.desk-shadow-wrap { display: flex; justify-content: center; margin-top: 4px; }
.desk-shadow {
  width: clamp(120px, 22vw, 220px);
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent);
  filter: blur(4px);
  opacity: 0.3;
}

/* Subtitle below monitor */
.subtitle {
  margin-top: 24px;
  color: #3a4a54;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  opacity: 0;
  transform: translateY(10px);
}
.subtitle.visible {
  animation: fadeInUp 1s 1.5s forwards;
}
@media (min-width: 768px) {
  .subtitle { margin-top: 40px; font-size: 12px; }
}

/* ═══════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════ */
.boot-screen {
  position: absolute; inset: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.3s;
}
.boot-black { position: absolute; inset: 0; background: #050505; }

/* Binary noise */
.boot-binary-noise {
  position: absolute; inset: 0;
  color: #00E0FF;
  opacity: 0.04;
  font-size: 6px; line-height: 8px;
  overflow: hidden;
  pointer-events: none;
  font-family: 'Share Tech Mono', monospace;
  white-space: pre;
}

/* Boot glitch slices */
.boot-glitch-slice {
  position: absolute; left: 0; right: 0;
  background: #00E0FF;
  animation: bootSlice 0.15s linear infinite;
}

/* Boot text content */
.boot-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
}
.boot-content.phase2 { animation: fadeIn 0.5s forwards; }
.boot-content.phase3 { animation: glitchShake 0.6s linear infinite; }

.boot-title {
  font-size: clamp(28px, 8vw, 80px);
  letter-spacing: 0.15em;
  color: #00E0FF;
  font-family: 'Bebas Neue', sans-serif;
  user-select: none;
  position: relative;
  text-shadow: 0 0 40px rgba(0,224,255,0.6), 0 0 80px rgba(0,224,255,0.3), 0 0 120px rgba(0,224,255,0.15);
}

/* Chromatic layers */
.boot-title .chroma-red,
.boot-title .chroma-blue {
  position: absolute; inset: 0;
  font-family: 'Bebas Neue', sans-serif;
  opacity: 0;
  transition: none;
}
.boot-title .chroma-red { color: #ff0040; clip-path: inset(10% 0 50% 0); }
.boot-title .chroma-blue { color: #00E0FF; clip-path: inset(55% 0 10% 0); }
.phase3 .boot-title .chroma-red { opacity: 0.4; transform: translate(3px, -1px); }
.phase3 .boot-title .chroma-blue { opacity: 0.3; transform: translate(-3px, 1px); }

.boot-subtitle {
  font-size: clamp(6px, 1.5vw, 12px);
  color: #4a5a64;
  letter-spacing: 0.4em;
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
}

/* Loading bar */
.boot-loading-wrap {
  margin-top: 16px;
  width: clamp(100px, 20vw, 200px);
  height: 2px;
  background: #1a2a34;
  overflow: hidden;
  border-radius: 9999px;
}
.boot-loading-bar {
  height: 100%;
  background: #00E0FF;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(0,224,255,0.5);
  width: 0%;
  transition: width 2s ease-out;
}
.boot-loading-bar.active { width: 70%; }
.boot-loading-bar.complete { width: 100%; transition-duration: 0.5s; }

.boot-loading-text {
  font-size: clamp(4px, 0.8vw, 7px);
  color: #3a4a54;
  letter-spacing: 0.3em;
  margin-top: 8px;
  font-family: 'Share Tech Mono', monospace;
  opacity: 0.6;
}

/* Boot scan line */
.boot-scanline {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: #00E0FF;
  opacity: 0.1;
  z-index: 30; pointer-events: none;
  animation: scanDown 1.5s linear infinite;
}

/* Boot flash */
.boot-flash {
  position: absolute; inset: 0;
  background: #00E0FF;
  z-index: 50; pointer-events: none;
  opacity: 0;
}
.boot-flash.active {
  animation: bootFlash 0.8s 0.4s forwards;
}

/* ═══════════════════════════════════════════
   EXOFT DISPLAY (after boot)
   ═══════════════════════════════════════════ */
.exoft-display {
  position: absolute; inset: 0;
  z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

/* In-screen grid */
.exoft-grid {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.03;
  background-image:
    linear-gradient(rgba(0,224,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,0.3) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Vignette */
.exoft-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
}

/* Glitch bars inside display */
.exoft-glitch-bar {
  position: absolute; left: 0;
  pointer-events: none;
  animation: glitchBarFlash 5s ease-in-out infinite;
}

/* Text block */
.exoft-text-block {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2%;
}

.init-label {
  font-size: clamp(4px, 0.8vw, 7px);
  letter-spacing: 0.6em;
  text-transform: uppercase;
  margin-bottom: clamp(2px, 0.8vw, 6px);
  font-family: 'Share Tech Mono', monospace;
  color: rgba(0,224,255,0.3);
  opacity: 0;
  animation: fadeIn 0.8s 0.3s forwards;
}

/* EXOFT title */
.exoft-title {
  font-size: clamp(38px, 11vw, 110px);
  letter-spacing: 0.15em;
  line-height: 0.85;
  white-space: nowrap;
  display: inline-flex;
}

/* Glitch letter */
.glitch-letter {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translateY(15px) scaleY(1.5);
  transition: opacity 0.2s, transform 0.2s;
  color: #fff;
}
.glitch-letter.resolved {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  text-shadow: 0 0 10px rgba(0,224,255,0.3), 0 0 30px rgba(0,224,255,0.1);
}
.glitch-letter.glitching {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  text-shadow: 0 0 20px #00E0FF, 0 0 40px #00E0FF, 3px 0 #ff0040, -3px 0 #00ff88, 0 0 80px rgba(0,224,255,0.5);
}
.glitch-letter.large {
  font-family: 'Space Age', sans-serif;
  font-weight: 400;
}
.glitch-letter.small {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

/* Chromatic slices on glitch */
.chroma-slice {
  position: absolute; inset: 0;
  pointer-events: none;
  display: none;
}
.glitching .chroma-slice { display: block; }
.chroma-slice.red { color: #ff0040; opacity: 0.7; }
.chroma-slice.cyan { color: #00E0FF; opacity: 0.6; }
.chroma-slice.green { color: #00ff88; opacity: 0.3; }

/* Divider */
.exoft-divider {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, #00E0FF, transparent);
  opacity: 0;
  animation: dividerGrow 1s 1.2s ease-out forwards;
}

/* TECHNOLOGIES */
.tech-title {
  font-size: clamp(10px, 3vw, 30px);
  letter-spacing: 0.45em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
}

/* Coming Soon tag */
.coming-soon-tag {
  font-size: clamp(4px, 0.7vw, 6px);
  letter-spacing: 0.5em;
  margin-top: clamp(4px, 1vw, 10px);
  text-transform: uppercase;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255,255,255,0.15);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.8s 2.5s forwards;
}

/* Screen scan line */
.screen-scanline {
  position: absolute; left: 0; right: 0;
  height: 2px; z-index: 20;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,224,255,0.08), transparent);
  animation: scanDown 4s linear infinite;
}

/* Screen periodic flash */
.screen-flash {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 20;
  background: rgba(0,224,255,0.02);
  animation: periodicFlash 5s infinite;
}

/* ═══ BINARY RAIN ═══ */
.binary-rain {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}
.binary-column {
  position: absolute;
  color: #00E0FF;
  font-size: clamp(5px, 0.7vw, 8px);
  line-height: 1.2;
  font-family: 'Share Tech Mono', monospace;
  white-space: pre;
  animation: rainFall linear infinite;
}

/* ═══════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes fadeInLeft {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes monitorIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50% { transform: scale(1.08); opacity: 0.14; }
}
@keyframes pulseAmbient {
  0%, 100% { opacity: 0.01; }
  50% { opacity: 0.025; }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(-30px); opacity: 0.15; }
  50% { transform: translateY(30px); opacity: 0.5; }
}

@keyframes ledPulse {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 2px rgba(0,224,255,0.3); }
  50% { opacity: 1; box-shadow: 0 0 6px rgba(0,224,255,0.8); }
}

@keyframes scanDown {
  0% { top: 0%; }
  100% { top: 100%; }
}

@keyframes glitchShake {
  0% { transform: translate(0, 0); opacity: 1; }
  10% { transform: translate(-8px, 3px); opacity: 0; }
  20% { transform: translate(5px, -5px); opacity: 1; }
  40% { transform: translate(-12px, 2px); opacity: 0.5; }
  60% { transform: translate(8px, -3px); opacity: 1; }
  80% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes bootSlice {
  0% { transform: translateX(0) scaleX(1); }
  25% { transform: translateX(40px) scaleX(1.5); }
  50% { transform: translateX(-30px) scaleX(0.8); }
  75% { transform: translateX(20px) scaleX(1.2); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes bootFlash {
  0%, 40% { opacity: 0; }
  60% { opacity: 0.15; }
  100% { opacity: 0; }
}

@keyframes dividerGrow {
  to { width: clamp(60px, 16vw, 180px); opacity: 0.5; }
}

@keyframes periodicFlash {
  0%, 20%, 40%, 80%, 100% { opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
}

@keyframes glitchBarFlash {
  0%, 90%, 100% { opacity: 0; }
  95% { opacity: 0.6; }
}

@keyframes rainFall {
  0% { transform: translateY(-20%); }
  100% { transform: translateY(110%); }
}
