/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #e8431a;
  --primary-dark: #c93610;
  --primary-light: #ff6b3d;
  --secondary: #1a1a2e;
  --accent: #f5a623;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm  { font-size: 13px; padding: 7px 16px; }
.btn-md  { font-size: 15px; padding: 10px 22px; }
.btn-lg  { font-size: 16px; padding: 14px 28px; border-radius: 10px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,67,26,.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  background: #fff0eb;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== HEADER / NAV ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
#header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
}
.logo-icon { font-size: 24px; }
.logo-text { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links li a:hover { color: var(--primary); }
.nav-links .nav-login { color: var(--text); font-weight: 600; }
/* Button inside nav — override the generic a{color} rule */
.nav-links li a.btn-primary,
.nav-links li a.btn-primary:hover { color: #fff; }
.nav-links li a.btn-outline,
.nav-links li a.btn-outline:hover { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,67,26,.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-text h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--primary-light);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-cta .btn-outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.hero-cta .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero-note {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .02em;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 280px;
  background: #0d0d1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
}
.order-card { padding: 20px; }
.restaurant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.rest-avatar {
  width: 44px; height: 44px;
  background: #fff0eb;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.rest-name { font-weight: 700; font-size: 15px; color: var(--secondary); }
.rest-status { font-size: 11px; }
.rest-status.open { color: #22c55e; }

.menu-items { margin-bottom: 16px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f8f8f8;
  color: var(--text);
}
.menu-item .price { font-weight: 700; color: var(--primary); }

.order-summary {
  background: #faf9f7;
  border-radius: 10px;
  padding: 12px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.btn-order {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.btn-order:hover { background: var(--primary-dark); }

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
}
.badge-orders { bottom: 60px; left: -30px; animation-delay: 0s; }
.badge-revenue { top: 40px; right: -20px; animation-delay: 1.5s; }
.badge-icon { font-size: 22px; }
.floating-badge strong { display: block; font-size: 15px; color: var(--secondary); }
.floating-badge small { font-size: 11px; color: var(--text-muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ===== LOGOS BAR ===== */
.logos-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 24px;
}
.logos-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.logos-grid span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: var(--bg-soft);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: #fff;
}
.steps {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 280px;
  flex: 1;
}
.step-number {
  width: 52px; height: 52px;
  min-width: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.step-arrow {
  font-size: 28px;
  color: var(--border);
  font-weight: 300;
}
.how-cta { text-align: center; }

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--bg-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}
.service-item {
  text-align: center;
}
.service-visual {
  width: 88px; height: 88px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}
.service-visual.delivery  { background: #fff0eb; }
.service-visual.promo     { background: #fef3c7; }
.service-visual.website   { background: #eff6ff; }
.service-visual.reservation { background: #f0fdf4; }

.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary);
}
.service-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap .2s;
}
.link-arrow:hover { text-decoration: underline; }

/* ===== DEMO SECTION ===== */
.demo-section {
  padding: 100px 0;
  background: #fff;
}
.demo-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.demo-text .section-badge { display: inline-block; margin-bottom: 16px; }
.demo-text h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}
.demo-text p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.demo-list {
  list-style: none;
  margin-bottom: 32px;
}
.demo-list li {
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  font-weight: 500;
}

/* Browser mockup */
.demo-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.browser-bar {
  background: #f3f4f6;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #d1d5db;
}
.browser-dots span:nth-child(1) { background: #f87171; }
.browser-dots span:nth-child(2) { background: #fbbf24; }
.browser-dots span:nth-child(3) { background: #4ade80; }
.browser-url {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.browser-content { background: #fff; padding: 20px; }
.demo-category {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 16px 0 8px;
}
.demo-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}
.demo-item-info strong { font-size: 14px; color: var(--secondary); }
.demo-item-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.demo-item-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.demo-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.btn-add {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  color: var(--primary);
}
.btn-add:hover, .btn-add.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-soft);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,67,26,.08);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 16px;
  border-radius: 100px;
}
.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}
.price-currency { font-size: 24px; font-weight: 700; color: var(--secondary); }
.price-amount { font-size: 52px; font-weight: 800; color: var(--secondary); line-height: 1; }
.price-period { font-size: 16px; color: var(--text-muted); }
.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-features {
  list-style: none;
  margin-bottom: 28px;
}
.plan-features li {
  font-size: 14px;
  padding: 7px 0;
  color: var(--text);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 100px 0;
  background: #fff;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author small { font-size: 12px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-soft);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  font-family: var(--font);
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #c93610 100%);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,.75);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--primary-light); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.social-links a:hover { background: var(--primary); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-note { font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 10px 0; display: block; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  /* Mobile: style the CTA button properly */
  .nav-links li a.btn-primary {
    margin-top: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    border-bottom: none;
    color: #fff;
  }
  .hamburger { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { justify-content: center; }
  .badge-orders { left: 0; }
  .badge-revenue { right: 0; }

  .demo-inner { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { transform: rotate(90deg); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid, .services-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ===== CONTENT / SUB PAGES ===== */
.page-hero {
  margin-top: 68px;
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero .section-badge { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--secondary);
  line-height: 1.1;
}
.page-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 17px;
  color: var(--text-muted);
}
.page-section { padding: 56px 0; }
.page-narrow { max-width: 780px; }

/* Prose (legal & article text) */
.prose { color: var(--text); font-size: 16px; line-height: 1.75; }
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin: 40px 0 14px;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; color: var(--secondary); }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; list-style: disc; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--primary); font-weight: 500; text-decoration: underline; }
.prose strong { color: var(--secondary); }
.prose .updated {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

/* Generic card grid for sub-pages */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.page-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.page-card .pc-icon { font-size: 30px; margin-bottom: 14px; }
.page-card h3 { font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.page-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.page-card a { color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: none; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--secondary); }
.contact-info .ci-block { margin-bottom: 24px; }
.contact-info .ci-block p { color: var(--text-muted); font-size: 15px; }
.contact-info .ci-block a { color: var(--primary); font-weight: 500; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--secondary); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color .2s;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

/* Status page */
.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.status-banner .dot { width: 12px; height: 12px; border-radius: 50%; background: #10b981; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.status-banner strong { color: #047857; font-size: 17px; }
.status-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.status-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.status-item:last-child { border-bottom: none; }
.status-item .s-name { font-weight: 500; }
.status-item .s-state { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #047857; font-weight: 600; }
.status-item .s-state .dot { width: 9px; height: 9px; }

/* Article / blog list */
.article-list { display: grid; gap: 20px; }
.article-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform .2s, box-shadow .2s;
}
.article-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article-item .a-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.article-item h3 { font-size: 20px; font-weight: 700; color: var(--secondary); margin: 8px 0; }
.article-item p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.article-item .a-meta { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

.back-home { margin-top: 40px; }
.back-home a { color: var(--primary); font-weight: 600; font-size: 15px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
