/* ===== BEDROCK MANAGER — Showcase Website ===== */
/* Workshop Aesthetic: Dark, industrial, tactile, crafted */

/* --- Custom Properties (Workshop Design System) --- */
:root {
  --bg-base: #0d0d10;
  --bg-surface: #161619;
  --bg-panel: #1c1c21;
  --bg-elevated: #232328;
  --bg-hover: #2a2a30;
  --bg-active: #323238;

  --text-primary: #e8e6e1;
  --text-secondary: #a8a5a0;
  --text-muted: #6b6862;
  --text-inverse: #0d0d10;

  --accent: #d4a84b;
  --accent-hover: #e6bc5f;
  --accent-muted: #8b7333;
  --accent-subtle: rgba(212, 168, 75, 0.12);
  --accent-glow: rgba(212, 168, 75, 0.15);

  --success: #7cb87c;
  --info: #7a9cc7;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-active: rgba(212, 168, 75, 0.3);
  --divider: rgba(0, 0, 0, 0.4);

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 12px var(--accent-glow);

  --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Menlo', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms ease;
}

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

img {
  max-width: 100%;
  display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-active); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 16, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(212, 168, 75, 0.2));
}

.navbar__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
}

.navbar__links a:hover {
  color: var(--text-primary);
}

.navbar__social {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  margin-right: -8px;
}

.navbar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: color 200ms ease, transform 200ms ease;
  padding: 4px;
}

.navbar__social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.navbar__social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.navbar__social a::after {
  display: none;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 250ms ease;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  background: var(--accent);
  color: var(--text-inverse) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm);
  font-size: 13px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 200ms ease, box-shadow 200ms ease, transform 100ms ease !important;
}

.navbar__cta::after { display: none !important; }

.navbar__cta:hover {
  background: var(--accent-hover) !important;
  color: var(--text-inverse) !important;
  box-shadow: 0 0 20px rgba(212, 168, 75, 0.25);
  transform: translateY(-1px);
}

.navbar__cta:active { transform: translateY(0); }

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle svg { width: 24px; height: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  opacity: 0.35;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 168, 75, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, var(--bg-base) 95%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 20px rgba(212, 168, 75, 0.3));
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero__subtitle strong {
  color: var(--accent);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__alt-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: color 200ms ease;
}

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

.hero__free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--success);
}

.hero__free-badge svg {
  width: 16px;
  height: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
}

.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(212, 168, 75, 0.25);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--text-inverse);
  box-shadow: 0 4px 24px rgba(212, 168, 75, 0.35);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(212, 168, 75, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

.btn--outline:active { transform: translateY(0); }

.btn--large {
  padding: 16px 36px;
  font-size: 16px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section__label::before,
.section__label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-muted);
}

.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   FEATURE SHOWCASE — Side-by-Side Rows
   ============================================================ */
.feature-showcase {
  background: var(--bg-base);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-of-type {
  margin-bottom: 0;
}

.feature-row--reversed {
  direction: rtl;
}

.feature-row--reversed > * {
  direction: ltr;
}

/* Text side */
.feature-row__icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(212, 168, 75, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.feature-row__icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-row__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.feature-row__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-row__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-row__highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.feature-row__highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Image side */
.feature-row__image {
  position: relative;
}

.feature-row__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  background: var(--bg-panel);
  transition: transform 400ms ease, box-shadow 400ms ease;
}

.feature-row__frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 168, 75, 0.08),
    0 0 24px rgba(212, 168, 75, 0.06);
}

.feature-row__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ambient glow behind images */
.feature-row__image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(212, 168, 75, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   SCREENSHOTS CAROUSEL
   ============================================================ */
.screenshots {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.screenshots__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.screenshots__tab {
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease;
  border-radius: var(--radius-sm);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.screenshots__tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.screenshots__tab.active {
  color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 75, 0.15);
}

.screenshots__viewer {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1200px;
}

.screenshots__frame {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: rotateX(2deg);
  transition: transform 500ms ease;
}

.screenshots__frame:hover {
  transform: rotateX(0deg);
}

.screenshots__titlebar {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.screenshots__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-active);
}

.screenshots__dot:nth-child(1) { background: #c96b6b; }
.screenshots__dot:nth-child(2) { background: #d4a84b; }
.screenshots__dot:nth-child(3) { background: #7cb87c; }

.screenshots__titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.screenshots__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--bg-base);
}

.screenshots__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 400ms ease;
}

.screenshots__image.active {
  opacity: 1;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.download__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.download__title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.download__desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.download__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download__alt-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 200ms ease;
}

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

.download__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.download__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}

.download__badge svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}

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

.footer__left {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__heart { color: var(--accent); }

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 200ms ease;
}

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 72px;
  }

  .feature-row--reversed {
    direction: ltr;
  }

  .feature-row__text {
    order: 1;
  }

  .feature-row__image {
    order: 2;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .navbar__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 16, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .navbar__links.open { display: flex; }

  .navbar__links li { width: 100%; }

  .navbar__links a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
  }

  .navbar__links a::after { display: none; }

  .navbar__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .navbar__toggle { display: flex; }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__icon { width: 72px; height: 72px; }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .screenshots__tabs {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .screenshots__tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .screenshots__frame {
    transform: none;
  }

  .download__card {
    padding: 40px 24px;
  }

  .download__buttons {
    flex-direction: column;
  }

  .download__buttons .btn {
    width: 100%;
    justify-content: center;
  }

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