/* ==========================================================================
   realOne IQ - Think. Play. Grow.
   Complete Brand Stylesheet for Dedicated Brain Game Smartwatch Ecosystem
   ========================================================================== */

:root {
  --bg-primary: #070d18;
  --bg-secondary: #0c172a;
  --bg-card: rgba(15, 27, 49, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);
  
  /* realOne Brand Colors */
  --realone-blue: #2563eb;
  --realone-navy: #1e3a8a;
  --realone-cyan: #06b6d4;
  --realone-indigo: #4f46e5;
  --realone-amber: #f59e0b;
  --realone-emerald: #10b981;
  --realone-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    var(--bg-primary);
  background-attachment: fixed;
}

/* Glassmorphism panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 12px 35px -10px rgba(37, 99, 235, 0.25);
}

/* 5 Skill Pills */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   realOne IQ Smartwatch Hardware (Navy Blue Curved Squircle)
   ========================================================================== */

.smartwatch-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.watch-ambient-glow {
  position: absolute;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(6, 182, 212, 0.2) 45%, transparent 70%);
  filter: blur(45px);
  z-index: 1;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

/* Straps (Navy Blue Silicone) */
.strap-top, .strap-bottom {
  width: 145px;
  height: 55px;
  background: linear-gradient(90deg, #132238 0%, #1e3557 30%, #26446e 50%, #1e3557 70%, #132238 100%);
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

.strap-top {
  border-radius: 14px 14px 0 0;
  mask-image: linear-gradient(to top, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
}

.strap-bottom {
  border-radius: 0 0 14px 14px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* RealOne Hardware Body (Deep Navy Curved Squircle) */
.watch-case {
  position: relative;
  width: 285px;
  height: 310px;
  background: radial-gradient(circle at 35% 25%, #2a436f 0%, #1c2e4d 45%, #131f33 80%, #0d1524 100%);
  border-radius: 60px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 0 2px rgba(59, 130, 246, 0.25),
    inset 0 2px 5px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s ease;
}

/* Side Action Button / Crown */
.watch-crown {
  position: absolute;
  right: -11px;
  top: 32%;
  width: 12px;
  height: 38px;
  background: repeating-linear-gradient(180deg, #4b6694 0px, #2a4168 3px, #1a2a44 5px);
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255,255,255,0.4);
  cursor: pointer;
}

.watch-side-button {
  position: absolute;
  right: -6px;
  top: 55%;
  width: 7px;
  height: 24px;
  background: #1e3252;
  border-radius: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Outer Screen Bezel */
.watch-bezel {
  position: relative;
  width: 250px;
  height: 275px;
  background: #080d16;
  border-radius: 46px;
  border: 3px solid #142138;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Glass Screen Surface */
.watch-screen {
  position: relative;
  width: 240px;
  height: 265px;
  background: #050912;
  border-radius: 42px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.screen-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 30%, transparent 55%);
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}

/* Watch Status Bar */
.watch-status-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  z-index: 8;
  pointer-events: none;
}

#gameCanvas {
  display: block;
  width: 240px;
  height: 265px;
  background: #050912;
}

/* On-Screen Hint */
.watch-overlay-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 9px;
  color: #e2e8f0;
  pointer-events: none;
  z-index: 9;
  white-space: nowrap;
}

/* Game Switcher Tabs on Watch */
.watch-game-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  max-width: 320px;
  z-index: 6;
}

.watch-game-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.watch-game-btn:hover, .watch-game-btn.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   The Game Loop Pipeline (Play ➔ Learn ➔ Grow)
   ========================================================================== */

.game-loop-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  position: relative;
}

.loop-step-card {
  background: rgba(15, 27, 49, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.loop-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.loop-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 0.75rem auto;
}

/* ==========================================================================
   Mobile Companion App Screens (4 Mockups)
   ========================================================================== */

.phone-mockup {
  width: 100%;
  max-width: 240px;
  height: 460px;
  background: #0b1324;
  border: 4px solid #1e293b;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 80px;
  height: 16px;
  background: #1e293b;
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.phone-screen {
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  overflow-y: auto;
}

/* Progress Bar inside app */
.prog-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 999px;
}

/* ==========================================
   Buttons & Links
   ========================================== */

.btn-realone-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.85rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-realone-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.65);
  filter: brightness(1.1);
}

.btn-realone-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-realone-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Pricing / Revenue cards */
.revenue-card {
  background: rgba(15, 27, 49, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.revenue-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
}

.revenue-card.featured {
  background: linear-gradient(180deg, rgba(26, 44, 80, 0.9) 0%, rgba(15, 27, 49, 0.9) 100%);
  border: 2px solid #3b82f6;
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.25);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0e172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 520px;
  padding: 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #065f46;
  border: 1px solid #10b981;
  color: #ecfdf5;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 110;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.toast-notice.show {
  transform: translateY(0);
}

/* ==========================================================================
   Most Popular Smartwatches Lineup Section (Garmin-Style Showcase)
   ========================================================================== */

.lineup-panoramic-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 99, 235, 0.15);
  background: #0d1527;
}

.lineup-panoramic-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}

.lineup-panoramic-container:hover .lineup-panoramic-img {
  transform: scale(1.02);
}

.lineup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .lineup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lineup-panoramic-img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .lineup-grid {
    grid-template-columns: 1fr;
  }
  .lineup-panoramic-img {
    height: 200px;
  }
}

.lineup-device-card {
  background: rgba(15, 27, 49, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lineup-device-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent, rgba(56, 189, 248, 0.5));
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 24px var(--card-glow, rgba(56, 189, 248, 0.2));
}

.lineup-device-card .model-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.lineup-device-card .model-tagline {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 1rem;
}

.lineup-device-card .strap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.lineup-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lineup-filter-btn:hover, .lineup-filter-btn.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

