/* ============================================
   DropShot — "The Obsidian Workshop"
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #0A0A0A;
  --surface: #161616;
  --surface-raised: #1E1E1E;
  --accent: #FF4F00;
  --accent-dark: #CC3F00;
  --accent-glow: rgba(255, 79, 0, 0.15);
  --accent-secondary: #00F0FF;
  --accent-secondary-glow: rgba(0, 240, 255, 0.25);
  --text: #E8E8E8;
  --text-muted: #888888;
  --text-dim: #555555;
  --border: #222222;
  --border-light: #333333;

  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'Geist Sans Variable', 'Geist Sans', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --gutter: 40px;
  --section-gap: 120px;
  --radius: 8px;
  --radius-sm: 4px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-secondary);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--text);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--accent-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.btn svg {
  display: inline;
  flex-shrink: 0;
}

/* Primary — mechanical press feel */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  transition: transform 60ms, box-shadow 60ms;
  box-shadow: 0 0 0 transparent;
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 3px 3px 0 var(--accent-dark);
  transform: translate(-1px, -1px);
}

.btn-primary:active {
  box-shadow: 0 0 0 var(--accent-dark);
  transform: translate(1px, 1px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* Ghost — nav download button */
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  transition: border-color 0s, background 0s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 79, 0, 0.06);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 160px 0 var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow behind the hero — warmth, not decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(255, 79, 0, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 740px;
  margin: 0 auto 24px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero .btn-primary {
  margin-bottom: 64px;
}

/* Hero placeholder image — macOS window frame */
.hero-image {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ============================================
   macOS Window Chrome (shared by hero + features)
   ============================================ */
.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.dot-close {
  background: #FF5F57;
  opacity: 0.45;
}
.window-dot.dot-min {
  background: #FEBC2E;
  opacity: 0.45;
}
.window-dot.dot-max {
  background: #28C840;
  opacity: 0.45;
}

.window-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
}

/* When the window body holds a real screenshot, let the image fill
   the frame edge-to-edge instead of being centered with padding. */
.window-body--image {
  display: block;
  min-height: 0;
  padding: 0;
}

.window-body--image img {
  width: 100%;
  height: auto;
  display: block;
}

.placeholder-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: var(--section-gap) 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
}

.feature:first-child {
  padding-top: 0;
}

.feature:last-child {
  padding-bottom: 0;
}

.feature--reverse {
  direction: rtl;
}

.feature--reverse > * {
  direction: ltr;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.feature-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Keyboard shortcut badges */
.feature-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-keys kbd {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 2px 7px;
  color: var(--text);
  line-height: 1.5;
}

.feature-keys .key-label {
  margin-right: 12px;
  font-size: 0.8rem;
}

/* Feature image placeholders */
.feature-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-image .window-body {
  min-height: 280px;
}

.feature-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Install / Download Section
   ============================================ */
.install {
  padding: var(--section-gap) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.install-inner {
  max-width: 560px;
}

.install-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.install .btn-primary {
  margin-bottom: 12px;
}

.install-req {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* CRT Terminal Block */
.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  background: var(--surface);
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}

/* Cyan power indicator — CRT is alive */
.terminal-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 4px var(--accent-secondary-glow),
    0 0 1px var(--accent-secondary);
}

.terminal-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
  font-family: var(--font-display);
}

/* CRT scanline overlay */
.terminal-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
}

.terminal-command {
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.terminal-prompt {
  color: var(--accent);
  margin-right: 8px;
  user-select: none;
}

.copy-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: none;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.copy-btn.copied {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  background: rgba(0, 240, 255, 0.05);
}

.install-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-credit {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-secondary);
}

.footer-links svg {
  display: inline;
  width: 16px;
  height: 16px;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-gap: 80px;
  }

  .hero {
    padding-top: 120px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }

  .feature--reverse {
    direction: ltr;
  }

  .window-body {
    min-height: 240px;
  }

  .feature-image .window-body {
    min-height: 200px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section-gap: 60px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero .btn-primary {
    margin-bottom: 40px;
  }

  .window-body {
    min-height: 180px;
    padding: 24px;
  }

  .feature-title {
    font-size: 1.35rem;
  }

  .feature-body {
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .install-title {
    font-size: 1.6rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .nav-link {
    display: none;
  }
}
