/* Fresh Design with Original Mouse Box */

:root {
  --black: #000000;
  --white: #ffffff;
  --blue: #0066ff;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-weight: 400;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--black);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  padding: 24px 44px;
  z-index: 1000;
  display: flex;
  gap: 24px;
  transform: none;
  will-change: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link[href="#"] {
  display: none;
}

/* Timeline */
.timeline {
  position: fixed;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.timeline.visible {
  opacity: 1;
}

.timeline-bar {
  width: 2px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}

.timeline-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
}

.timeline-year {
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateX(0);
}

/* Clock */
.sf-clock {
  position: fixed;
  bottom: 44px;
  right: 44px;
  z-index: 1000;
  text-align: right;
}

.sf-clock-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.6;
}

.sf-clock-time {
  font-size: 21px;
  font-weight: 400;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* Footer */
.footer-bottom {
  position: fixed;
  bottom: 44px;
  left: 44px;
  z-index: 1000;
}

.footer-social {
  display: none;
  gap: 20px;
  margin-bottom: 8px;
}

.social-link {
  color: var(--white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 1;
}

.social-link svg {
  display: block;
}

.footer-copyright {
  font-size: 11px;
  color: var(--white);
  opacity: 0.6;
}

/* Main Container */
main {
  width: 100%;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 44px;
}

.beta-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.hero-headline {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-headline .highlight {
  color: var(--blue);
}

.hero-description {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.7;
}

/* Story Panels */
.story-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 44px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
}

.story-panel.active {
  opacity: 1;
  transform: translateY(0);
}

.panel-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.era-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.story-panel.active .era-label {
  opacity: 1;
  transform: translateY(0);
}

.panel-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.story-panel.active .panel-title {
  opacity: 1;
  transform: translateY(0);
}

.demo-area {
  width: 100%;
  height: 500px;
  margin: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.story-panel.active .demo-area {
  opacity: 1;
  transform: scale(1);
}

/* Desktop Viewport */
.desktop-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.desktop-tiny {
  max-width: 300px;
  height: 200px;
}

.desktop-small {
  max-width: 450px;
  height: 300px;
}

.desktop-large {
  max-width: 750px;
  height: 450px;
}

.desktop-ai {
  max-width: 650px;
  height: 400px;
}

/* Single Window */
.single-window {
  width: 70%;
  height: 60%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  opacity: 1;
  transition: opacity 0.6s ease 0.8s;
}

.story-panel.active .single-window {
  opacity: 1;
}

/* Window Grid */
.window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 24px;
  padding: 32px;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.6s ease 0.8s;
  align-items: center;
  justify-items: center;
}

.window-grid.three-windows {
  grid-template-columns: repeat(3, 1fr);
}

.window-grid.four-windows {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.story-panel.active .window-grid {
  opacity: 1;
}

.window-grid.expanded {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  gap: 24px;
  padding: 32px;
}

.window-item {
  width: 100%;
  max-width: 180px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.window-item.faded {
  opacity: 0.3;
}

/* Chaos Windows - Individual positioned, animated */
.chaos-item {
  position: absolute;
  opacity: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.chaos-item.chaos-window {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.chaos-item.chaos-folder {
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 4px;
}

.chaos-item.chaos-file {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chaos-item.chaos-screenshot {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
}

.story-panel.active .chaos-item {
  animation: chaosAppear 0.3s ease-out forwards;
}

@keyframes chaosAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Original Mouse Box Design */
.mouse-box {
  width: 120px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
  opacity: 1;
}

.story-panel.active .mouse-box {
  opacity: 1;
}

.desktop-tiny .mouse-box {
  width: 60px;
  height: 80px;
  bottom: 10px;
  right: 10px;
  border-radius: 12px;
}

.desktop-small .mouse-box {
  width: 80px;
  height: 110px;
  bottom: 15px;
  right: 15px;
  border-radius: 16px;
}

.desktop-large .mouse-box {
  width: 100px;
  height: 140px;
  bottom: 20px;
  right: 20px;
  border-radius: 20px;
}

/* Mouse Cord */
.mouse-cord {
  position: absolute;
  top: -50px;
  left: 50%;
  width: 2px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
  transition: all 0.6s ease;
}

.desktop-tiny .mouse-cord {
  top: -30px;
  height: 30px;
  width: 1px;
}

/* Mouse Animations */
.mouse-original {
  animation: mouseFloat 3s ease-in-out infinite 1s;
}

.mouse-mainstream {
  animation: mouseFloat 2.5s ease-in-out infinite 1s;
  border-color: rgba(255, 255, 255, 0.3);
}

.mouse-struggling {
  animation: mouseStruggle 2s ease-in-out infinite 2s;
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 0.85;
}

@keyframes mouseFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes mouseStruggle {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(10px);
  }
}

/* AI Command Box */
.ai-command-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 90px;
  background: var(--blue);
  border-radius: 16px;
  z-index: 200;
  opacity: 0;
  box-shadow: 0 0 80px rgba(0, 102, 255, 0.8), 0 0 160px rgba(0, 102, 255, 0.4);
}

.story-panel.active .ai-command-box {
  animation: aiAppear 1.5s ease 1s forwards;
}

.ai-glow {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 70%
  );
  animation: commandPulse 2s ease-in-out infinite;
}

.panel-text {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  opacity: 0.8;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}

.story-panel.active .panel-text {
  opacity: 0.8;
  transform: translateY(0);
}

/* CTA Panel */
.cta-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 44px;
}

.cta-headline {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cta-headline .highlight {
  color: var(--blue);
}

.cta-subtitle {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 60px;
}

.user-mode-toggle {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.toggle-option {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.toggle-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.toggle-option.active {
  background: rgba(0, 102, 255, 0.2);
  border-color: var(--blue);
  color: var(--white);
}

.command-box {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.command-field {
  width: 100%;
  padding: 28px 32px;
  padding-right: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.command-field:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 50px rgba(0, 102, 255, 0.4);
}

.caret {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 36px;
  background: var(--blue);
  animation: caretBlink 1s step-end infinite;
  pointer-events: none;
  box-shadow: 0 0 15px var(--blue);
}

.command-field:focus ~ .caret {
  opacity: 1;
}

/* Animations */
@keyframes aiAppear {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes commandPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes caretBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Contact Section */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 44px;
}

.contact-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-headline {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-headline .highlight {
  color: var(--blue);
}

.contact-subtitle {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  opacity: 0.7;
  margin-bottom: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 60px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  opacity: 0.8;
}

.contact-item a {
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.contact-item a:hover {
  opacity: 0.7;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social a {
  font-size: 18px;
}

/* Home Link */
.home-link {
  position: fixed;
  left: 44px;
  top: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.home-link:hover {
  opacity: 1;
}

.home-arrow {
  animation: arrowBounce 2s ease-in-out infinite;
  transform-origin: center;
}

.home-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes arrowBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 20px 22px;
  }

  .timeline {
    left: 22px;
  }

  .timeline-bar {
    height: 150px;
  }

  .timeline-year {
    font-size: 18px;
    min-width: 50px;
  }

  .footer-bottom,
  .sf-clock {
    bottom: 22px;
    left: 22px;
    right: 22px;
  }

  .hero,
  .story-panel,
  .cta-panel,
  .contact-section {
    padding: 80px 22px;
  }

  .contact-info {
    gap: 40px;
  }

  .command-box {
    max-width: 100%;
    padding: 0 10px;
  }

  .command-field {
    font-size: 18px;
    padding: 24px 28px;
    padding-right: 50px;
  }

  .home-link {
    left: 22px;
    top: 20px;
    gap: 8px;
  }

  .home-arrow {
    width: 14px;
    height: 14px;
  }

  .home-text {
    font-size: 11px;
  }

  .demo-area {
    height: 400px;
  }

  .desktop-tiny {
    max-width: 250px;
    height: 160px;
  }

  .desktop-small {
    max-width: 350px;
    height: 240px;
  }

  .desktop-large {
    max-width: 500px;
    height: 350px;
  }

  .desktop-ai {
    max-width: 450px;
    height: 320px;
  }

  .mouse-box {
    width: 80px;
    height: 110px;
  }

  .desktop-tiny .mouse-box {
    width: 50px;
    height: 70px;
  }
}
