/* ============================================
   Mustsem Network - IMS Mobility Style
   Clean Corporate Design System
   ============================================ */

/* CSS Variables */
:root {
  /* Colors - IMS Style Dark Navy Theme */
  --bg-primary: #0a1628;
  --bg-secondary: #0d1b2a;
  --bg-tertiary: #1b2838;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --bg-light: #ffffff;
  --bg-gray: #f5f5f5;

  --accent-primary: #2d7be5;
  --accent-secondary: #00b4d8;
  --accent-gradient: linear-gradient(135deg, #2d7be5 0%, #00b4d8 100%);
  --accent-glow: rgba(45, 123, 229, 0.3);

  --text-primary: #ffffff;
  --text-dark: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: rgba(255, 255, 255, 0.9);

  --border-color: rgba(255, 255, 255, 0.1);
  --border-light: #e5e7eb;
  --border-hover: rgba(255, 255, 255, 0.2);
  --ring-color: rgba(45, 123, 229, 0.55);

  /* Fluid Typography */
  --font-primary: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --title-hero: clamp(1.75rem, 0.9rem + 3.6vw, 3.625rem);
  --title-section: clamp(1.8rem, 1.1rem + 2.2vw, 2.625rem);
  --title-subpage: clamp(1.6rem, 1.05rem + 2vw, 2.75rem);
  --title-banner: clamp(1.3rem, 1rem + 1vw, 1.75rem);

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;

  /* Effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(45, 123, 229, 0.15);
  --card-surface: #ffffff;
  --card-surface-hover: #f8f9fa;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   GEMINI: Cinematic UI Polish
   ============================================ */

/* Noise texture removed for clean corporate look */

/* 2. Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-gray);
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 5px;
  border: 2px solid var(--bg-gray);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* 3. Selection Color */
::selection {
  background: rgba(0, 208, 156, 0.2);
  color: var(--accent-primary);
}

/* 4. Text Shimmer Animation */
@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   CODEX2: Accessibility & Focus States
   ============================================ */

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* CODEX: Enhanced Focus Visible */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--ring-color);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

section[id] {
  scroll-margin-top: 120px;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation - IMS Style Transparent
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 48px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Dropdown (Alchemy-style, simplified) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-dropdown-btn:hover {
  color: var(--text-primary);
}

.nav-dropdown.active .nav-dropdown-btn {
  color: var(--text-primary);
}

.nav-dropdown-btn .chevron {
  width: 16px;
  height: 16px;
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-btn .chevron,
.nav-dropdown:focus-within .nav-dropdown-btn .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu .dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: var(--transition);
}

.dropdown-link:hover {
  color: #111;
  background: #f5f5f5;
}

.dropdown-link.active {
  color: #fff;
  background: var(--accent-gradient);
}

.dropdown-link::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  transition: var(--transition);
}

.btn-nav:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary-nav {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-primary);
  border-radius: 6px;
  box-shadow: none;
}

.btn-primary-nav:hover {
  background: #1d6ad4;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu dropdown override */
.mobile-menu .nav-dropdown {
  display: block;
  margin-top: 18px;
}

.mobile-menu .nav-dropdown-btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: default;
}

.mobile-menu .nav-dropdown-btn .chevron {
  display: none;
}

.mobile-menu .nav-dropdown-menu {
  position: static;
  min-width: 0;
  padding: 10px 0 0;
  margin: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu .dropdown-link {
  justify-content: center;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-primary);
}

.mobile-menu .dropdown-link:hover {
  color: var(--accent-primary);
}

/* ============================================
   Hero Section - IMS Style
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(13, 27, 42, 0.9) 100%);
}

/* Video Background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

/* Video loading optimization - fade in when ready */
.hero-video.loaded {
  opacity: 0.5;
}

/* Mobile: hide video for performance */
@media (max-width: 767px) {
  .hero-video {
    display: none;
  }
}

/* Unicorn Studio Background */
.unicorn-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.unicorn-bg > div {
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
}

.unicorn-bg canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.gradient-orb {
  display: none;
}

.orb-1, .orb-2 {
  display: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  z-index: 2;
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: block;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: none;
}

.badge-dot {
  display: none;
}

.hero h1 {
  font-size: var(--title-hero);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.hero h1 strong {
  font-weight: 700;
}

.gradient-text {
  color: var(--text-primary);
  -webkit-text-fill-color: unset;
  background: none;
  animation: none;
  font-weight: 700;
}

.gradient-text-alt {
  color: var(--text-primary);
  -webkit-text-fill-color: unset;
  background: none;
  animation: none;
  font-weight: 700;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btns {
  display: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.btn-primary:hover {
  background: #1d6ad4;
  transform: translateY(-2px);
}

.btn-primary::after {
  display: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--border-light);
}

/* Hero Visual - Hidden in IMS Style */
.floating-visual {
  display: none;
}

.interactive-node {
  display: none;
}

.hero-visual {
  display: none;
}

.spline-container {
  position: absolute;
  inset: -150px;
  border-radius: 24px;
  overflow: visible;
}

.spline-container iframe,
.spline-container spline-viewer {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  background: transparent !important;
}

/* CODEX: Hero Media Container with Glow */
.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 208, 156, 0.12), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.10), transparent 50%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-media-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 22px;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
}

/* CODEX2: Hero Network Image (fallback) */
.hero-network {
  width: min(620px, 85%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.45));
  transform: translateX(28px);
  opacity: 0.96;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(22, 23, 28, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: floatCard 6s ease-in-out infinite;
  z-index: 10;
}

.card-1 {
  bottom: 80px;
  left: -40px;
}

.card-2 {
  top: 60px;
  right: -20px;
  animation-delay: -3s;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-icon.green {
  background: rgba(0, 208, 156, 0.15);
  color: var(--accent-primary);
}

.card-icon.blue {
  background: rgba(0, 180, 216, 0.15);
  color: var(--accent-secondary);
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 12px;
  color: var(--text-muted);
}

.card-value {
  font-size: 18px;
  font-weight: 700;
}

/* ============================================
   IMS Style Intro Section
   ============================================ */
.intro-section {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-content h2 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.intro-content h2 strong {
  font-weight: 700;
  color: var(--accent-primary);
}

.intro-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro-image {
  display: flex;
  justify-content: center;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Trusted Section - Hidden in IMS Style
   ============================================ */
.trusted {
  display: none;
}

.trusted-label {
  display: none;
}

.highlight {
  color: var(--accent-primary);
}

.trusted-logos {
  display: none;
}

.logo-item {
  display: none;
}

.logo-item svg {
  display: none;
}

/* ============================================
   Crypto Updates Section - Hidden in IMS Style
   ============================================ */
.crypto-updates {
  display: none;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-badge {
  display: none;
}

.section-header h2 {
  font-size: var(--title-section);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.crypto-grid {
  display: none;
}

.crypto-card {
  display: none;
}

.crypto-header, .crypto-icon, .crypto-name, .crypto-price, .crypto-change {
  display: none;
}

/* ============================================
   Features Section - IMS Style (White Background)
   ============================================ */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.features-layout {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

.features-content h2 {
  font-size: var(--title-section);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.features-content .section-badge {
  display: none;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: var(--transition);
}

.feature-item:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.feature-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.feature-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Portfolio Card - Hidden in IMS Style */
.portfolio-card {
  display: none;
}

.features-visual {
  display: none;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-header span {
  font-size: 14px;
  color: var(--text-secondary);
}

.portfolio-change {
  color: var(--accent-primary) !important;
  font-weight: 600;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  transition: var(--transition);
}

.portfolio-item:hover {
  background: rgba(0, 208, 156, 0.05);
}

.portfolio-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.portfolio-icon.btc {
  background: linear-gradient(135deg, #00D09C 0%, #00B4D8 100%);
  color: white;
}

.portfolio-icon.eth {
  background: rgba(98, 126, 234, 0.2);
  color: #627EEA;
}

.portfolio-icon.ltc {
  background: rgba(255, 107, 107, 0.2);
  color: #FF6B6B;
}

.portfolio-icon.pol {
  background: rgba(0, 208, 156, 0.2);
  color: var(--accent-primary);
}

.portfolio-icon svg {
  width: 20px;
  height: 20px;
}

.portfolio-info {
  flex: 1;
}

.portfolio-info strong {
  display: block;
  font-size: 14px;
}

.portfolio-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.portfolio-value {
  text-align: right;
}

.portfolio-value strong {
  display: block;
  font-size: 14px;
}

.portfolio-value span {
  font-size: 12px;
}

.portfolio-value .positive {
  color: var(--accent-primary);
}

/* ============================================
   Stats Section - IMS Style (Dark Background with White Cards)
   ============================================ */
.stats {
  padding: 80px 0;
  background: var(--bg-primary);
}

.stats .container {
  text-align: center;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 48px;
  text-align: center;
  transition: var(--transition);
  min-width: 200px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  background: none;
  -webkit-text-fill-color: unset;
}

.stat-value span {
  font-size: 24px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-date {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 30px;
}

/* ============================================
   Solution Section - Hidden in IMS Style
   ============================================ */
.solution {
  display: none;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 60px;
}

.solution-item {
  text-align: center;
}

.solution-item.right {
  text-align: center;
}

.solution-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.solution-item:hover .solution-icon {
  background: rgba(0, 208, 156, 0.1);
  border-color: var(--accent-primary);
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.solution-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.solution-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Solution Phone */
.solution-center {
  display: flex;
  justify-content: center;
  grid-row: span 2;
}

.solution-phone {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 24px;
}

.phone-header {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.phone-balance {
  text-align: center;
  margin-bottom: 24px;
}

.balance-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.balance-value {
  font-size: 28px;
  font-weight: 700;
}

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

.phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.phone-stat {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.phone-stat span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.phone-stat strong {
  font-size: 14px;
  color: var(--accent-primary);
}

.phone-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.coin-badge {
  padding: 6px 12px;
  background: rgba(0, 208, 156, 0.1);
  border: 1px solid rgba(0, 208, 156, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
}

/* ============================================
   Platform Banner - Hidden in IMS Style
   ============================================ */
.platform-banner {
  display: none;
}

.banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  background: linear-gradient(135deg, #16171C 0%, #1C1D23 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* CODEX2: Banner Card Inner Gradient */
.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(0, 208, 156, 0.18), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.banner-card > * {
  position: relative;
  z-index: 1;
}

/* CLAUDE: Banner Card Shimmer Animation */
.banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 208, 156, 0.03) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: 0;
}

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

.banner-content h3 {
  font-size: var(--title-banner);
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}

.banner-content p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 500px;
}

.btn-banner {
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

/* ============================================
   Services Section - IMS Style
   ============================================ */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.services-layout {
  display: block;
  text-align: center;
}

.services-visual {
  display: none;
}

.service-cards-stack {
  position: relative;
  width: 300px;
}

.service-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.service-card-item.btc-card {
  transform: translateX(40px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 700;
  font-size: 20px;
}

.eth-icon {
  background: rgba(98, 126, 234, 0.2);
  color: #627EEA;
}

.btc-icon {
  background: linear-gradient(135deg, #00D09C 0%, #00B4D8 100%);
  color: white;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-info strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.service-card-stars {
  color: #FFD700;
  font-size: 12px;
}

.service-card-chart {
  width: 80px;
  height: 40px;
  background: linear-gradient(to right, transparent, rgba(0, 208, 156, 0.3));
  border-radius: 8px;
  margin-left: auto;
}

.btc-chart {
  background: linear-gradient(to right, transparent, rgba(0, 180, 216, 0.3));
}

.services-content h2 {
  font-size: var(--title-section);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.services-content .section-badge {
  display: none;
}

.services-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* IMS Style Service Icons */
.service-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.service-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 12px;
  transition: var(--transition);
}

.service-icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-icon-box.blue {
  background: #627EEA;
}

.service-icon-box.green {
  background: #10b981;
}

.service-icon-box.orange {
  background: #f59e0b;
}

.service-icon-box.purple {
  background: #8b5cf6;
}

.service-icon-box.navy {
  background: var(--bg-primary);
}

.service-icon-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-more {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.btn-more:hover {
  background: var(--bg-gray);
}

.services-list {
  display: none;
}

.service-check {
  display: none;
}

/* ============================================
   Upgrade Section - Hidden in IMS Style
   ============================================ */
.upgrade {
  display: none;
}

.upgrade-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.upgrade-content h2 {
  font-size: var(--title-section);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.upgrade-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.upgrade-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.upgrade-feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Chart Card */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pair-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.chart-value span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-value strong {
  font-size: 18px;
}

.chart-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-stat span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chart-stat strong {
  font-size: 16px;
}

.chart-stat strong.positive {
  color: var(--accent-primary);
}

.chart-graph {
  height: 120px;
  margin-bottom: 16px;
}

.chart-graph svg {
  width: 100%;
  height: 100%;
}

.chart-prices {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   CTA Section - Hidden in IMS Style
   ============================================ */
.cta {
  display: none;
}

.cta-label, .cta h2, .cta-desc, .cta-cards, .cta-card, .cta-icon {
  display: none;
}

/* ============================================
   FAQ Section - Hidden in IMS Style
   ============================================ */
.faq {
  display: none;
}

.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.faq-list {
  display: none;
}

.faq-item {
  display: none;
}

.faq-question {
  display: none;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Footer - IMS Style
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: var(--transition);
  position: relative;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* CLAUDE: Link Hover Underline Animation */
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: var(--transition);
  color: var(--text-dark);
}

.app-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

.app-btn svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

.made-with {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

/* ============================================
   Page System (App / Docs / Dashboard) - IMS Style
   ============================================ */
body.page {
  background: var(--bg-light);
}

body.page .hero {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 64px;
  background: var(--bg-primary);
}

body.page .hero h1 {
  font-size: var(--title-subpage);
  font-weight: 700;
  color: var(--text-primary);
}

.hero--subpage .hero-bg {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(0, 208, 156, 0.18), transparent 62%),
    radial-gradient(820px 380px at 88% -10%, rgba(0, 180, 216, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.3), var(--bg-primary));
}

.hero--subpage .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 10;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.sub {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  max-width: 920px;
}

.lead {
  color: var(--text-secondary);
  margin: 12px 0 0;
}

.small {
  font-size: 13px;
  color: var(--text-secondary);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
}

.badge code {
  color: var(--text-primary);
  background: transparent;
}

.section {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-title {
  margin: 0 0 16px;
  font-size: var(--title-section);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.section-subtitle {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card.small {
  padding: 16px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.card p {
  color: var(--text-secondary);
}

.card ul {
  color: var(--text-secondary);
  padding-left: 20px;
}

.card li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.card strong {
  color: var(--text-dark);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--bg-gray);
  border-color: var(--border-light);
}

.btn.primary {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: transparent;
  box-shadow: none;
}

.btn.primary:hover {
  background: #1d6ad4;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field textarea {
  resize: vertical;
}

/* Input Focus */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(45, 123, 229, 0.15);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}

.table th {
  background: var(--bg-gray);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table.small th,
.table.small td {
  padding: 10px 12px;
  font-size: 13px;
}

pre {
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 8px;
  overflow: auto;
  color: var(--text-dark);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-dark);
}

pre code {
  background: transparent;
  padding: 0;
}

/* API catalog grids */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.category-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.category-box h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--text-dark);
}

.category-box .card {
  margin-top: 12px;
}

/* Security page helpers */
.architecture-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.flow-item {
  width: min(520px, 100%);
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-gray);
  color: var(--text-dark);
}

.flow-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

.flow-arrow {
  opacity: 0.55;
  color: var(--text-secondary);
}

.security-table {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: auto;
  background: var(--bg-card);
}

.security-table .row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.6fr 1.4fr;
}

.security-table .row > div {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
}

.security-table .row.header > div {
  background: var(--bg-gray);
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.security-table .row:last-child > div {
  border-bottom: 0;
}

/* ============================================
   CLAUDE: PREMIUM MICRO-INTERACTIONS
   ============================================ */

/* --- 3D Tilt Card Effect --- */
.crypto-card,
.stat-card,
.cta-card,
.portfolio-card,
.chart-card,
.service-card-item,
.solution-phone,
.card {
  transform-style: preserve-3d;
  transition: var(--transition), transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.tilt-effect {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale3d(1.02, 1.02, 1.02);
}

/* --- Gradient Border Animation --- */
@keyframes gradient-border-spin {
  0% { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.crypto-card,
.stat-card,
.cta-card,
.portfolio-item,
.faq-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.crypto-card::before,
.stat-card::before,
.cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    var(--gradient-angle, 135deg),
    rgba(0, 208, 156, 0.3),
    rgba(0, 180, 216, 0.3),
    rgba(0, 208, 156, 0.1),
    rgba(0, 180, 216, 0.3)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.crypto-card:hover::before,
.stat-card:hover::before,
.cta-card:hover::before {
  opacity: 1;
  animation: gradient-border-spin 3s linear infinite;
}

/* --- Enhanced Glassmorphism --- */
.floating-card,
.portfolio-card,
.chart-card,
.service-card-item,
.solution-phone {
  background: rgba(22, 23, 28, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.floating-card:hover {
  animation-play-state: paused;
  background: rgba(28, 29, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
}

.portfolio-card:hover,
.chart-card:hover,
.service-card-item:hover {
  background: rgba(28, 29, 35, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(0, 208, 156, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- Card Spotlight/Glow Effect --- */
.crypto-card,
.cta-card,
.stat-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

.crypto-card::after,
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(0, 208, 156, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.crypto-card:hover::after,
.cta-card:hover::after {
  opacity: 1;
}

/* --- Stat Card Enhanced Glow (Rotating) --- */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 208, 156, 0.1),
    transparent,
    rgba(0, 180, 216, 0.1),
    transparent
  );
  animation: rotate-glow 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-card:hover::after {
  opacity: 1;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stat-card .stat-value,
.stat-card .stat-label {
  position: relative;
  z-index: 1;
}

/* --- Feature Item Enhanced Hover --- */
.feature-item:hover .feature-icon {
  transform: scale(1.05);
  background: var(--accent-primary);
  color: #fff;
}

.feature-item:hover .feature-icon svg {
  color: #fff;
}

.feature-icon {
  transition: var(--transition);
}

/* --- Portfolio Item Shine Effect --- */
.portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.portfolio-item:hover::before {
  left: 100%;
}

/* --- CTA Card Icon Pulse --- */
.cta-icon {
  transition: var(--transition), transform 0.4s ease;
}

.cta-card:hover .cta-icon {
  transform: scale(1.1);
  box-shadow:
    0 0 30px rgba(0, 208, 156, 0.3),
    0 0 60px rgba(0, 208, 156, 0.1);
}

.cta-card:hover .cta-icon svg {
  animation: icon-pulse 1s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* --- Solution Icon Hover --- */
.solution-icon {
  transition: var(--transition), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.solution-item:hover .solution-icon {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 16px 32px rgba(0, 208, 156, 0.2),
    0 0 24px rgba(0, 208, 156, 0.15);
}

/* --- Smooth Icon Transitions --- */
.crypto-icon,
.portfolio-icon,
.service-card-icon,
.card-icon {
  transition: var(--transition), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crypto-card:hover .crypto-icon,
.portfolio-item:hover .portfolio-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Loading Skeleton Shimmer --- */
@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0px,
    var(--bg-card-hover) 40px,
    var(--bg-card) 80px
  );
  background-size: 200px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  .hero-container {
    gap: 40px;
  }

  .crypto-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    height: 400px;
  }

  .hero-network {
    width: min(520px, 90%);
    transform: translateX(0);
  }

  .hero-media {
    padding: 18px;
    border-radius: 24px;
  }

  .floating-card {
    display: none;
  }

  .features-layout,
  .services-layout,
  .upgrade-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-visual {
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .solution-center {
    grid-row: auto;
    order: -1;
  }

  .cta-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid-3,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .security-table .row {
    min-width: 980px;
  }
}

@media (max-width: 768px) {
  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 36px;
  }

  .banner-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .upgrade-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-network {
    width: min(360px, 95%);
  }

  .hero-media {
    padding: 14px;
    border-radius: 22px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    font-size: 14px;
  }

  .crypto-grid {
    grid-template-columns: 1fr;
  }

  .trusted-logos {
    gap: 30px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.hero-visual {
  animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
  animation-delay: 0.2s;
}

/* ============================================
   CODEX2: Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gradient-orb,
  .floating-card,
  .hero-content,
  .hero-visual {
    animation: none !important;
  }
}
