/* ── RagStand Marketing Site ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #4F46E5;
  --primary-dark:  #4338CA;
  --primary-light: #EEF2FF;
  --success:       #059669;
  --warning:       #D97706;
  --gray-900:      #111827;
  --gray-700:      #374151;
  --gray-500:      #6B7280;
  --gray-200:      #E5E7EB;
  --gray-300:      #D1D5DB;
  --gray-100:      #F3F4F6;
  --gray-50:       #F9FAFB;
  --white:         #FFFFFF;
  --radius:        12px;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--gray-700); background: var(--white); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s; border: none; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-100); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--gray-900); }
.nav-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 18px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray-500); transition: color .15s; }
.nav-links a:hover { color: var(--gray-900); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.nav-signin:hover { color: var(--primary); }

/* ── Hero ── */
.hero { padding: 96px 0 80px; text-align: center; background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--gray-300); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 24px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; color: var(--gray-900); line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray-500); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--gray-500); }
.hero-screenshot { margin-top: 64px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.2); border: 1px solid var(--gray-200); background: var(--gray-50); height: 380px; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 14px; overflow: hidden; }

/* ── Social proof ── */
.social-proof { padding: 48px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.social-proof p { text-align: center; font-size: 13px; font-weight: 500; color: var(--gray-500); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 28px; }
.logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logo-placeholder { font-size: 18px; font-weight: 700; color: var(--gray-300); letter-spacing: -0.01em; }

/* ── Section headers ── */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .03em; text-transform: uppercase; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ── Features ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; position: relative; }
.step { text-align: center; padding: 0 16px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 32px; position: relative; transition: transform .2s, box-shadow .2s; }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--primary); background: var(--primary-light); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px; white-space: nowrap; letter-spacing: .04em; }
.pricing-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; line-height: 1; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--gray-500); }
.pricing-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; min-height: 40px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.pricing-features li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--gray-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:hover { background: var(--gray-50); }
.faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--gray-500); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--primary); }
.faq-arrow { font-size: 12px; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ── CTA Banner ── */
.cta-banner { background: var(--primary); padding: 80px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--white); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.cta-banner .btn-white { font-size: 16px; padding: 14px 32px; }

/* ── Footer ── */
footer { background: var(--gray-900); color: var(--gray-300); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--gray-500); line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--white); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--gray-500); transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--gray-500); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 18px; color: var(--gray-500); transition: color .15s; }
.footer-social a:hover { color: var(--white); }

/* ── App Mockups ── */
.mock-tab { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 7px 18px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit; }
.mock-tab:hover { background: rgba(255,255,255,.25); color: #fff; }
.mock-tab.active { background: #fff; color: var(--primary); border-color: #fff; font-weight: 600; }
.mock-screen { background: #fff; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); border: 1px solid #E5E7EB; overflow: hidden; max-width: 900px; margin: 0 auto; }
.mock-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #F9FAFB; border-bottom: 1px solid #E5E7EB; font-size: 13px; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mock-table th { background: #F9FAFB; color: #6B7280; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; text-align: left; border-bottom: 1px solid #E5E7EB; }
.mock-table td { padding: 10px 12px; border-bottom: 1px solid #F3F4F6; vertical-align: top; color: #374151; font-size: 12px; line-height: 1.5; }
.mock-answer { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mock-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mock-doc-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 10px 16px; background: #fff; border-bottom: 1px solid #F3F4F6; font-size: 12px; }
.mock-stat { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 14px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
