/* YlemBit Modern Design System - Hyper-Clean Dark Aesthetic */

/* Brand Official Fonts */
@font-face {
  font-family: 'AgencyFB';
  src: url('../fonts/AGENCYB.TTF') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Danube';
  src: url('../fonts/DANUB___.TTF') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-primary: #08090e;
  --bg-secondary: #0d111a;
  --bg-surface: #121724;
  --bg-surface-elevated: #171e2e;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(56, 189, 248, 0.2);
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  selection-background-color: #38bdf8;
  selection-color: #08090e;
}

::selection {
  background-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Hyper-Modern Ambient Mesh & Subtle Lighting Background (No harsh square grids) */
.bg-ambient-modern {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(circle 600px at 80% 20%, rgba(168, 85, 247, 0.06), transparent 60%),
    radial-gradient(circle 500px at 20% 60%, rgba(16, 185, 129, 0.04), transparent 60%),
    #08090e;
}

.bg-radial-glow {
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 75%);
}

.bg-card-glow {
  position: relative;
}
.bg-card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(255, 255, 255, 0.04), rgba(168, 85, 247, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Sleek Glassmorphism */
.glass-panel {
  background: rgba(13, 17, 26, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(8, 9, 14, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090e;
}
::-webkit-scrollbar-thumb {
  background: #1c2333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Brand Typography Component - Danube for Ylem & AgencyFB for Bit */
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  line-height: 1;
  font-weight: 700;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.brand-wordmark .char-y {
  font-family: 'Danube', 'Arial Black', sans-serif;
  color: #ee0c5b;
}

.brand-wordmark .char-l {
  font-family: 'Danube', 'Arial Black', sans-serif;
  color: #f2671b;
}

.brand-wordmark .char-e {
  font-family: 'Danube', 'Arial Black', sans-serif;
  color: #55d6e1;
}

.brand-wordmark .char-m {
  font-family: 'Danube', 'Arial Black', sans-serif;
  color: #8a41e9;
}

.brand-wordmark .word-bit {
  font-family: 'AgencyFB', 'Impact', sans-serif;
  color: #ffffff;
  margin-left: 4px;
  letter-spacing: -0.01em;
}

/* Mockup transition animation */
#mockupScreenshotImg {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
