/* ==========================================================================
   POW! Landing Page — Premium Redesigned Stylesheet
   Modern glassmorphism, vibrant gradients, micro-animations, and rich aesthetics.
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
  --bg-main: #fafbff;
  --bg-surface: #f1f5f9;
  --bg-surface-glass: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(0, 0, 0, 0.06);

  --primary: #1877f2;
  --primary-dark: #1565d8;
  --primary-glow: rgba(24, 119, 242, 0.18);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --font-family-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-head: 'Plus Jakarta Sans', var(--font-family-sans);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px 0 var(--primary-glow);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* --- BASE STYLES --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  font-family: var(--font-family-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 10;
}

/* --- DYNAMIC GLOWING BACKGROUNDS --- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  will-change: transform;
}
.blob-1 {
  top: -15%;
  right: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(24, 119, 242, 0.25) 0%, transparent 70%);
  animation: blobFloat1 18s ease-in-out infinite;
}
.blob-2 {
  top: 35%;
  left: -12%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  animation: blobFloat2 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.05); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-20px, 30px) scale(0.96); }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-family-head);
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
p {
  line-height: 1.7;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.75rem 0;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.15);
  transition: var(--transition-bounce);
}
.header-logo:hover {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-family-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.created-by-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link:hover::after {
  width: 100%;
}

/* --- CTA AREA --- */
.cta-area {
  display: flex;
  align-items: center;
}

.btn-chrome-store {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, var(--purple) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-family-sans);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  animation: gradientShift 4s ease infinite;
}
.btn-chrome-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}
.btn-chrome-store:active {
  transform: translateY(0);
}
.btn-chrome-store .chrome-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

/* --- SHARED ICON STYLES --- */
.chrome-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.chrome-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, var(--purple) 100%);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: var(--font-family-sans);
  box-shadow:
    0 8px 24px -4px rgba(24, 119, 242, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border: none;
  transition: var(--transition-smooth);
  animation: gradientShift 4s ease infinite;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px -8px rgba(24, 119, 242, 0.45),
    0 0 50px 0 rgba(139, 92, 246, 0.2);
}
.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-family-sans);
  transition: var(--transition-smooth);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-family: var(--font-family-sans);
}
.btn-text:hover {
  color: var(--primary);
}
.btn-text:hover .arrow-down-icon {
  transform: translateY(3px);
}

.download-icon {
  width: 22px;
  height: 22px;
}
.arrow-down-icon {
  width: 18px;
  height: 18px;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 5rem;
  padding-bottom: 6rem;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(139, 92, 246, 0.08));
  color: var(--primary);
  border: 1px solid rgba(24, 119, 242, 0.15);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: badgePulse 3s ease-in-out infinite;
}
.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--warning);
  fill: var(--warning);
  stroke: var(--warning);
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(24, 119, 242, 0); }
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-family-head);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* --- HERO GUI MOCKUP --- */
.hero-visual {
  perspective: 1200px;
}

.mockup-window {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow:
    var(--shadow-elevated),
    0 40px 80px -20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotateY(-4deg) rotateX(3deg);
}
.mockup-window:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-header {
  background: rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-body {
  padding: 1.25rem;
  background: #ffffff;
}

/* --- Simulated Extension Panel --- */
.panel-preview {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── WUNDERLIST THEME MOCKUP ── */
.wunder-mock {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  line-height: 1.4;
  color: #333;
  width: 100%;
  height: 400px;
  padding: 0 !important;
  border: none !important;
}

.wunder-window-bar {
  display: flex;
  align-items: center;
  height: 38px;
  background: linear-gradient(to bottom, #f5f5f5 0%, #dfdfdf 100%);
  border-bottom: 1px solid #b3b3b3;
  padding: 0 12px;
  position: relative;
  flex-shrink: 0;
}

.wunder-title {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #4d4d4d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wunder-close {
  position: absolute;
  right: 12px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.wunder-close:hover {
  color: #333;
}

.wunder-content {
  display: flex;
  flex: 1;
  height: calc(100% - 82px);
  text-align: left;
  overflow: hidden;
}

.wunder-main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #5cbddb;
  position: relative;
  overflow: hidden;
}

.wunder-bg-anim {
  background: linear-gradient(-45deg, #10b981, #3b82f6, #059669, #8b5cf6, #10b981) !important;
  background-size: 400% 400% !important;
  animation: wunderGradientMove 4s ease infinite;
}

@keyframes wunderGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wunder-pane-header {
  padding: 16px 20px 8px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wunder-pane-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.wunder-log-container {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.wunder-row {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.wunder-row:hover {
  transform: translateX(2px);
}
.wunder-row.success { background: rgba(240, 255, 240, 0.95); }
.wunder-row.warning { background: rgba(255, 250, 230, 0.95); }

.wunder-star { color: #d1d1d1; font-size: 16px; }
.wunder-star.active { color: #ff3b30; }

.wunder-text { font-size: 12px; color: #333; flex: 1; }

.wunder-sidebar {
  width: 180px;
  background: #f7f7f7;
  border-left: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.wunder-sidebar-section {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}
.wunder-sidebar-section.active { background: #3988d7; color: #fff; }
.wunder-icon { margin-right: 8px; font-size: 14px; }
.wunder-badge { margin-left: auto; background: rgba(255, 255, 255, 0.2); padding: 2px 6px; border-radius: 10px; font-size: 10px; }

.wunder-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px 6px 24px; font-size: 11px; color: #555; border-bottom: 1px solid #eee;
}
.wunder-stat-badge { background: rgba(0, 0, 0, 0.05); padding: 2px 6px; border-radius: 10px; font-weight: 600; color: #777; font-size: 10px; }

.wunder-sidebar-header { padding: 12px 12px 6px; font-size: 10px; text-transform: uppercase; color: #888; font-weight: 700; }
.wunder-settings { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.wunder-setting-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #444; }
.wunder-setting-row { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #555; }
.wunder-num-input { width: 32px; padding: 2px; border: 1px solid #ccc; border-radius: 4px; font-size: 11px; text-align: center; }

.wunder-bottom-bar {
  display: flex; align-items: center; justify-content: center;
  height: 44px; background: linear-gradient(to bottom, #5d5d5d 0%, #444444 100%);
  padding: 0 16px; border-top: 1px solid #333; position: relative;
  flex-shrink: 0;
}
.wunder-footer-link {
  position: absolute; right: 16px; color: #bbb; text-decoration: none; font-size: 12px; font-weight: 500; transition: color 0.2s;
}
.wunder-footer-link:hover { color: #fff; text-decoration: underline; }
.wunder-actions-center {
  display: flex; gap: 8px; background: #2b2b2b; padding: 4px; border-radius: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.wunder-btn {
  background: transparent; border: none; color: #b0b0b0; padding: 4px 10px;
  font-size: 11px; font-weight: 600; border-radius: 12px; cursor: default;
}
.wunder-btn.primary {
  background: linear-gradient(to bottom, #4da4f7, #2481e3); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.wunder-btn.danger { color: #ff5f56; }

@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(77, 164, 247, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(77, 164, 247, 0), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(77, 164, 247, 0), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 95, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); }
}

.wunder-btn.primary.active-glow { animation: pulse-blue 1.5s infinite; }
.wunder-btn.danger.active-glow { animation: pulse-red 1.5s infinite; color: #ff5f56; }

/* --- FEATURES SECTION --- */
.features {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(241, 245, 249, 0.5) 50%, var(--bg-main) 100%);
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem;
}
.section-title h2 {
  background: linear-gradient(135deg, #0f172a 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

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

.feature-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 119, 242, 0.12);
  box-shadow: var(--shadow-elevated);
}
.feature-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
}
.feat-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: inherit;
  filter: blur(12px);
  opacity: 0.4;
  z-index: -1;
}
.feat-icon svg {
  width: 24px;
  height: 24px;
}

.gradient-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.gradient-pink { background: linear-gradient(135deg, #db2777, #f43f5e); }
.gradient-purple { background: linear-gradient(135deg, #6d28d9, var(--purple)); }
.gradient-green { background: linear-gradient(135deg, #047857, var(--success)); }

.feature-card h3 {
  font-size: 1.3rem;
}
.feature-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* --- INSTALLATION SECTION --- */
.installation {
  background: linear-gradient(180deg, var(--bg-main) 0%, #f0f4ff 50%, var(--bg-main) 100%);
}

/* Steps - flexible for 3 or 4 columns */
.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.steps-container.steps-3 {
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.step-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step-card:hover {
  border-color: rgba(24, 119, 242, 0.15);
  box-shadow: 0 16px 32px -8px rgba(24, 119, 242, 0.12);
  transform: translateY(-4px);
}
.step-card:hover::before {
  opacity: 1;
}

.step-num {
  font-family: var(--font-family-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-content code {
  background: rgba(59, 130, 246, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.1);
  font-size: 0.85em;
}

.step-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}
.step-download-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.step-download-link:hover {
  color: var(--purple);
}
.step-download-link:hover svg:last-child {
  transform: translateX(3px);
}

.step-store-link {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.06), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(24, 119, 242, 0.12);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}
.step-store-link:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(24, 119, 242, 0.25);
  transform: none;
}
.step-store-link .chrome-icon-sm {
  color: var(--primary);
}

/* --- SECURITY & PRIVACY --- */
.security-privacy {
  padding-bottom: 8rem;
}

.security-container {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(24, 119, 242, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 60%),
    var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.security-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success), var(--primary));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.security-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.verified-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.security-text h2 {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.security-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.security-badge-visual {
  display: flex;
  justify-content: center;
}

.privacy-shield {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.06), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(24, 119, 242, 0.12);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  color: var(--primary);
  box-shadow: var(--shadow-elevated);
  animation: float 5s ease-in-out infinite;
  text-align: center;
  position: relative;
}
.privacy-shield::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(16, 185, 129, 0.15));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
}
.privacy-shield svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(24, 119, 242, 0.25));
  color: var(--primary);
}
.privacy-shield span {
  font-family: var(--font-family-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.shield-sub {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.02em !important;
}

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

/* --- FOOTER --- */
footer {
  background: linear-gradient(180deg, var(--bg-main), #f0f4ff);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 3.5rem 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-left .logo-area {
  gap: 0.5rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.1);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-center {
  display: flex;
  align-items: center;
}

.footer-store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}
.footer-store-link:hover {
  color: var(--primary);
  border-color: rgba(24, 119, 242, 0.15);
  background: rgba(24, 119, 242, 0.04);
  transform: translateY(-1px);
}
.footer-store-link .chrome-icon-sm {
  color: var(--primary);
}

.footer-right {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-dev-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.footer-dev-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-zip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.footer-zip-link:hover {
  color: var(--text-secondary);
}

.zip-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.footer-link:hover {
  color: var(--text-primary);
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-visual {
  animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.feature-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.step-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* --- PULSE GLOW ANIMATION --- */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(24, 119, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0); }
}

/* --- M LOGO RING (if still used) --- */
.m-logo-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(45deg, #10b981, #3b82f6, #059669, #3b82f6, #10b981);
  background-size: 300% 300%;
  animation: mGradientMove 5s ease infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  box-shadow: 0 4px 10px rgba(71, 85, 105, 0.3);
  line-height: 1;
  padding-top: 2px;
  margin: 0 4px;
  font-weight: normal;
  letter-spacing: 0;
}
@keyframes mGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    justify-content: center;
    gap: 2.5rem;
  }
  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .steps-container,
  .steps-container.steps-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .security-container {
    grid-template-columns: 1fr;
    padding: 3rem;
    gap: 3rem;
    text-align: center;
  }
  .security-badge-visual {
    order: -1;
  }
  .security-tag {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }

  nav { display: none; }

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

  .steps-container,
  .steps-container.steps-3 {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    align-items: center;
  }
  .footer-right {
    align-items: center;
  }
  .footer-dev-section {
    align-items: center;
  }
  .footer-left .logo-area {
    justify-content: center;
  }

  .wunder-sidebar {
    display: none;
  }
  .wunder-mock {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    gap: 1.5rem;
  }

  .security-container {
    padding: 2rem;
  }

  .feature-card {
    padding: 2rem;
  }
  .step-card {
    padding: 1.75rem;
  }
}

/* --- SELECTION STYLE --- */
::selection {
  background: rgba(24, 119, 242, 0.15);
  color: var(--text-primary);
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg-glow {
    animation: none;
  }
  .mockup-window {
    transform: none;
  }
  .mockup-window:hover {
    transform: none;
  }
}
