/* ==========================================================================
   良心云机场 - 极简法律公约与无套路契约风格 (No-BS Agreement & Minimal Document)
   Domain: liangxinyun-jc.sbs | CTA: http://liangxinyun.club/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --border-dark: #0f172a;
  
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-light: #fef2f2;
  
  --accent-orange: #ea580c;
  --accent-orange-light: #fff7ed;
  
  --seal-red: #cc1111;
  --accent-blue: #0284c7;
  --accent-green: #16a34a;
  
  --font-sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-signature: 'Caveat', cursive, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-contract: 0 20px 30px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -6px rgba(15, 23, 42, 0.05);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.02) 0%, transparent 60%),
    linear-gradient(to right, #f1f5f9 1px, transparent 1px),
    linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Contract Top Verification Bar */
.top-contract-bar {
  background: var(--text-main);
  color: #ffffff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary-red);
}

.top-contract-bar .hash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fbbf24;
}

.top-contract-bar .live-dot {
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Header & Navigation - Full Width Layout */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Clean text Brand Logo without square icon */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-logo:hover {
  color: var(--primary-red);
}

.nav-menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-red);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta-btn {
  background: var(--primary-red);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-red);
  box-shadow: 0 3px 6px rgba(220, 38, 38, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-cta-btn:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.35);
}

/* Digital Contract Paper Container - Expanded 1400px width */
.contract-paper {
  max-width: 1400px;
  width: 95%;
  margin: 2rem auto 3.5rem auto;
  background: #ffffff;
  border: 2px solid var(--text-main);
  box-shadow: var(--shadow-contract);
  position: relative;
  padding: 3.5rem 4rem;
  border-radius: 2px;
}

/* Decorative Contract Document Header */
.contract-doc-header {
  border-bottom: 2px double var(--text-main);
  padding-bottom: 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.doc-stamp-title {
  text-align: center;
}

.doc-stamp-title .sub-title {
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.doc-stamp-title h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

/* Three Core Laws Banner (视觉核心：大字条款) */
.core-laws-container {
  background: var(--primary-red-light);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.core-laws-title-badge {
  display: inline-block;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.4rem 1.25rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.core-laws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.law-item {
  background: #ffffff;
  border: 2px solid var(--primary-red);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.law-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.15);
}

.law-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.law-headline {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.law-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Digital Official Seal Badge */
.official-seal-badge {
  position: absolute;
  top: -15px;
  right: 35px;
  width: 120px;
  height: 120px;
  border: 3px dashed var(--seal-red);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--seal-red);
  font-weight: 900;
  font-size: 0.8rem;
  text-align: center;
  transform: rotate(-12deg);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 12px rgba(204, 17, 17, 0.12);
  padding: 0.5rem;
}

.official-seal-badge .star {
  font-size: 1.1rem;
  margin: 2px 0;
}

/* Hero Action Section */
.hero-cta-block {
  text-align: center;
  margin: 3.5rem 0;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: var(--text-main);
  color: #ffffff !important;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 1.25rem 3.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--text-main);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  transition: all 0.25s ease;
}

.hero-cta-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

.hero-subtext {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.hero-subtext span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Common Section Layout */
.contract-section {
  margin-bottom: 4rem;
  padding-top: 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
  border-left: 5px solid var(--text-main);
  padding-left: 1.25rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Advantage Cards Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.advantage-card {
  border: 1.5px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.advantage-card:hover {
  border-color: var(--text-main);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.advantage-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Section - Exact Match with Reference Screenshot */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
}

.price-card {
  border: 2px solid var(--text-main);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 4px 4px 0px var(--text-main);
  transition: all 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0px var(--text-main);
}

/* Card 3: Highlighted Orange Theme */
.price-card.popular {
  border-color: var(--accent-orange);
  box-shadow: 4px 4px 0px var(--accent-orange);
}

.price-card.popular:hover {
  box-shadow: 6px 6px 0px var(--accent-orange);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* Food Analogy Header Box */
.price-analogy-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
}

.price-header h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}

.price-amount {
  margin: 1rem 0 0.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.price-amount .currency {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-amount .val {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.price-amount .period {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 700;
}

.price-unit-desc {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 1.25rem;
}

.price-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.price-features li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features li strong {
  color: var(--text-main);
}

.price-features li .check-icon {
  color: #16a34a;
  font-weight: 900;
}

.stamp-tag {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.4rem;
}

.price-btn {
  display: block;
  text-align: center;
  background: #ffffff;
  color: var(--text-main);
  border: 2px solid var(--text-main);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.price-btn:hover {
  background: var(--text-main);
  color: #ffffff !important;
}

.price-card.popular .price-btn {
  background: #182232;
  color: #ffffff !important;
  border-color: #182232;
}

.price-card.popular .price-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* User Personas Grid */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.persona-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.persona-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.persona-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tutorial Section Cards */
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.tutorial-card {
  border: 2px solid var(--text-main);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tutorial-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tutorial-steps {
  list-style: decimal inside;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.tutorial-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-red);
}

.tutorial-cta-link:hover {
  text-decoration: underline;
}

/* Speed Test Visual Display Card */
.speed-test-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
}

.speed-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.speed-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.speed-stat-item .num {
  font-size: 2rem;
  font-weight: 900;
  color: #38bdf8;
}

.speed-stat-item .label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* User Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.reviewer-info {
  font-weight: 800;
  font-size: 0.95rem;
}

.review-rating {
  color: #f59e0b;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-toggle-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0 1.5rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Article Cards Catalog Grid */
.articles-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-card-item {
  border: 1.5px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.article-card-item:hover {
  border-color: var(--primary-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.article-card-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.article-card-item h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.article-card-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-card-link:hover {
  color: var(--primary-red);
}

/* Article Reader Page Specific Layout - 1100px width */
.article-container {
  max-width: 1100px;
  width: 95%;
  margin: 2.5rem auto;
  background: #ffffff;
  border: 2px solid var(--border-color);
  padding: 3.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.breadcrumb-nav {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--primary-red);
}

.article-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.75rem;
  margin-bottom: 2.25rem;
}

.article-header h1 {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin: 2.5rem 0 1.1rem 0;
  border-left: 5px solid var(--primary-red);
  padding-left: 0.85rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2rem 0 0.85rem 0;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content ul, .article-content ol {
  margin: 1.1rem 0 1.75rem 1.75rem;
  line-height: 1.9;
}

.article-cta-box {
  background: var(--primary-red-light);
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  margin: 3rem 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.related-articles-box {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 2px solid var(--border-color);
}

/* Document Signature Footer Section */
.contract-signature-block {
  border-top: 2px double var(--text-main);
  padding-top: 3rem;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.signature-group {
  font-family: var(--font-signature);
  font-size: 2.5rem;
  color: var(--text-main);
  transform: rotate(-3deg);
  line-height: 1;
}

.signature-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.6rem;
}

.hash-verification-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--bg-alt);
  border: 1.5px dashed var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  text-align: right;
}

.hash-verification-box .hash-code {
  color: var(--primary-red);
  font-weight: 800;
}

/* Footer Section */
.site-footer {
  background: var(--text-main);
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 3.5rem 2rem 2rem 2rem;
  margin-top: auto;
  border-top: 4px solid var(--primary-red);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-column h5 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Floating Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--text-main);
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--primary-red);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 999;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .contract-paper {
    padding: 2rem 1.5rem;
    width: 98%;
  }

  .core-laws-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .speed-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

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

  .articles-catalog-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .top-contract-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .advantages-grid, .pricing-grid, .persona-grid, .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .contract-doc-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .contract-signature-block {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
}
