/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --bg-dark: #1a202c;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-on-dark: #ffffff;
  --accent: #2c5282;
  --accent-hover: #2a4a7f;
  --accent-light: #ebf4ff;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --sidebar-width: 380px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-page); color: var(--text-primary); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.2s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent-light); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f0f4f8; }

/* ===== LAYOUT ===== */
.page-wrapper { display: flex; min-height: 100vh; }
.content { flex: 1; min-width: 0; }
.section-inner { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.section-inner h2 { font-size: 2rem; margin-bottom: 1rem; }
.section-sub { color: var(--text-secondary); margin-bottom: 2rem; }

/* ===== BLOCK 1: HERO ===== */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 70%); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 4rem 2rem; width: 100%; }
.hero-text { max-width: 540px; }
.hero-text h1 { font-size: 2.4rem; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; }

/* ===== BLOCK 2: TRUST BAR ===== */
.trust-bar { background: var(--accent); color: #fff; }
.trust-bar-inner { max-width: 900px; margin: 0 auto; padding: 1.5rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-num { display: block; font-size: 1.8rem; font-weight: 700; }
.trust-label { font-size: 0.85rem; opacity: 0.85; }

/* ===== BLOCK 3: SCENARIOS ===== */
.scenarios { background: var(--bg-page); }
.scenarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.scenario-card { background: var(--bg-card); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; }
.scenario-card--warm { border-color: var(--accent); }
.scenario-badge { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px; }
.scenario-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.scenario-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.scenario-card p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.scenario-list { margin-bottom: 1.5rem; }
.scenario-list li { font-size: 0.9rem; color: var(--text-secondary); padding: 0.25rem 0; border-bottom: 1px solid var(--border); }
.scenario-list li::before { content: '•  '; color: var(--accent); }

/* ===== BLOCK 4: GUILLOTINE ===== */
.guillotine { position: relative; background: var(--bg-dark); color: var(--text-on-dark); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.guillotine-video-wrap { position: absolute; inset: 0; }
.guillotine-video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.guillotine-overlay { position: absolute; inset: 0; background: rgba(15,20,30,0.72); }
.guillotine-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 4rem 2rem; width: 100%; }
.guillotine-content { max-width: 640px; }
.guillotine-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; background: rgba(44,82,130,0.75); display: inline-block; padding: 0.3rem 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.guillotine-content h2 { font-size: 2.2rem; margin-bottom: 2rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.guillotine-args { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.guillotine-arg { display: flex; gap: 1rem; align-items: flex-start; }
.arg-icon { font-size: 1.5rem; flex-shrink: 0; }
.guillotine-arg strong { display: block; margin-bottom: 0.25rem; }
.guillotine-arg p { font-size: 0.9rem; opacity: 0.85; }

/* ===== BLOCK 5: CASES ===== */
.cases { background: var(--bg-card); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.case-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s; }
.case-card:hover { transform: translateY(-4px); }
.case-card-img { height: 200px; overflow: hidden; background: #e2e8f0; }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { padding: 1rem; }
.case-card-body h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.case-meta { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.8rem; color: var(--text-secondary); }
.case-budget { font-weight: 600; color: var(--accent); }
.case-story { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-btn { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
.cases-loading { text-align: center; padding: 2rem; color: var(--text-secondary); grid-column: 1/-1; }

/* ===== BLOCK 6: HOW WE WORK ===== */
.how-we-work { background: var(--bg-page); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--text-secondary); }

/* ===== BLOCK 7: FAQ ===== */
.faq { background: var(--bg-card); }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 1rem 1.25rem; background: none; border: none; font-size: 1rem; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q:hover { background: var(--accent-light); }
.faq-arrow { transition: transform 0.2s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.25rem 1rem; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-dark); color: var(--text-on-dark); }
.footer-inner { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-col strong { display: block; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col p { font-size: 0.875rem; opacity: 0.8; margin-bottom: 0.4rem; }
.footer-col ul li { font-size: 0.875rem; opacity: 0.8; padding: 0.2rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); max-width: 900px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; opacity: 0.6; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; opacity: 0.6; color: #fff; }
.footer-links a:hover { opacity: 1; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-wrapper { flex-direction: column; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section-inner { padding: 2.5rem 1rem; }
  .hero-text h1 { font-size: 1.6rem; }
  .guillotine-content h2 { font-size: 1.6rem; }
  .cases-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
