/* ========================================
   AI-Prikorm Landing Page — Design System
   Based on MamAI Telegram Mini App style
   ======================================== */

/* ---- CSS Variables (exact from Mini App) ---- */
:root {
  --primary-light: #FFE5F1;
  --primary: #FFC0DB;
  --primary-dark: #FFB3D0;
  --secondary-light: #E8D5F2;
  --secondary: #D4B5E8;
  --bg-main: #FFF5F9;
  --bg-card: #FFFFFF;
  --text-primary: #4A3F47;
  --text-secondary: #8B7785;
  --shadow-light: #FFFFFF;
  --shadow-dark: #E5C5D5;
  --accent-brand: #E91E63;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --radius-pill: 25px;
  --transition: all 0.3s ease;
  --container-max: 900px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Neumorphism Base ---- */
.neumorphic {
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.neumorphic:hover {
  box-shadow: 7px 7px 14px var(--shadow-dark), -7px -7px 14px var(--shadow-light);
}

.neumorphic-small {
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.neumorphic-small:hover {
  box-shadow: 3px 3px 8px var(--shadow-dark), -3px -3px 8px var(--shadow-light);
}

/* ---- Buttons ---- */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  text-align: center;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-main:active {
  transform: translateY(0);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-main span:first-child {
  font-size: 1.2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ---- Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 245, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-emoji {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 18px;
  font-size: 0.9rem;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---- Hero ---- */
.hero {
  padding: 60px 0 80px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 300px;
  padding: 20px;
  position: relative;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
  animation: fadeIn 0.5s ease-in both;
}

.chat-bubble.assistant {
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  color: var(--text-primary);
  align-self: flex-start;
  max-width: 90%;
  display: flex;
  gap: 8px;
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
  align-self: flex-end;
  max-width: 85%;
}

.bubble-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.chat-bubble:nth-child(2) { animation-delay: 0.6s; }
.chat-bubble:nth-child(3) { animation-delay: 1.0s; }

/* ---- Problem Section ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.problem-card {
  padding: 24px;
  text-align: center;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Solution Section ---- */
.solution-content {
  max-width: 720px;
  margin: 0 auto;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.solution-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.solution-check {
  font-size: 1.3rem;
}

.solution-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.05), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.highlight-emoji {
  font-size: 1.5rem;
}

/* ---- Features Section ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  text-align: center;
}

.feature-card.wide {
  grid-column: span 3;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- How It Works ---- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Audience Section ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.audience-card {
  padding: 28px 20px;
  text-align: center;
}

.audience-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.audience-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Chat Demo Section ---- */
.chat-window {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: fadeIn 0.4s ease-in both;
}

.chat-message:nth-child(1) { animation-delay: 0.1s; }
.chat-message:nth-child(2) { animation-delay: 0.3s; }
.chat-message:nth-child(3) { animation-delay: 0.5s; }
.chat-message:nth-child(4) { animation-delay: 0.7s; }
.chat-message:nth-child(5) { animation-delay: 0.9s; }
.chat-message:nth-child(6) { animation-delay: 1.1s; }
.chat-message:nth-child(7) { animation-delay: 1.3s; }

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

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

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

.chat-message.assistant .chat-bubble {
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  color: var(--text-primary);
  border-radius: 15px 15px 15px 4px;
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px 15px 4px 15px;
}

.chat-bubble {
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble p {
  margin: 0;
}

@media (max-width: 768px) {
  .chat-window {
    padding: 16px;
  }

  .chat-bubble {
    max-width: 90%;
    font-size: 0.88rem;
  }

  .chat-avatar {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* ---- Pricing Section ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-badge.free {
  background: linear-gradient(145deg, var(--bg-card), var(--primary-light));
  color: var(--text-secondary);
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

.pricing-badge.premium {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

.pricing-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features span {
  font-size: 1.1rem;
}

/* ---- Social Proof ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-item {
  padding: 28px 16px;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-decimal {
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial {
  padding: 28px;
}

.testimonial-stars {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---- FAQ Section ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '▼';
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- CTA Footer ---- */
.cta-box {
  padding: 56px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

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

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

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

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 260px;
  }

  .nav-links {
    display: none;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

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

  .feature-card.wide {
    grid-column: span 1;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

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

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

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .phone-mockup {
    width: 100%;
    max-width: 260px;
  }

  .btn-main,
  .btn-outline {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .nav-container {
    height: 56px;
  }

  .nav-cta {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

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

  .cta-box {
    padding: 36px 24px;
  }

  .cta-title {
    font-size: 1.4rem;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ---- Dark Mode Disabled: Landing is always light like Mini App ---- */
