/* Memori Official Design System - Premium Dark Glow & Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #030712;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-cyan-glow: rgba(6, 182, 212, 0.35);
  --cyan-primary: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

body::after {
  content: '';
  position: fixed;
  top: 40%;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--indigo-glow) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

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

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

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

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

.nav-link:hover {
  color: var(--cyan-light);
}

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

/* Language Selector */
.lang-dropdown {
  position: relative;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.lang-dropdown:hover {
  border-color: var(--border-cyan-glow);
}

.lang-select-native {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.lang-select-native option {
  background: #0f172a;
  color: #fff;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #030712;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-glass);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-cyan-glow);
}

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

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-light);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 58px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Store Buttons Group */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-store:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-light);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25);
  background: rgba(22, 33, 58, 0.95);
}

.btn-store.is-coming-soon {
  cursor: default;
  opacity: 0.7;
}

.btn-store.is-coming-soon:hover {
  transform: none;
  border-color: var(--border-glass);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

.btn-store svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.store-text-sub {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.store-text-main {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Interactive Phone Mockup */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 580px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  filter: blur(70px);
  z-index: 0;
  opacity: 0.8;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 330px;
  height: 660px;
  background: #090d16;
  border: 10px solid #1e293b;
  border-radius: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: #1e293b;
  margin: 0 auto;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.phone-screen {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #020617;
}

.app-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-badge {
  font-size: 11px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-light);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.mockup-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.mockup-card-title {
  font-size: 12px;
  color: var(--cyan-light);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-card-body {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.mockup-audio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 8px 12px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--cyan-light);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.wave-bar {
  width: 3px;
  background: var(--cyan-light);
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 16px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 10px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 14px; }

@keyframes wavePulse {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: var(--text-dim);
}

.phone-nav-item.active {
  color: var(--cyan-light);
  font-weight: 600;
}

/* Demo Section */
.demo-section {
  padding: 80px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
}

.demo-console {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  max-width: 860px;
  margin: 0 auto;
}

.demo-chips-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chip-btn:hover, .chip-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-light);
  color: var(--cyan-light);
}

.demo-input-bar {
  display: flex;
  gap: 12px;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease;
}

.demo-input-bar:focus-within {
  border-color: var(--cyan-light);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

.demo-response-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-cyan-glow);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.response-badge {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

.response-source {
  font-size: 11px;
  color: var(--text-muted);
}

.response-text {
  font-size: 16px;
  color: #f1f5f9;
  line-height: 1.6;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan-glow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Security Section */
.security-section {
  padding: 80px 0;
}

.security-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--border-cyan-glow);
  border-radius: 28px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.security-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.security-point {
  display: flex;
  gap: 16px;
}

.security-point-icon {
  font-size: 24px;
  color: var(--cyan-light);
  line-height: 1;
}

.security-point-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.security-point-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 30px;
  background: rgba(3, 7, 18, 0.95);
  font-size: 14px;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--cyan-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .store-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-box {
    grid-template-columns: 1fr;
  }
  /* Tablet: keep each nav label on one line */
  .nav-links {
    gap: 18px;
  }
  .nav-link {
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Header: logo + language picker only; the store buttons sit right below in the hero */
  #nav-download {
    display: none;
  }
  .logo-text {
    font-size: 20px;
  }
}
