/* ================================================================
   ChainJump SaaS — 现代渐变活力风 (Modern Gradient Vibrant)
   ================================================================ */

/* === CSS Variables === */
:root {
  --cj-primary: #6366F1;
  --cj-primary-dark: #4F46E5;
  --cj-primary-light: #818CF8;
  --cj-accent: #F59E0B;
  --cj-accent-dark: #D97706;
  --cj-bg: #FFFFFF;
  --cj-bg-card: #FFFFFF;
  --cj-bg-purple: #F8F7FF;
  --cj-bg-blue: #F0F4FF;
  --cj-bg-green: #F0FDF7;
  --cj-bg-pink: #FEF5F6;
  --cj-bg-indigo: #F5F7FF;
  --cj-bg-footer: #0F172A;
  --cj-text: #1E1B4B;
  --cj-text-secondary: #64748B;
  --cj-text-muted: #94A3B8;
  --cj-border: #E2E8F0;
  --cj-border-light: #F1F5F9;
  --cj-shadow-sm: 0 1px 3px rgba(99, 102, 241, .08);
  --cj-shadow-md: 0 4px 20px rgba(99, 102, 241, .10);
  --cj-shadow-lg: 0 8px 40px rgba(99, 102, 241, .12);
  --cj-shadow-xl: 0 12px 48px rgba(99, 102, 241, .15);
  --cj-radius: 12px;
  --cj-radius-lg: 20px;
  --cj-radius-xl: 28px;
  --cj-font: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

/* === Reset & Base === */
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--cj-font); color: var(--cj-text); background: var(--cj-bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* === Navbar === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: all .35s; }
.navbar.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--cj-border-light); }
.nav-inner { display: flex; align-items: center; gap: 48px; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { width: 34px; height: 34px; }
.nav-title { font-size: 20px; font-weight: 700; color: var(--cj-text); letter-spacing: -.4px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--cj-text-secondary); transition: color .2s; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--cj-primary); border-radius: 1px; transition: width .3s; }
.nav-links a:hover { color: var(--cj-text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-user-info{display:flex;align-items:center;gap:10px}
.nav-user-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#6366F1,#818CF8);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0}
.nav-user-name{font-size:14px;font-weight:600;color:var(--cj-text);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px 0 6px 6px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--cj-text); border-radius: 2px; transition: all .3s; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-size: 15px; font-weight: 600; font-family: var(--cj-font); cursor: pointer; transition: all .3s; border: none; white-space: nowrap; letter-spacing: .2px; }
.btn-primary { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; box-shadow: 0 4px 20px rgba(99, 102, 241, .35); }
.btn-primary:hover { background: linear-gradient(135deg, #4F46E5, #7C3AED); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99, 102, 241, .45); }
.btn-outline { background: transparent; color: var(--cj-text); border: 2px solid var(--cj-border); }
.btn-outline:hover { border-color: var(--cj-primary); color: var(--cj-primary); }
.btn-text { background: transparent; color: var(--cj-text-secondary); padding: 12px 12px; }
.btn-text:hover { color: var(--cj-primary); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--cj-accent); color: #fff; box-shadow: 0 4px 16px rgba(245, 158, 11, .25); }
.btn-accent:hover { background: var(--cj-accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245, 158, 11, .35); }

/* === Sections === */
section { padding: 120px 0; }

.section-title { font-size: 44px; font-weight: 800; text-align: center; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2; color: var(--cj-text); }
.section-subtitle { font-size: 18px; color: var(--cj-text-secondary); text-align: center; margin-bottom: 72px; line-height: 1.6; max-width: 560px; margin-left: auto; margin-right: auto; }

/* === Hero === */
.hero { position: relative; padding: 180px 0 140px; overflow: hidden; background: var(--cj-bg); }
.hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(99, 102, 241, .10) 0%, rgba(139, 92, 246, .04) 40%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero-content { max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; background: rgba(99, 102, 241, .08); border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--cj-primary); margin-bottom: 28px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cj-primary); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.6); } }
.hero-title { font-size: 58px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; color: var(--cj-text); }
.gradient-text { background: linear-gradient(135deg, #6366F1, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 19px; color: var(--cj-text-secondary); line-height: 1.7; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; align-items: center; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-illustration { width: 100%; max-width: 460px; }
.hero-tags { display: flex; justify-content: center; gap: 20px; margin-top: 80px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-tag { padding: 10px 24px; background: var(--cj-bg-card); border: 1px solid var(--cj-border); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--cj-text-secondary); transition: all .3s; box-shadow: var(--cj-shadow-sm); }
.hero-tag:hover { border-color: var(--cj-primary-light); color: var(--cj-primary); box-shadow: var(--cj-shadow-md); }

/* === Features (Bento Grid) === */
.features { background: var(--cj-bg-purple); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--cj-bg); border: 1px solid var(--cj-border-light); border-radius: var(--cj-radius-lg); padding: 36px 32px; transition: all .4s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--cj-shadow-lg); border-color: transparent; }
.feature-card.feature-large { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%); border: none; padding: 48px 40px; min-height: 360px; }
.feature-card.feature-large .feature-icon { width: 64px; height: 64px; border-radius: 16px; font-size: 28px; margin-bottom: 24px; }
.feature-card.feature-large h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card.feature-large p { font-size: 15px; max-width: 420px; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform .3s; }
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--cj-text); }
.feature-card p { font-size: 14px; color: var(--cj-text-secondary); line-height: 1.65; }

/* === Dashboard === */
.dashboard { background: var(--cj-bg-blue); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 480px; gap: 80px; align-items: start; }
.browser-frame { background: var(--cj-bg-card); border: 1px solid var(--cj-border); border-radius: var(--cj-radius-lg); overflow: hidden; box-shadow: var(--cj-shadow-lg); transition: box-shadow .3s, transform .3s; }
.browser-frame:hover { box-shadow: 0 12px 48px rgba(99, 102, 241, .18); transform: translateY(-2px); }
.browser-dots { display: flex; gap: 8px; padding: 14px 18px; background: #F1F5F9; border-bottom: 1px solid var(--cj-border-light); }
.browser-dots span { width: 12px; height: 12px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #EC6B6B; }
.browser-dots span:nth-child(2) { background: #F5C542; }
.browser-dots span:nth-child(3) { background: #6BD98F; }
.browser-content { padding: 4px; }
.browser-content svg { width: 100%; height: auto; display: block; }
.dashboard-features { display: flex; flex-direction: column; gap: 32px; }
.db-feature { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border-radius: var(--cj-radius); transition: background .3s, transform .3s; }
.db-feature:hover { background: #F1F5F9; transform: translateX(4px); }
.db-feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s; }
.db-feature:hover .db-feature-icon { transform: scale(1.1); }
.db-feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.db-feature p { font-size: 14px; color: var(--cj-text-secondary); line-height: 1.6; }

/* === Flow (Timeline) === */
.flow { background: var(--cj-bg-card); }
.flow-steps { display: flex; align-items: flex-start; justify-content: center; gap: 60px; position: relative; padding: 40px 0; }
.flow-steps::before { content: ''; position: absolute; top: 76px; left: 10%; right: 10%; height: 2px; background: var(--cj-border-light); z-index: 0; }
.flow-step { flex: 1; max-width: 320px; text-align: center; position: relative; z-index: 1; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--cj-bg-card); border: 3px solid var(--cj-primary); color: var(--cj-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 20px; position: relative; z-index: 2; transition: all .3s; box-shadow: 0 0 0 8px var(--cj-bg); }
.flow-step:hover .step-number { background: var(--cj-primary); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 12px rgba(99, 102, 241, .18); }
.step-icon-wrap { display: none; }
.flow-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--cj-text); }
.flow-step p { font-size: 15px; color: var(--cj-text-secondary); line-height: 1.7; }
.flow-arrow { display: flex; align-items: center; padding-top: 18px; color: var(--cj-border); flex-shrink: 0; position: relative; z-index: 1; }

/* === Scenarios === */
.scenarios { background: var(--cj-bg-green); }
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.scenario-card { background: var(--cj-bg-card); border: 1px solid var(--cj-border-light); border-radius: var(--cj-radius-lg); padding: 40px 28px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; transition: all .3s; }
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--cj-shadow-lg); border-color: var(--cj-primary-light); }
.scenario-icon { font-size: 40px; margin-bottom: 20px; line-height: 1; transition: transform .3s; }
.scenario-card:hover .scenario-icon { transform: scale(1.15); }
.scenario-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--cj-text); }
.scenario-card p { font-size: 14px; color: var(--cj-text-secondary); line-height: 1.7; }

/* === Testimonials (Large Quote) === */
.testimonials { background: var(--cj-bg-pink); }
.testimonial-grid { display: flex; flex-direction: column; gap: 48px; max-width: 800px; margin: 0 auto; }
.testimonial-card { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; padding: 0; background: none; border: none; position: relative; }
.testimonial-card::before { content: '"'; font-size: 96px; font-weight: 800; color: var(--cj-border); line-height: .6; font-family: Georgia, serif; }
.testimonial-stars { color: var(--cj-accent); font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-text { font-size: 19px; color: var(--cj-text); line-height: 1.8; font-style: italic; margin-bottom: 24px; font-weight: 500; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cj-bg-card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--cj-border-light); }
.author-name { font-size: 15px; font-weight: 700; color: var(--cj-text); }
.author-role { font-size: 13px; color: var(--cj-text-muted); margin-top: 2px; }

/* === Pricing (Cards) === */
.pricing { background: var(--cj-bg-card); }
.pricing-grid { max-width: 1100px; margin: 0 auto; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-table { display: none; }

/* --- Card base --- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--cj-border-light);
  border-radius: 20px;
  padding: 40px 32px 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden;
  cursor: default;
}
.pricing-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none; z-index: 0;
}

/* --- Hover: lift + glow --- */
.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,.4);
  box-shadow:
    0 0 0 4px rgba(99,102,241,.08),
    0 8px 32px rgba(99,102,241,.15),
    0 20px 48px rgba(15,23,42,.08);
}
.pricing-card:hover::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(99,102,241,.03) 0%, transparent 60%);
}

/* --- Active: press + ring --- */
.pricing-card:active {
  transform: translateY(-2px) scale(.985);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow:
    0 0 0 6px rgba(99,102,241,.12),
    0 4px 16px rgba(99,102,241,.10);
}

/* --- Featured card --- */
.pricing-card.featured {
  background: linear-gradient(160deg, #6366F1 0%, #4F46E5 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(99,102,241,.28);
  transform: translateY(-4px);
}
.pricing-card.featured:hover {
  transform: translateY(-12px);
  border-color: transparent;
  box-shadow:
    0 0 0 4px rgba(139,92,246,.25),
    0 12px 48px rgba(99,102,241,.35),
    0 24px 64px rgba(15,23,42,.10);
}
.pricing-card.featured:active {
  transform: translateY(-4px) scale(.985);
  box-shadow:
    0 0 0 8px rgba(139,92,246,.2),
    0 6px 24px rgba(99,102,241,.20);
}

/* --- Badge --- */
.card-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.22); color: #fff;
  padding: 5px 16px; border-radius: 50px; margin-bottom: 20px;
  text-transform: uppercase;
}

/* --- Header --- */
.card-header { margin-bottom: 28px; position: relative; z-index: 1; }
.card-header h3 { font-size: 22px; font-weight: 800; color: var(--cj-text); margin-bottom: 10px; }
.pricing-card.featured .card-header h3,
.pricing-card.featured .card-header .card-desc { color: #fff; }
.card-price { font-size: 44px; font-weight: 800; line-height: 1.1; color: var(--cj-text); }
.pricing-card.featured .card-price { color: #fff; }
.card-period { font-size: 16px; font-weight: 400; opacity: .45; }
.card-desc { font-size: 13px; color: var(--cj-text-muted); margin-top: 8px; }

/* --- Features --- */
.card-features { 
  list-style: none; margin: 0 0 32px; padding: 0; 
  border-top: 1px solid var(--cj-border-light); padding-top: 24px;
  position: relative; z-index: 1;
}
.pricing-card.featured .card-features { border-color: rgba(255,255,255,.15); }
.card-features li {
  padding: 8px 0; font-size: 14px; color: var(--cj-text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.pricing-card.featured .card-features li { color: rgba(255,255,255,.85); }
.card-features li.check::before { content: '✓'; color: #22C55E; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.pricing-card.featured .card-features li.check::before { color: #A5F3B4; }
.card-features li.cross { color: var(--cj-text-muted); }
.card-features li.cross::before { content: '—'; color: var(--cj-text-muted); flex-shrink: 0; }
.pricing-card.featured .card-features li.cross { color: rgba(255,255,255,.35); }
.pricing-card.featured .card-features li.cross::before { color: rgba(255,255,255,.35); }

/* --- CTA --- */
.pricing-card .btn { margin-top: 4px; width: 100%; position: relative; z-index: 1; }
.pricing-card.featured .btn-accent { 
  background: #fff; color: #4F46E5; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.pricing-card.featured .btn-accent:hover { 
  background: #F9FAFB; color: #4338CA;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  transform: translateY(-2px);
}

/* === FAQ (2-Column) === */
.faq { background: var(--cj-bg-indigo); }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.faq-item { background: var(--cj-bg-card); border: 1px solid var(--cj-border-light); border-radius: var(--cj-radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item:hover { border-color: var(--cj-border); }
.faq-item.active { border-color: var(--cj-primary-light); box-shadow: var(--cj-shadow-sm); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; font-size: 15px; font-weight: 600; color: var(--cj-text); cursor: pointer; text-align: left; font-family: var(--cj-font); gap: 16px; transition: color .2s; }
.faq-question:hover { color: var(--cj-primary); }
.faq-icon { flex-shrink: 0; transition: transform .3s; color: var(--cj-text-muted); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--cj-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer > div { padding: 0 24px 20px; }
.faq-answer p { font-size: 14px; color: var(--cj-text-secondary); line-height: 1.8; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 200px; }

/* === CTA (Full-Width Banner) === */
.cta-section { padding: 0; background: linear-gradient(135deg, #6366F1, #4F46E5); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.cta-card { padding: 100px 0; text-align: center; color: #fff; position: relative; z-index: 1; }
.cta-card h2 { font-size: 40px; font-weight: 800; margin-bottom: 16px; letter-spacing: -.5px; }
.cta-card p { font-size: 18px; opacity: .85; margin-bottom: 36px; }
.cta-card .btn-primary { background: #fff; color: var(--cj-primary); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.cta-card .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

/* === Footer === */
.footer { background: var(--cj-bg-footer); color: #fff; padding: 72px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 3fr; gap: 64px; margin-bottom: 56px; }
.footer-brand { position: relative; padding-right: 64px; }
.footer-brand::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 60%, transparent 100%); }
.footer-brand .nav-title { color: #fff; }
.footer-brand p { font-size: 14px; color: #9CA3AF; line-height: 1.7; margin-top: 12px; max-width: 320px; }
.footer-email { display: inline-block; font-size: 14px; color: #9CA3AF; margin-top: 16px; transition: color .2s; }
.footer-email:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { color: #6B7280; transition: color .2s; display: flex; align-items: center; }
.footer-social a:hover { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col h4 { font-size: 12px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; color: #6B7280; }
.footer-col a { display: block; font-size: 14px; color: #9CA3AF; padding: 5px 0; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { text-align: center; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom p { font-size: 13px; color: #6B7280; }

/* === Mobile Menu === */
.nav-links.show { display: flex !important; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cj-bg-card); border-bottom: 1px solid var(--cj-border); padding: 20px 32px; gap: 16px; box-shadow: var(--cj-shadow-lg); animation: slideDown .3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* === Fade-in Animation === */
.fade-in { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   Responsive
   ================================================================ */

/* Large: ≤ 1280px */
@media (max-width: 1280px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card.feature-large { grid-column: span 2; }
}

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-title { font-size: 44px; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
  .hero-desc { margin: 0 auto 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-large { grid-column: span 2; grid-row: span 1; min-height: 200px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 48px; }
  .browser-frame { max-width: 600px; margin: 0 auto; }
  .flow-steps { flex-direction: column; align-items: center; gap: 0; }
  .flow-steps::before { display: none; }
  .flow-arrow { transform: rotate(90deg); padding-top: 0; margin: 8px 0; }
  .flow-step { max-width: 400px; }
  .testimonial-grid { max-width: 600px; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .faq-list { grid-template-columns: 1fr; max-width: 600px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { padding-right: 0; text-align: center; }
  .footer-brand::after { display: none; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 16px; }
  .footer-col a { padding: 7px 0; font-size: 14px; }
  .section-title { font-size: 36px; }
  section { padding: 80px 0; }
}
/* Phone: ≤ 768px */
@media (max-width: 768px) {
  .nav-inner { gap: 16px; }
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .mobile-menu-btn { display: flex; padding: 6px 0 6px 6px; }
  .hero { padding: 130px 0 80px; }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero-tags { margin-top: 48px; gap: 12px; }
  .hero-tag { padding: 8px 18px; font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.feature-large { grid-column: span 1; }
  .scenario-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; gap: 18px; }
  .pricing-card { padding: 28px 24px; }
  .card-price { font-size: 34px; }
  .card-header h3 { font-size: 20px; }
  .cta-card h2 { font-size: 28px; }
  .cta-card p { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 14px; }
  .footer-col a { padding: 7px 0; font-size: 14px; }
  .section-title { font-size: 30px; }
  .section-subtitle { font-size: 16px; margin-bottom: 48px; }
  .container { padding: 0 20px; }
}

/* Small Phone: ≤ 480px */
@media (max-width: 480px) {
  .hero { padding: 100px 0 48px; }
  .hero-title { font-size: 28px; letter-spacing: -.5px; }
  .hero-desc { font-size: 15px; }
  .hero-badge { font-size: 12px; padding: 4px 14px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .feature-card { padding: 24px 20px; }
  .feature-card h3 { font-size: 16px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; margin-bottom: 36px; }
  section { padding: 64px 0; }
  .scenario-card { padding: 28px 20px; }
  .testimonial-card { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card::before { font-size: 64px; }
  .testimonial-text { font-size: 17px; }
  .flow-step { max-width: 100%; padding: 24px 16px; }
  .cta-card { padding: 64px 0; }
  .cta-card h2 { font-size: 24px; }
  .cta-card p { font-size: 15px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-col h4 { font-size: 12px; margin-bottom: 10px; }
  .footer-col a { padding: 8px 0; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .nav-title { font-size: 18px; }
}
