/* Vythara - Clean & Balanced Design */

:root {
  --primary: #45B7D1;
  --secondary: #6BCF7F;
  --tertiary: #4ECDC4;
  --accent: #FF6B6B;
  --text: #2C3E50;
  --text-light: #7F8C8D;
  --text-lighter: #BDC3C7;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --border: #E1E8ED;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #F5F9FC 0%, #FFFFFF 100%);
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(69, 183, 209, 0.1);
  border: 1px solid rgba(69, 183, 209, 0.2);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.badge-danger {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.2);
  color: var(--accent);
}

h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.lead {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
  box-shadow: 0 4px 12px rgba(69, 183, 209, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(69, 183, 209, 0.35);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

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

.app-preview {
  position: relative;
}

.app-icon {
  width: 280px;
  height: 280px;
  border-radius: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.section-alt {
  background: var(--bg-alt);
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  background: white;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* Demo */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 32px;
}

.demo-box {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.demo-icon {
  font-size: 36px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(69, 183, 209, 0.25);
}

.demo-header h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 2px;
}

.demo-header p {
  font-size: 13px;
  color: var(--text-light);
}

/* Mood */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mood-btn {
  background: var(--bg-alt);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mood-btn:hover {
  transform: scale(1.05);
  border-color: var(--border);
}

.mood-btn.active {
  border-width: 3px;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mood-emoji {
  font-size: 32px;
}

.mood-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
}

.mood-btn.active .mood-text {
  color: var(--text);
}

.mood-result {
  padding: 20px;
  background: linear-gradient(135deg, rgba(107, 207, 127, 0.08), rgba(69, 183, 209, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(69, 183, 209, 0.15);
  display: none;
}

.mood-result.show {
  display: block;
  animation: slideUp 0.3s;
}

.mood-result h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.mood-result p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Chat */
.chat-area {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  animation: slideUp 0.3s;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.chat-msg.user .msg-avatar {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
}

.msg-bubble {
  background: white;
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
}

.typing {
  display: flex;
  gap: 4px;
  padding: 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-lighter);
  animation: typing 1.4s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-option {
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-option:hover {
  border-color: var(--primary);
  background: rgba(69, 183, 209, 0.05);
}

.chat-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Download */
.section-download {
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  color: white;
}

.download-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.download-content h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.download-content p {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-btn.disabled:hover {
  transform: none;
}

.store-btn small {
  font-size: 11px;
  display: block;
}

.store-btn strong {
  font-size: 17px;
  display: block;
}

/* Crisis */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.crisis-box {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.crisis-box:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
}

.crisis-emoji {
  font-size: 42px;
  margin-bottom: 16px;
}

.crisis-box h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.crisis-link {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 8px;
}

.crisis-link:hover {
  color: #E74C3C;
}

.crisis-box p {
  font-size: 13px;
  color: var(--text-light);
}

.disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--text-lighter);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 24px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-logo span {
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

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

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Responsive */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h1 {
    font-size: 32px;
  }

  .app-icon {
    width: 220px;
    height: 220px;
  }

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

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

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  h1 {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 26px;
  }

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

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

  .mood-grid .mood-btn:nth-child(4),
  .mood-grid .mood-btn:nth-child(5) {
    grid-column: span 1;
  }

  .download-buttons {
    flex-direction: column;
  }

  .store-btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-box {
    padding: 24px;
  }

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

  .mood-grid .mood-btn:nth-child(5) {
    grid-column: span 2;
  }
}
