/* ========================================================================= */
/* BUKUTAMU PRO — RAYCAST DESIGN SYSTEM & STYLESHEET                         */
/* Theme: Dark Cockpit / Obsidian Canvas (#040506)                           */
/* Brand Colors: Electric Cyan (#06b6d4, #22d3ee) & Purple Violet (#8b5cf6)   */
/* Accent Offer: Amber Gold (#f59e0b)                                        */
/* Typography: Inter (400-600) & Geist Mono (Technical & Micro-labels)        */
/* ========================================================================= */

/* Font dimuat lewat <link> di <head> index.html (lebih cepat dari @import). */

:root {
  /* Brand Tokens — 100% Locked to Official Logo */
  --color-brand-cyan: #06b6d4;
  --color-brand-cyan-light: #22d3ee;
  --color-brand-purple: #8b5cf6;
  --color-brand-purple-dark: #6366f1;
  --color-brand-gold: #f59e0b;
  --color-brand-gold-light: #fbbf24;

  /* Surfaces & Canvas (Raycast Dark Architecture) */
  --bg-canvas: #040506;
  --bg-surface: #07080a;
  --bg-surface-elevated: #0f131a;
  --bg-card: #0a0d14;
  --border-hairline: rgba(255, 255, 255, 0.05);
  --border-hairline-subtle: rgba(255, 255, 255, 0.03);
  --border-cyan-glow: rgba(6, 182, 212, 0.35);
  --radius-card: 12px; /* sama dengan topbar .raycast-nav */

  /* Typography */
  --font-inter: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Blueprint Grid Pattern (Raycast Technical Section) */
.blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Alternating Section Backgrounds (Seamless Surface Hierarchy) */
.section-surface-canvas {
  background-color: #040506;
}
.section-surface-elevated {
  background-color: #080a11;
}
.section-surface-obsidian {
  background-color: #08090f;
}

/* CRITICAL FOR POSITION STICKY: Use overflow-x: clip instead of overflow-x: hidden */
html, body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  font-family: var(--font-inter);
  background-color: var(--bg-canvas);
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================= */
/* RAYCAST TACTILE COMPONENTS & CARDS ("KEYBOARD KEY" FEEL)                  */
/* ========================================================================= */

.raycast-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.raycast-card:hover {
  border-color: var(--border-cyan-glow);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 20px 45px -12px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

/* Glass Panels with Hairline Borders */
.glass-panel {
  background: rgba(7, 8, 10, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hairline);
}

.glass-panel-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(15, 19, 26, 0.85);
  border-color: var(--border-cyan-glow);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.14);
}

/* ========================================================================= */
/* RAYCAST FLOATING NAVIGATION BAR (12px Radius & 58px Height)               */
/* ========================================================================= */

.raycast-nav {
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.85), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.25s ease;
  height: 58px;
  padding: 0 1.25rem;
}

/* ========================================================================= */
/* DUOTONE TEXT & TYPOGRAPHY SYSTEM (Understated Elegance)                   */
/* ========================================================================= */

.duotone-text {
  color: #94a3b8;
  line-height: 1.6;
}

.duotone-text strong, 
.duotone-text b,
.duotone-text .hl-white {
  color: #ffffff;
  font-weight: 500;
}

.duotone-text .hl-cyan {
  color: #22d3ee;
  font-weight: 500;
}

.duotone-text .hl-purple {
  color: #c084fc;
  font-weight: 500;
}

/* Radiant Gradient Brand Text */
.gradient-text-cyan-purple {
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========================================================================= */
/* KEYBOARD & MONO BADGES (GEIST MONO)                                       */
/* ========================================================================= */

.kbd-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.kbd-tag-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

/* ========================================================================= */
/* HERO PILLARS GRID (6 PILAR FONDASI)                                       */
/* ========================================================================= */

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .hero-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .hero-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.pillar-item-card {
  padding: 1.35rem 1.35rem;
  border-radius: var(--radius-card);
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.pillar-item-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: #0d1017;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.09), 0 16px 32px -12px rgba(6, 182, 212, 0.12);
}

/* ========================================================================= */
/* Z-PATTERN EXCLUSIVE FEATURES (Raycast macOS Window Mockup)                */
/* ========================================================================= */

.z-pattern-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}
@media (min-width: 1024px) {
  .z-pattern-row {
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
  }
  .z-pattern-row.reverse {
    grid-template-columns: 1.2fr 1fr;
  }
}

.mockup-preview-card {
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

.mockup-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.15) 80%, transparent 100%);
}

.raycast-divider-gradient {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.12) 80%, transparent 100%);
  border: none;
}

/* ========================================================================= */
/* DUA RUANG KERJA SELECTOR TABS & STICKY SIDEBAR (Raycast Aesthetic)        */
/* ========================================================================= */

.modul-system-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.modul-system-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  background: #07080a;
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.modul-system-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modul-system-btn.active {
  background: #0c1017;
  border-color: #06b6d4;
  color: #ffffff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 15px 35px -10px rgba(6, 182, 212, 0.25);
}

.modul-system-btn.active .modul-btn-icon {
  background: #06b6d4;
  color: #040506;
}

.modul-btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06b6d4;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* DUA SISI LAYOUT GRID & STICKY TOC */
.module-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch; /* Must be stretch so module-toc-col has full height for sticky to work! */
  position: relative;
}
@media (min-width: 1024px) {
  .module-layout-grid {
    grid-template-columns: 310px 1fr;
    gap: 3rem;
  }
}

.module-toc-col {
  height: 100%;
  position: relative;
}

.module-toc-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}

.module-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
}

.toc-item:hover {
  background: #0f131a;
  border-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.toc-item.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  font-weight: 500;
}

.toc-num {
  font-family: var(--font-mono);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  flex-shrink: 0;
}

.toc-item.active .toc-num {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #040506;
  font-weight: 700;
}

/* Module Panel Cards */
.module-panel-card {
  padding: 2.25rem;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
  scroll-margin-top: 130px;
  transition: all 0.25s ease;
}

.module-panel-card:hover {
  border-color: var(--border-cyan-glow);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 25px 45px -12px rgba(6, 182, 212, 0.12);
}

.module-badge-tag {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.module-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
}
@media (min-width: 640px) {
  .module-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.module-feature-mini {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.module-feature-mini svg {
  width: 1rem;
  height: 1rem;
  color: #22d3ee;
  flex-shrink: 0;
}

/* ========================================================================= */
/* CUSTOM SCROLLBAR                                                          */
/* ========================================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #040506;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ========================================================================= */
/* RAYCAST BENTO ARCHITECTURE & ATMOSPHERIC GLOW                              */
/* ========================================================================= */

.raycast-ambient-backdrop {
  position: relative;
  background: radial-gradient(85% 60% at 50% 0%, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(4, 5, 6, 0) 100%), #040506;
}

.raycast-bento-card {
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease;
}
.raycast-bento-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.raycast-window-mockup {
  background: #131419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.raycast-search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-inter);
}
.raycast-search-input::placeholder {
  color: #71727a;
}

.raycast-nav-pill {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: #9c9c9d;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: var(--font-inter);
  cursor: pointer;
}
.raycast-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.raycast-nav-pill.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.raycast-action-bubble {
  background: #1a1c24;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: var(--font-inter);
}

.raycast-quick-item {
  color: #717278;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-inter);
}
.raycast-quick-item:hover {
  color: #ffffff;
  transform: translateX(2px);
}


/* ========================================================================= */
/* GARIS GRADASI ATAS KARTU (dari .mockup-preview-card, dipakai semua kartu)  */
/* ========================================================================= */
.raycast-card,
.pillar-item-card,
.module-panel-card,
.raycast-bento-card,
.card-topline {
  position: relative;
}

.raycast-card::before,
.pillar-item-card::before,
.module-panel-card::before,
.raycast-bento-card::before,
.card-topline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.15) 80%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Screenshot modul (slot gambar/video per card) */
.module-shot {
  margin: 1.25rem 0 0;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0d12;
}

.module-shot img,
.module-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
