/* =========================================
   BUILDER - macOS Sonoma Style (Dark Mode)
   ========================================= */

:root {
  /* Colors - Dark Theme */
  --bg-page: #0d0d0f;
  --bg-secondary: #161618;
  --bg-tertiary: #1c1c1e;
  --bg-glass: rgba(30, 30, 32, 0.72);
  --bg-glass-darker: rgba(22, 22, 24, 0.85);

  /* Window & Card backgrounds */
  --bg-window: rgba(38, 38, 40, 0.78);
  --bg-window-chrome: rgba(44, 44, 46, 0.92);
  --bg-card: rgba(44, 44, 46, 0.65);
  --bg-card-hover: rgba(58, 58, 60, 0.85);

  /* Text colors */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --text-muted: #636366;

  /* Accent colors - macOS Blue */
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-light: rgba(10, 132, 255, 0.18);
  --accent-gradient: linear-gradient(180deg, #409cff 0%, #0a84ff 100%);

  /* Success & Status */
  --success: #30d158;
  --success-light: rgba(48, 209, 88, 0.18);
  --warning: #ff9f0a;
  --error: #ff453a;

  /* Borders */
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(255, 255, 255, 0.15);

  /* Shadows - macOS style */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-window: 0 22px 70px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.08);

  /* Radius - macOS uses generous radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Typography - macOS System Fonts */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Monaco", "Cascadia Code", "Consolas", monospace;

  /* Layout */
  --container-max: 1200px;
  --header-height: 56px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

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

body {
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

input, textarea, select {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: white;
}

/* =========================================
   Page Wrapper & Ambient Background
   ========================================= */
.page-wrapper {
  position: relative;
}

.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10, 132, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Single subtle glow */
.ambient-bg::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.08) 0%, transparent 60%);
  filter: blur(60px);
}

.ambient-bg::after {
  display: none;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }
  75% {
    transform: translate(-30px, -10px) scale(1.02);
  }
}

/* =========================================
   Background Decorations - Minimal Dark Theme
   ========================================= */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Diagonal Lines Pattern */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255, 255, 255, 0.02) 60px,
    rgba(255, 255, 255, 0.02) 61px
  );
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
}

/* Minimal Floating Shapes - monochrome */
.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  opacity: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  border-radius: 50%;
  animation: shapeFloat1 30s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  right: -3%;
  border-radius: 50%;
  border-style: dashed;
  animation: shapeFloat2 35s ease-in-out infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 5%;
  border-radius: 50%;
  animation: shapeFloat1 25s ease-in-out infinite reverse;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 10%;
  border-radius: 50%;
  border-style: dashed;
  animation: shapeFloat2 28s ease-in-out infinite;
}

.shape-5, .shape-6 {
  display: none;
}

@keyframes shapeFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -15px) rotate(180deg); }
}

@keyframes shapeFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 10px) rotate(-180deg); }
}

/* Subtle Glow - single blue accent */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -10%;
  background: rgba(10, 132, 255, 0.08);
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  bottom: -5%;
  right: -5%;
  background: rgba(10, 132, 255, 0.05);
}

.glow-orb-3 {
  display: none;
}

/* Subtle Particles - fewer, smaller */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: particleFloat 30s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: -8s; }
.particle:nth-child(3) { left: 45%; animation-delay: -16s; }
.particle:nth-child(4) { left: 70%; animation-delay: -24s; }
.particle:nth-child(5) { left: 85%; animation-delay: -12s; }
.particle:nth-child(6), .particle:nth-child(7), .particle:nth-child(8) { display: none; }

.particle::before {
  display: none;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  5% { opacity: 0.3; }
  95% { opacity: 0.3; }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

/* Gradient Lines - removed */
.gradient-line {
  display: none;
}

/* =========================================
   Header - Premium Glass Style
   ========================================= */
.macos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(30, 30, 32, 0.85) 0%, rgba(22, 22, 24, 0.75) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.5), rgba(48, 209, 88, 0.4), transparent);
  opacity: 0.6;
}

.header-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-logo {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.header-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-version {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  margin-left: -4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-item {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-item-text {
  position: relative;
  z-index: 1;
}

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

.nav-item--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item--active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-social-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-social-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Wallet Connection Styles */
.btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  font-weight: 500;
  height: 34px;
  cursor: pointer;
}

/* Hide wallet button when wallet is connected */
#wallet-connect-btn[style*="display: none"],
#wallet-connect-btn[aria-hidden="true"],
#wallet-connect-btn.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wallet-address {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.wallet-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.section-badge--pro {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a78bfa;
  display: inline-flex;
  align-items: center;
}

.wallet-connected:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

#wallet-disconnect-btn {
  padding: var(--space-1) var(--space-2);
  min-width: auto;
  height: 28px;
}

#mode-restriction-notice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  margin-left: var(--space-2);
}

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.4), rgba(48, 209, 88, 0.3));
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  opacity: 1;
}

.header-mobile-cta {
  display: none !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.2s ease;
}

.mobile-menu-toggle:hover {
  opacity: 0.7;
}

.burger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.is-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: linear-gradient(180deg, rgba(30, 30, 32, 0.98) 0%, rgba(22, 22, 24, 0.95) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.mobile-menu-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.mobile-menu-nav {
  flex: 1;
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-left-color: var(--accent);
}

.mobile-menu-item--active {
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

.mobile-menu-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-menu-footer {
  padding: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-wallet-mobile {
  width: 100%;
  justify-content: center;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
}

.mobile-wallet-connected {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.mobile-wallet-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-wallet-address {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  word-break: break-all;
}

.mobile-wallet-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: fit-content;
}

.mobile-wallet-connected .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .header-mobile-cta {
    display: none !important;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

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

  .header-glow {
    width: 200px;
  }
}

/* =========================================
   Buttons - macOS Style with Animations
   ========================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-5);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary {
  color: white;
  background: var(--accent-gradient);
  box-shadow:
    0 2px 8px rgba(10, 132, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Shimmer effect on primary button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(10, 132, 255, 0.4),
    0 0 40px rgba(10, 132, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 8px rgba(10, 132, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-large {
  height: 48px;
  padding: 0 var(--space-8);
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-large:hover svg {
  transform: translateX(4px);
}

/* =========================================
   Main Content
   ========================================= */
.main-content {
  padding-top: var(--header-height);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: var(--space-16) var(--space-6);
  overflow: hidden;
}

/* Hero Decorations - Minimal */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  top: -20%;
  right: -20%;
  animation: heroCircleSpin 60s linear infinite;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -10%;
  border-style: dashed;
  animation: heroCircleSpin 80s linear infinite reverse;
}

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

.hero-line, .hero-cross {
  display: none;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.badge-highlight {
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-full);
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.headline-gradient {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 25%,
    var(--success) 50%,
    var(--accent) 75%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* Developer Section */
.developer-section {
  padding: var(--space-12) var(--space-6);
}

.developer-card-large {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.developer-card-large:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.developer-card-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.developer-avatar-large {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.developer-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.developer-status-large {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--success);
  border: 3px solid var(--bg-page);
  border-radius: 50%;
}

.developer-content {
  flex: 1;
  min-width: 0;
}

.developer-label-large {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.developer-name-large {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.developer-bio {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.developer-github-large {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.developer-card-large:hover .developer-github-large {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* =========================================
   macOS Window Component - Enhanced
   ========================================= */
.hero-window,
.cta-window {
  position: relative;
  background: var(--bg-window);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-window);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-window:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 80px rgba(10, 132, 255, 0.1);
}

/* Floating animation for hero window */
.hero-window {
  animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-window {
    animation: none;
  }
}

.window-chrome {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-window-chrome);
  border-bottom: 1px solid var(--border-light);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: var(--space-4);
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.control-close {
  background: #ff5f57;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.control-minimize {
  background: #febc2e;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.control-maximize {
  background: #28c840;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}

.window-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.window-spacer {
  width: 52px;
}

.window-content {
  padding: var(--space-8);
}

/* Token Header */
.token-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.token-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.token-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.token-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Stats Grid - Enhanced */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.stat-card {
  position: relative;
  padding: var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(44, 44, 46, 0.6) 0%,
    rgba(30, 30, 32, 0.8) 100%
  );
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  background: linear-gradient(
    135deg,
    rgba(58, 58, 60, 0.7) 0%,
    rgba(44, 44, 46, 0.9) 100%
  );
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
  transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
  color: var(--text-secondary);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
  color: #fff;
}

.stat-value--success {
  color: var(--success);
}

.stat-card:hover .stat-value--success {
  text-shadow: 0 0 20px rgba(48, 209, 88, 0.5);
}

/* CA Container */
.ca-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.ca-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ca-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.ca-address {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.ca-copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* =========================================
   Sections
   ========================================= */
.section {
  position: relative;
  padding: var(--space-20) var(--space-6);
  overflow: hidden;
}

.section--alt {
  background: transparent;
}

/* How It Works - reduced top padding */
#how-it-works {
  padding-top: var(--space-12);
}

/* Socials - reduced top padding (30% less) */
#socials {
  padding-top: calc(var(--space-20) * 0.7);
}

/* Section Decorations - Minimal */
.section-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decoration-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.decoration-ring-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -150px;
  animation: ringRotate 80s linear infinite;
}

.decoration-ring-2 {
  width: 350px;
  height: 350px;
  bottom: -120px;
  left: -120px;
  border-style: dashed;
  animation: ringRotate 100s linear infinite reverse;
}

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

.decoration-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 50%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 50%);
}

.decoration-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.decoration-corner-tl {
  top: 60px;
  left: 60px;
  border-right: none;
  border-bottom: none;
  border-radius: 16px 0 0 0;
}

.decoration-corner-br {
  bottom: 60px;
  right: 60px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 16px 0;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-container--narrow {
  max-width: 800px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================
   Steps Grid (How It Works) - Enhanced
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

/* Connection line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 72px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--success) 50%,
    var(--accent) 100%
  );
  opacity: 0.3;
  z-index: 0;
}

.step-card {
  position: relative;
  padding: var(--space-8);
  background: linear-gradient(
    180deg,
    rgba(44, 44, 46, 0.6) 0%,
    rgba(30, 30, 32, 0.8) 100%
  );
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.1) 0%,
    transparent 50%,
    rgba(48, 209, 88, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover {
  background: linear-gradient(
    180deg,
    rgba(58, 58, 60, 0.7) 0%,
    rgba(44, 44, 46, 0.9) 100%
  );
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(10, 132, 255, 0.1);
}

.step-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, #409cff 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
  transition: all 0.4s ease;
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.4);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: color 0.3s ease;
}

.step-card:hover .step-title {
  color: #fff;
}

.step-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.step-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  border-radius: var(--radius-full);
}

.step-time::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Section Compact */
.section--compact {
  padding: var(--space-12) var(--space-6);
}

/* Steps Timeline - New Design */
.steps-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 23px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(10, 132, 255, 0.3) 50%,
    rgba(10, 132, 255, 0.1) 100%
  );
  border-radius: 1px;
}

.step-card-new {
  position: relative;
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0;
}

.step-indicator {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.step-card-new:hover .step-dot {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.4);
}

.step-content {
  flex: 1;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.step-card-new:hover .step-content {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.step-title-new {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-time-new {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.step-description-new {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* =========================================
   Developer Card Hero - Large Version
   ========================================= */
.developer-card-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.developer-card-hero:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.developer-avatar-hero {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.developer-avatar-hero img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.developer-status-hero {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--success);
  border: 3px solid var(--bg-page);
  border-radius: 50%;
}

.developer-info-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.developer-label-hero {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.developer-name-hero {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.developer-icon-hero {
  margin-left: var(--space-2);
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.developer-card-hero:hover .developer-icon-hero {
  color: var(--text-primary);
}

/* =========================================
   Steps Row - Horizontal Layout (How It Works)
   ========================================= */
.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-item-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-4);
  transition: all 0.3s ease;
}

.step-item:hover .step-item-number {
  opacity: 0.6;
  transform: scale(1.05);
}

.step-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-item-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.step-item-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  flex: 1;
}

.step-item-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  border-radius: var(--radius-full);
  width: fit-content;
}

.step-item-time::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  flex-shrink: 0;
  position: relative;
}

.step-connector::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(10, 132, 255, 0.3));
  opacity: 0.5;
}

.step-connector::after {
  content: '→';
  font-size: 18px;
  color: var(--accent);
  opacity: 0.6;
  position: relative;
  z-index: 1;
  background: var(--bg-page);
  padding: 0 var(--space-2);
}

/* =========================================
   Features Row - Same Style as How It Works
   ========================================= */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-item-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-4);
  opacity: 0.85;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.feature-item:hover .feature-item-icon {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.feature-item-content {
  flex: 1;
  min-width: 0;
}

.feature-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-item-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* =========================================
   Features Grid - Premium Design
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  position: relative;
  padding: var(--space-8);
  background: linear-gradient(
    135deg,
    rgba(44, 44, 46, 0.8) 0%,
    rgba(30, 30, 32, 0.9) 100%
  );
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Gradient border effect on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 100%
  );
  -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;
}

.feature-card:hover::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--success) 50%,
    var(--accent) 100%
  );
}

/* Glow effect */
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(10, 132, 255, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(10, 132, 255, 0.1);
}

.feature-icon {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-icon--gradient {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-card:hover .feature-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(10, 132, 255, 0.15);
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: #fff;
}

.feature-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.feature-card:hover .feature-description {
  color: var(--text-primary);
}

/* Featured/highlighted card variant */
.feature-card--featured {
  background: linear-gradient(
    135deg,
    rgba(10, 132, 255, 0.15) 0%,
    rgba(30, 30, 32, 0.95) 50%,
    rgba(48, 209, 88, 0.1) 100%
  );
  border-color: rgba(10, 132, 255, 0.2);
}

.feature-card--featured .feature-icon {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.15) 0%,
    rgba(167, 139, 250, 0.1) 100%
  );
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.15);
}

.feature-card--featured:hover .feature-icon {
  box-shadow:
    0 0 40px rgba(96, 165, 250, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  background: transparent;
}

.faq-question {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition-normal);
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item[data-open="true"] .faq-answer-wrapper {
  max-height: 300px;
}

.faq-answer {
  padding-bottom: var(--space-5);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =========================================
   Socials Section
   ========================================= */
.socials-content {
  max-width: 800px;
  margin: 0 auto;
}

.socials-ca-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
}

.socials-ca-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.socials-ca-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.socials-ca-address {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socials-ca-copy-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.socials-ca-copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(10, 132, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.social-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.social-link:hover .social-logo {
  transform: scale(1.1);
}

.social-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.social-link:hover .social-name {
  color: var(--text-primary);
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  padding-bottom: var(--space-20);
}

.cta-window {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content {
  padding: var(--space-16) var(--space-12);
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  padding: var(--space-8) var(--space-6);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright,
.footercopyright {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.footercopyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* =========================================
   Animations & Keyframes
   ========================================= */

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(10, 132, 255, 0.5);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--border-light);
  }
  50% {
    border-color: var(--accent);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* =========================================
   Builder Page Styles
   ========================================= */
.builder-section {
  padding: var(--space-12) var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.builder-header {
  margin-bottom: var(--space-10);
}

.builder-header .section-badge {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.builder-header .section-title {
  font-size: 32px;
  margin-bottom: var(--space-3);
  text-align: left;
}

.builder-header .section-subtitle {
  text-align: left;
  margin: 0;
  max-width: none;
}

/* Cards */
.card {
  position: relative;
  background: var(--bg-window);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-window-chrome);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.card-body {
  padding: var(--space-6);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.form-grid-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.label-main {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

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

.required-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  padding: 2px 6px;
  background: var(--accent-light);
  border-radius: var(--radius-xs);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

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

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input-error {
  border-color: var(--error) !important;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2386868b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

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

.error-text {
  font-size: 12px;
  color: var(--error);
  min-height: 18px;
  margin-top: var(--space-1);
}

/* Preview */
.preview-chrome {
  background: var(--bg-window);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-chrome-top {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-window-chrome);
  border-bottom: 1px solid var(--border-light);
}

.preview-dots {
  display: flex;
  gap: 6px;
  margin-right: var(--space-4);
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-address {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

.preview-viewport {
  background: var(--bg-page);
  min-height: 800px;
  display: flex;
  justify-content: center;
  padding: var(--space-4);
}

.preview-viewport-inner {
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: max-width var(--transition-normal);
}

.preview-viewport--desktop .preview-viewport-inner { max-width: 100%; }
.preview-viewport--tablet .preview-viewport-inner { max-width: 768px; }
.preview-viewport--mobile .preview-viewport-inner { max-width: 375px; }

.preview-viewport iframe {
  width: 100%;
  height: 800px;
  border: none;
}

/* Device Toggle */
.device-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.device-toggle button {
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-toggle button.is-active {
  color: var(--text-primary);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xs);
}

/* Progress */
.progress-rail {
  margin-top: var(--space-5);
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Generation Log */
.generation-log {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  max-height: 150px;
  overflow-y: auto;
  font-size: 12px;
}

.generation-log-line {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-1) 0;
  font-family: var(--font-mono);
}

.generation-log-time {
  color: var(--text-tertiary);
}

.generation-log-label {
  color: var(--accent);
  font-weight: 500;
}

.generation-log-detail {
  color: var(--text-secondary);
}

.generation-log-line--error .generation-log-label {
  color: var(--error);
}

/* Pills & Status */
.pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: 12px;
  border-radius: var(--radius-full);
}

.pill--success {
  color: var(--success);
  background: var(--success-light);
}

.pill-content {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Custom Blocks */
.custom-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.custom-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.custom-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.custom-block-remove {
  font-size: 12px;
  color: var(--error);
  cursor: pointer;
}

.custom-block-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item-row {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.faq-item-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.faq-item-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.faq-item-remove {
  font-size: 11px;
  color: var(--error);
  cursor: pointer;
}

.faq-item-input {
  width: 100%;
  padding: var(--space-3);
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-2);
  background: var(--bg-tertiary);
}

.faq-item-textarea {
  min-height: 60px;
  resize: vertical;
}

.add-faq-item-btn,
.info-block-title-input,
.info-block-content-input,
.info-block-images-input {
  width: 100%;
  padding: var(--space-3);
  font-size: 14px;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: var(--bg-secondary);
}

.add-faq-item-btn {
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.add-faq-item-btn:hover {
  background: var(--accent-light);
}

/* =========================================
   Builder Additional Styles
   ========================================= */

/* Small Button */
.btn-sm {
  height: 32px;
  padding: 0 var(--space-3);
  font-size: 13px;
  gap: var(--space-2);
}

/* Social Links Toggle */
.social-links-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-links-toggle:hover {
  background: var(--bg-card);
  border-color: var(--border-medium);
}

.social-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.social-toggle-icon {
  transition: transform var(--transition-normal);
}

.social-links-content {
  display: none;
  padding: var(--space-4);
  margin-top: var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.social-links-content.is-expanded {
  opacity: 1;
  transform: translateY(0);
}

/* Help Text */
.help-text {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-2);
}

/* Custom Blocks Actions */
.custom-blocks-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* Generation Controls */
.generation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-window-chrome);
  border-top: 1px solid var(--border-light);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.generation-controls-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.generation-badge {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label {
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}

/* Generate Button */
.generate-button-wrapper {
  padding: var(--space-6);
  background: var(--bg-window-chrome);
  border-top: 1px solid var(--border-light);
}

.btn-generate {
  width: 100%;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
}

/* File Input */
.file-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.file-input {
  width: 100%;
  padding: var(--space-3);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.file-input::file-selector-button {
  padding: var(--space-2) var(--space-4);
  margin-right: var(--space-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-input::file-selector-button:hover {
  background: var(--bg-card);
  border-color: var(--accent);
}

.file-input-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Status Row */
.status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.status-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.status-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.status-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Preview Wrapper */
.preview-wrapper {
  position: relative;
}

.preview-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-8);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
}

.preview-empty-state strong {
  color: var(--text-secondary);
}

/* Preview Actions */
.preview-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-4);
}

.preview-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-action-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-medium);
}

/* =========================================
   Fullscreen Preview Modal
   ========================================= */
.fullscreen-preview-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.fullscreen-preview-modal.is-open {
  display: flex;
  opacity: 1;
}

.fullscreen-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fullscreen-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  z-index: 1;
}

.fullscreen-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-window-chrome);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.fullscreen-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.fullscreen-preview-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fullscreen-preview-close:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-medium);
  transform: scale(1.05);
}

.fullscreen-preview-content {
  flex: 1;
  overflow: hidden;
  background: var(--bg-page);
}

#fullscreen-preview-iframe,
#preview-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* Utilities */
.hidden { display: none !important; }

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 540px;
  }

  .hero-window {
    max-width: 420px;
    margin: 0 auto;
  }

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

  /* Steps Row Tablet */
  .steps-row {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .step-item {
    flex: 1 1 calc(50% - var(--space-4));
    min-width: 280px;
  }

  .step-connector {
    display: none;
  }

  /* Features Row Tablet */
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --space-section: 48px;
  }

  /* Header Mobile */
  .header-inner {
    padding: 0 var(--space-4);
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

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

  /* Hero Mobile */
  .hero-section {
    min-height: auto;
    padding: var(--space-10) var(--space-4);
  }

  .hero-headline {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-badge {
    padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
  }

  .badge-text {
    font-size: 12px;
  }

  .badge-highlight {
    font-size: 11px;
    padding: 2px var(--space-2);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }

  .hero-buttons .btn {
    width: 100%;
    height: 52px;
  }

  .developer-card {
    margin-top: var(--space-6);
  }

  .developer-link {
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
    gap: var(--space-3);
  }

  .developer-avatar {
    width: 38px;
    height: 38px;
  }

  .developer-desc {
    display: none;
  }

  .developer-github {
    width: 18px;
    height: 18px;
  }

  /* Developer Section Mobile */
  .developer-section {
    padding: var(--space-8) var(--space-4);
  }

  .developer-card-large {
    padding: var(--space-4);
  }

  .developer-card-inner {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .developer-avatar-large {
    width: 52px;
    height: 52px;
  }

  .developer-name-large {
    font-size: 16px;
  }

  .developer-bio {
    font-size: 12px;
  }

  .developer-github-large {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }

  /* Developer Card Hero Mobile */
  .developer-card-hero {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
    margin-top: var(--space-5);
  }

  .developer-avatar-hero {
    width: 42px;
    height: 42px;
  }

  .developer-status-hero {
    width: 12px;
    height: 12px;
  }

  .developer-name-hero {
    font-size: 14px;
  }

  .developer-label-hero {
    font-size: 10px;
  }

  /* Steps Row Mobile */
  .steps-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .step-connector {
    width: 100%;
    height: 40px;
    transform: rotate(90deg);
  }

  .step-connector::after {
    content: '↓';
    transform: rotate(-90deg);
  }

  .step-item {
    padding: var(--space-5);
  }

  .step-item-number {
    font-size: 36px;
    margin-bottom: var(--space-3);
  }

  .step-item-title {
    font-size: 17px;
  }

  .step-item-desc {
    font-size: 13px;
    margin-bottom: var(--space-4);
  }

  /* Socials Mobile */
  .socials-ca-container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .socials-ca-label {
    margin-bottom: 0;
  }

  .socials-ca-field {
    width: 100%;
  }

  .socials-ca-address {
    font-size: 12px;
  }

  .socials-ca-copy-btn {
    width: 28px;
    height: 28px;
  }

  .socials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .social-link {
    padding: var(--space-4);
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .social-logo {
    width: 28px;
    height: 28px;
  }

  .social-name {
    font-size: 13px;
  }

  /* Features Row Mobile */
  .features-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-item {
    padding: var(--space-5);
  }

  .feature-item-icon {
    width: 24px;
    height: 24px;
    margin-bottom: var(--space-3);
  }

  .feature-item-title {
    font-size: 16px;
  }

  .feature-item-desc {
    font-size: 13px;
  }

  /* Steps Timeline Mobile */
  .section--compact {
    padding: var(--space-8) var(--space-4);
  }

  .timeline-line {
    left: 19px;
  }

  .step-card-new {
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }

  .step-dot {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .step-content {
    padding: var(--space-3) var(--space-4);
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .step-title-new {
    font-size: 15px;
  }

  .step-description-new {
    font-size: 13px;
  }

  /* Sections Mobile */
  .section {
    padding: var(--space-12) var(--space-4);
  }

  #how-it-works {
    padding-top: var(--space-8);
  }

  #socials {
    padding-top: calc(var(--space-12) * 0.7);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-badge {
    font-size: 11px;
    padding: 6px var(--space-3);
  }

  .section-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Cards Mobile */
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .step-card {
    padding: var(--space-5);
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: var(--space-4);
  }

  .step-title {
    font-size: 18px;
  }

  .step-description {
    font-size: 14px;
    margin-bottom: var(--space-4);
  }

  .feature-card {
    padding: var(--space-5);
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-3);
  }

  .feature-title {
    font-size: 15px;
  }

  .feature-description {
    font-size: 13px;
  }

  /* FAQ Mobile */
  .faq-toggle {
    padding: var(--space-4) 0;
  }

  .faq-question {
    font-size: 15px;
  }

  .faq-answer {
    font-size: 14px;
    padding-bottom: var(--space-4);
  }

  /* CTA Mobile */
  .cta-window {
    border-radius: var(--radius-lg);
  }

  .cta-content {
    padding: var(--space-8) var(--space-5);
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-subtitle {
    font-size: 15px;
    margin-bottom: var(--space-6);
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }

  .cta-buttons .btn {
    width: 100%;
    height: 48px;
  }

  /* Footer Mobile */
  .footer {
    padding: var(--space-6) var(--space-4);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-copyright,
  .footercopyright {
    font-size: 11px;
  }

  /* Builder Page Mobile */
  .builder-section {
    padding: var(--space-8) var(--space-4);
  }

  .builder-header {
    margin-bottom: var(--space-6);
  }

  .builder-header .section-title {
    font-size: 24px;
  }

  .builder-header .section-subtitle {
    font-size: 14px;
  }

  /* Form Mobile */
  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card {
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
  }

  .card-header {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .card-title {
    font-size: 16px;
  }

  .card-subtitle {
    font-size: 13px;
  }

  .card-body {
    padding: var(--space-4);
  }

  .label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .label-main {
    font-size: 13px;
  }

  .label-meta {
    font-size: 11px;
  }

  .input,
  .textarea,
  .select {
    padding: var(--space-3);
    font-size: 16px; /* Prevents iOS zoom */
  }

  .textarea {
    min-height: 80px;
  }

  /* Device Toggle Mobile */
  .device-toggle {
    width: 100%;
    justify-content: center;
  }

  .device-toggle button {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }

  /* Generation Controls Mobile */
  .generation-controls {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .generation-controls-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .checkbox-label {
    font-size: 12px;
  }

  .generation-badge {
    align-self: flex-start;
  }

  .generate-button-wrapper {
    padding: var(--space-4);
  }

  .btn-generate {
    height: 48px;
    font-size: 15px;
  }

  /* Status Mobile */
  .status-row {
    flex-direction: column;
    gap: var(--space-4);
  }

  .status-value {
    font-size: 20px;
  }

  .status-meta {
    font-size: 13px;
  }

  .status-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .status-controls .btn {
    width: 100%;
  }

  .status-controls .pill {
    justify-content: center;
  }

  /* Preview Mobile */
  .preview-chrome {
    border-radius: var(--radius-md);
  }

  .preview-chrome-top {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }

  .preview-dots {
    margin-right: var(--space-2);
  }

  .preview-dot {
    width: 10px;
    height: 10px;
  }

  .preview-address {
    order: 3;
    flex: 1 1 100%;
    margin-top: var(--space-2);
    font-size: 11px;
    padding: var(--space-2) var(--space-3);
  }

  .preview-actions {
    margin-left: auto;
  }

  .preview-action-btn {
    width: 32px;
    height: 32px;
  }

  .preview-viewport {
    min-height: 500px;
    padding: var(--space-2);
  }

  .preview-viewport iframe {
    height: 500px;
  }

  .preview-empty-state {
    font-size: 13px;
    padding: var(--space-4);
  }

  /* Fullscreen Preview Modal Mobile */
  .fullscreen-preview-header {
    padding: var(--space-3) var(--space-4);
  }

  .fullscreen-preview-title {
    font-size: 14px;
  }

  .fullscreen-preview-close {
    width: 32px;
    height: 32px;
  }

  /* Progress Mobile */
  .progress-rail {
    margin-top: var(--space-4);
  }

  .generation-log {
    font-size: 11px;
    max-height: 120px;
  }

  /* Custom Blocks Mobile */
  .custom-blocks-actions {
    flex-direction: column;
  }

  .custom-blocks-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .custom-block-content {
    padding: var(--space-3);
  }

  .faq-item-row {
    padding: var(--space-3);
  }

  /* Social Links Mobile */
  .social-links-toggle {
    padding: var(--space-3);
  }

  .social-links-content {
    padding: var(--space-3);
  }

  .social-links-content .form-grid {
    gap: var(--space-3);
  }

  /* File Input Mobile */
  .file-input {
    font-size: 14px;
  }

  .file-input::file-selector-button {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }

  .file-input-meta {
    font-size: 11px;
  }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 480px) {
  .hero-section {
    padding: var(--space-8) var(--space-3);
  }

  .hero-headline {
    font-size: 26px;
  }

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

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

  .window-chrome {
    padding: var(--space-2) var(--space-3);
  }

  .window-controls {
    gap: 6px;
    margin-right: var(--space-2);
  }

  .control {
    width: 10px;
    height: 10px;
  }

  .window-title {
    font-size: 12px;
  }

  .window-spacer {
    width: 40px;
  }

  .window-content {
    padding: var(--space-4);
  }

  .token-header {
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .token-logo {
    width: 48px;
    height: 48px;
  }

  .token-name {
    font-size: 16px;
  }

  .token-tagline {
    font-size: 13px;
  }

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

  .stat-card {
    padding: var(--space-3);
  }

  .stat-label {
    font-size: 10px;
  }

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

  .ca-container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
  }

  .ca-label {
    margin-bottom: 0;
  }

  .ca-address {
    font-size: 10px;
  }

  /* Socials Extra Small */
  .socials-ca-container {
    padding: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .socials-ca-label {
    font-size: 11px;
  }

  .socials-ca-field {
    padding: var(--space-2) var(--space-3);
  }

  .socials-ca-address {
    font-size: 11px;
  }

  .socials-ca-copy-btn {
    width: 24px;
    height: 24px;
  }

  .socials-ca-copy-btn svg {
    width: 12px;
    height: 12px;
  }

  .socials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .social-link {
    padding: var(--space-3);
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-logo {
    width: 24px;
    height: 24px;
  }

  .social-name {
    font-size: 12px;
  }

  /* Section adjustments */
  .section {
    padding: var(--space-10) var(--space-3);
  }

  #socials {
    padding-top: calc(var(--space-10) * 0.7);
  }

  .section-title {
    font-size: 22px;
  }

  .step-card,
  .feature-card {
    padding: var(--space-4);
  }

  /* Builder adjustments */
  .builder-section {
    padding: var(--space-6) var(--space-3);
  }

  .card-header,
  .card-body {
    padding: var(--space-3);
  }

  .generation-controls,
  .generate-button-wrapper {
    padding: var(--space-3);
  }

  /* CTA adjustments */
  .cta-content {
    padding: var(--space-6) var(--space-4);
  }

  .cta-title {
    font-size: 22px;
  }

  /* Footer adjustments */
  .footer {
    padding: var(--space-5) var(--space-3);
  }

  .footer-nav {
    gap: var(--space-3);
  }
}

/* Very Small Devices (360px and below) */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 24px;
  }

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

  .section-title {
    font-size: 20px;
  }

  .cta-title {
    font-size: 20px;
  }

  .btn-large {
    height: 44px;
    padding: 0 var(--space-5);
    font-size: 14px;
  }
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
  .macos-header,
  .footer {
    display: none;
  }

  .main-content {
    padding-top: 0;
  }
}
