/* ==========================================================================
   drayik.shop — Next-Gen Cyber-Luxury Design System [v4.0]
   Deep Obsidian Dark (#05060A), Electric Cyan (#00F0FF), Neon Indigo (#6366F1)
   Hyper-smooth GPU motion, glassmorphism, animated mesh glow, and micro-interactions.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Brand Color Spectrum */
  --bg-deep: #05060A;
  --bg-surface: #090B14;
  --bg-card: rgba(12, 16, 30, 0.75);
  --bg-card-hover: rgba(18, 24, 46, 0.85);

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-glow: #00F0FF;
  --blue-500: #3b82f6;
  --indigo-500: #6366f1;
  --purple-500: #a855f7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --border-glow-hover: rgba(0, 240, 255, 0.65);

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: #E2E8F0;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Background Cyber Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Strict SVG & Icon Containment */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}
svg.w-3, .w-3 { width: 0.75rem !important; height: 0.75rem !important; }
svg.w-3\.5, .w-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
svg.w-4, .w-4 { width: 1rem !important; height: 1rem !important; }
svg.w-5, .w-5 { width: 1.25rem !important; height: 1.25rem !important; }
svg.w-6, .w-6 { width: 1.5rem !important; height: 1.5rem !important; }
svg.w-7, .w-7 { width: 1.75rem !important; height: 1.75rem !important; }
svg.w-8, .w-8 { width: 2rem !important; height: 2rem !important; }
svg.w-10, .w-10 { width: 2.5rem !important; height: 2.5rem !important; }
svg.w-12, .w-12 { width: 3rem !important; height: 3rem !important; }

/* Navigation Bar */
.drayik-nav, .sans-nav, .luxury-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s var(--ease-spring);
}

.drayik-nav.scrolled, .sans-nav.scrolled {
  background: rgba(5, 6, 10, 0.96);
  border-bottom-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.9);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s var(--ease-spring);
  display: inline-block;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #00F0FF;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

/* Electric Buttons */
.btn-primary, .btn-drayik-primary, .btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover, .btn-drayik-primary:hover, .btn-apple-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary, .btn-drayik-secondary, .btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 24, 46, 0.6) !important;
  color: #F8FAFC !important;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s var(--ease-spring);
}

.btn-secondary:hover, .btn-drayik-secondary:hover, .btn-apple-secondary:hover {
  background: rgba(30, 41, 75, 0.8) !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
  color: #00F0FF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2);
}

.btn-telegram, .btn-drayik-telegram, .btn-apple-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-telegram:hover, .btn-drayik-telegram:hover, .btn-apple-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5);
}

button:active, .btn-primary:active, .btn-secondary:active, .btn-telegram:active {
  transform: scale(0.97) !important;
}

/* Glassmorphism Cards */
.card-surface, .glass-spotlight-card, .drayik-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.card-surface:hover, .glass-spotlight-card:hover, .drayik-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -12px rgba(6, 182, 212, 0.22), 0 0 1px 1px rgba(6, 182, 212, 0.35);
}

/* Glowing Pulse Beacon */
.pulse-glow-beacon, .pulsing-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  position: relative;
  display: inline-block;
}

.pulse-glow-beacon::after, .pulsing-beacon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: beaconWave 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes beaconWave {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Shimmer Typography */
.shimmer-text, .text-gradient-cyan {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #a5f3fc 20%,
    #38bdf8 45%,
    #c084fc 70%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Ambient Floating Glow Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  will-change: transform, opacity;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.ambient-glow-orb.orb-cyan {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(14, 165, 233, 0.15) 50%, transparent 70%);
  top: -100px;
  left: 10%;
}

.ambient-glow-orb.orb-purple {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
  top: 200px;
  right: 8%;
  animation-duration: 18s;
  animation-delay: -5s;
}

.ambient-glow-orb.orb-blue {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.1) 60%, transparent 70%);
  bottom: 120px;
  left: 20%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(30px, -35px) scale(1.08); opacity: 0.5; }
  100% { transform: translate(-25px, 20px) scale(0.95); opacity: 0.35; }
}

/* Floating animation */
.animate-float {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

/* Button Shine Sweep */
.btn-shine-sweep {
  position: relative;
  overflow: hidden;
}

.btn-shine-sweep::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: buttonSweep 4s ease-in-out infinite;
}

@keyframes buttonSweep {
  0%, 70% { left: -60%; }
  100% { left: 140%; }
}

/* High-Contrast Inputs */
input, textarea, select {
  background-color: #080B14 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  font-family: var(--font-mono) !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  outline: none !important;
  transition: all 0.25s ease !important;
}

input:focus, textarea:focus, select:focus {
  background-color: #0D1222 !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25) !important;
}

input::placeholder, textarea::placeholder {
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
}

.api-key-bar-container {
  background: linear-gradient(180deg, #0E1324 0%, #080B14 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s ease !important;
}

.api-key-bar-container:focus-within {
  border-color: #00F0FF !important;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.35), 0 8px 30px rgba(6, 182, 212, 0.25) !important;
}

.api-key-input-primary, #pg-api-key, #dash-key-input, #wb-api-key {
  background: transparent !important;
  color: #38bdf8 !important;
  -webkit-text-fill-color: #38bdf8 !important;
  font-family: var(--font-mono), monospace !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  caret-color: #00F0FF !important;
}

/* Developer Playground Window */
.playground-window {
  background: #070913;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.12);
}

.code-tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(6, 182, 212, 0.3);
}

.code-tab-btn.active {
  background: #06b6d4;
  color: #000000;
  font-weight: 700;
  border-color: #06b6d4;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Flow Node Architecture */
.flow-node {
  padding: 16px;
  border-radius: 16px;
  background: #090C18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.flow-node:hover {
  background: #10152B;
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.flow-node.active {
  background: #111833;
  border-color: #00F0FF;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
  border: none !important;
  padding: 0 !important;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #00F0FF !important;
  box-shadow: 0 0 18px #00F0FF !important;
  cursor: pointer !important;
  transition: transform 0.15s var(--ease-spring) !important;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
}

/* Tables */
.luxury-table, .drayik-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.luxury-table th, .drayik-table th {
  padding: 16px 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.luxury-table td, .drayik-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  vertical-align: middle;
}

.luxury-table tr:hover td, .drayik-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #05060A;
}
::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.6);
}
