/* ── MIANA Marketing Site ── */
/* Anti-pattern register enforced: no gradient text, no glassmorphism, no side-stripe borders, no hero-metric template, no faux-security styling */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E1E2E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-logo, .btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-sub {
  font-size: 18px;
  color: #6B7280;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E7EB;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #7C3AED;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.15s;
}

.nav-links a:hover { color: #7C3AED; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  background: #7C3AED;
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-cta:hover { background: #6D28D9; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: #7C3AED;
  color: #FFFFFF;
}

.btn-primary:hover { background: #6D28D9; }

.btn-secondary {
  background: transparent;
  color: #4B5563;
  border: 1.5px solid #D1D5DB;
}

.btn-secondary:hover {
  border-color: #7C3AED;
  color: #7C3AED;
}

/* ── Hero ── */
.hero {
  background: #FFFFFF;
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
  color: #1E1E2E;
}

.hero-sub {
  font-size: 18px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-footnote {
  font-size: 14px;
  color: #9CA3AF;
}

.hero-footnote strong { color: #4B5563; }

/* ── Phone Mockup ── */
.phone-shell {
  width: 280px;
  height: 560px;
  background: #1E1E2E;
  border-radius: 36px;
  padding: 12px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: #1E1E2E;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.chat-window {
  background: #E8E4DC;
  border-radius: 24px;
  height: calc(100% - 44px);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-msg.incoming { align-self: flex-start; }
.chat-msg.outgoing { align-self: flex-end; }

.chat-bubble {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-msg.incoming .chat-bubble {
  background: #FFFFFF;
  color: #1E1E2E;
  border-top-left-radius: 0;
}

.chat-msg.outgoing .chat-bubble {
  background: #7C3AED;
  color: #FFFFFF;
  border-top-right-radius: 0;
}

.chat-time {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 2px;
  padding: 0 4px;
}

.chat-msg.outgoing .chat-time { text-align: right; }

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 3px;
  padding: 8px 14px;
  background: #FFFFFF;
  border-radius: 12px;
  border-top-left-radius: 0;
  margin-top: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ── Problem Section ── */
.problem {
  background: #F8FAFC;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.problem-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.problem-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.problem-icon { font-size: 28px; display: block; margin-bottom: 12px; }

.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.5;
}

/* ── How It Works ── */
.how-it-works {
  background: #FFFFFF;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step {
  flex: 1;
  padding: 32px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

.step-number {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #7C3AED;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.5;
}

.step-arrow {
  font-size: 24px;
  color: #7C3AED;
  padding-top: 32px;
  flex-shrink: 0;
}

/* ── Features ── */
.features {
  background: #1E1E2E;
  color: #E5E7EB;
}

.features h2 { color: #FFFFFF; }
.features .section-sub { color: #9CA3AF; }

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.feature:last-child { border-bottom: none; }

.feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.feature-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.feature-text p {
  font-size: 15px;
  color: #9CA3AF;
  line-height: 1.5;
}

/* ── Industries ── */
.industries {
  background: #FFFFFF;
}

.industry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.2s;
}

.industry-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.industry-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7C3AED;
  display: block;
  margin-bottom: 12px;
}

.industry-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.industry-card > p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

.industry-card ul {
  list-style: none;
  padding: 0;
}

.industry-card ul li {
  font-size: 14px;
  color: #4B5563;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.industry-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #7C3AED;
}

/* ── Pricing ── */
.pricing {
  background: #7C3AED;
  color: #FFFFFF;
}

.pricing h2 { color: #FFFFFF; }
.pricing .section-sub { color: rgba(255,255,255,0.8); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.03);
  position: relative;
}

.pricing-badge {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Barlow', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.7;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card ul li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  opacity: 0.9;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-card .btn-primary {
  background: #FFFFFF;
  color: #7C3AED;
}

.pricing-card .btn-primary:hover { background: #F3F0FF; }

.pricing-card .btn-secondary {
  border-color: rgba(255,255,255,0.4);
  color: #FFFFFF;
}

.pricing-card .btn-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.1);
}

/* ── FAQ ── */
.faq {
  background: #F8FAFC;
}

.faq-list {
  max-width: 700px;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
  padding: 16px 0;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: #7C3AED;
  font-weight: 400;
  transition: transform 0.15s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.6;
  padding: 12px 0 4px;
}

/* ── Footer ── */
.footer {
  background: #1E1E2E;
  color: #9CA3AF;
  font-size: 14px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a, .footer-product a {
  color: #9CA3AF;
  transition: color 0.15s;
}

.footer-links a:hover, .footer-product a:hover { color: #FFFFFF; }

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 { font-size: 36px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; text-align: center; }

  .industry-cards, .pricing-grid { grid-template-columns: 1fr; }

  .pricing-card.featured { transform: none; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-text h1 { font-size: 28px; }
  section h2 { font-size: 28px; }

  .nav-links { display: none; }
  .nav-cta { font-size: 13px; padding: 6px 14px; }

  .problem-grid { grid-template-columns: 1fr; }

  .phone-shell {
    width: 240px;
    height: 480px;
  }

  .section-inner { padding: 48px 20px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: 2px;
  border-radius: 4px;
}
