/* Premium Liquid Glassmorphic Styling for MeshMint */

:root {
  /* Dark Mode (Default) Colors */
  --bg: #070913;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --mint: #10b981;
  --mint-glow: rgba(16, 185, 129, 0.25);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.25);
  
  --card-bg: rgba(15, 23, 42, 0.45);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-glow: rgba(255, 255, 255, 0.02);
  
  --glow-1: rgba(59, 130, 246, 0.18);
  --glow-2: rgba(16, 185, 129, 0.14);
  
  --input-bg: rgba(7, 9, 19, 0.6);
  --input-border: rgba(255, 255, 255, 0.12);
  
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-main: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  /* Light Mode Colors */
  --bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  
  --mint: #059669;
  --mint-glow: rgba(5, 150, 105, 0.15);
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.15);
  
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-glow: rgba(37, 99, 235, 0.01);
  
  --glow-1: rgba(37, 99, 235, 0.08);
  --glow-2: rgba(5, 150, 105, 0.06);
  
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(0, 0, 0, 0.12);
  
  --shadow-main: 0 10px 30px -8px rgba(31, 38, 135, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-height: 100vh;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Ambient Backdrop Glows */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  filter: blur(140px);
  border-radius: 50%;
  opacity: 0.55;
  transition: all 0.5s ease;
}

.glow-blue {
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: var(--glow-1);
}

.glow-mint {
  top: 35%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--glow-2);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  background: rgba(7, 9, 19, 0.15);
  transition: all 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.15);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text-main);
}

.desktop-nav a.nav-download-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transition: all 0.2s ease;
}

[data-theme="light"] .desktop-nav a.nav-download-btn {
  background: rgba(0, 0, 0, 0.02);
}

.desktop-nav a.nav-download-btn:hover {
  border-color: var(--mint);
  background: var(--mint-glow);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.02);
}

.theme-toggle:hover {
  border-color: var(--blue);
  background: var(--blue-glow);
}

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }


/* Hero Section */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--mint-glow);
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 24px;
}

.live-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: beacon 2s infinite;
}

@keyframes beacon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-content h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

[data-theme="light"] .secondary-btn {
  background: rgba(0, 0, 0, 0.02);
}

.secondary-btn:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* Glass Phone Mockup & Liquid Orb */
.hero-mockup {
  display: flex;
  justify-content: center;
  position: relative;
}

.glass-phone {
  width: 290px;
  height: 570px;
  border-radius: 48px;
  border: 1.5px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: float 7s ease-in-out infinite;
}

[data-theme="light"] .glass-phone {
  background: rgba(255, 255, 255, 0.35);
}

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

.phone-bar {
  width: 80px;
  height: 6px;
  border-radius: 99px;
  background: var(--card-border);
  margin-bottom: 24px;
}

.phone-screen {
  flex: 1;
  width: 100%;
  border-radius: 32px;
  border: 1px solid var(--card-border);
  background: rgba(7, 9, 19, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 30px;
  overflow: hidden;
}

[data-theme="light"] .phone-screen {
  background: rgba(255, 255, 255, 0.55);
}

.liquid-orb-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 36px;
}

.liquid-orb {
  width: 100%;
  height: 100%;
  border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
  animation: morph 8s ease-in-out infinite, rotateOrb 12s linear infinite;
  opacity: 0.9;
}

.orb-pulsing-rings {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  opacity: 0.25;
  animation: pulse-ring 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%; }
  50% { border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%; }
}

@keyframes rotateOrb {
  100% { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 0; }
}

.mockup-status {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.mockup-ssid {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 44px;
}

.mockup-creds {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  padding: 16px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.creds-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.creds-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}


/* Bento Grid Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.alt-bg {
  background: rgba(255, 255, 255, 0.01);
}

[data-theme="light"] .alt-bg {
  background: rgba(0, 0, 0, 0.01);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glass-card {
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--card-glow), transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 40px -15px rgba(31, 38, 135, 0.1);
}

.bento-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.bento-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

.font-icon {
  background: var(--mint-glow);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.bento-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.bento-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-card code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

[data-theme="light"] .bento-card code {
  background: rgba(0, 0, 0, 0.04);
}

/* Bento Visuals */
.bento-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  padding: 24px;
}

[data-theme="light"] .bento-visual {
  background: rgba(255, 255, 255, 0.4);
}

.formula-visual {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
}

.visual-pill {
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
}

[data-theme="light"] .visual-pill {
  background: #ffffff;
}

.visual-pill.accent {
  background: var(--mint-glow);
  color: var(--mint);
  border-color: rgba(16, 185, 129, 0.2);
}

.visual-operator {
  font-weight: 700;
  color: var(--text-muted);
}

.visual-arrow {
  color: var(--blue);
  font-weight: 700;
}

.visual-result {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--blue-glow);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 14px;
}

.security-visual {
  flex-direction: row;
  gap: 16px;
}

.shield-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--blue);
}

.shield-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}


/* Interactive Simulator */
.simulator-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group small {
  font-size: 12px;
  color: var(--text-muted);
}

.full-width {
  width: 100%;
}

.simulator-result {
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: #090d16;
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.terminal-header {
  height: 40px;
  background: #111827;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--card-border);
}

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

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

.term-line {
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-prompt {
  color: var(--mint);
  font-weight: 700;
}

.highlight-line {
  color: #ffffff;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--card-border);
}

.psk-matrix {
  color: var(--mint);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
  font-weight: 700;
}


/* Download Section */
.download-container {
  display: flex;
  justify-content: center;
}

.download-card {
  max-width: 760px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 500px;
}

.download-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-val {
  font-weight: 700;
  font-size: 18px;
}

.download-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 44px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--mint), #059669);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.download-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6);
}

.checksum-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.checksum-tag code {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}


/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--text-muted);
}


/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  
  .simulator-wrapper {
    grid-template-columns: 1fr;
  }
}
