/* ============================================================
   Snail AI — Main Site Shared Styles (V3.0.0 English B2B)
   Design system: Swiss / coral-ink / paper
   ============================================================ */
:root {
  --ink: #1A1A2E;
  --ink-2: #2A2A40;
  --ink-3: #6A6A85;
  --paper: #FCFCFA;
  --paper-2: #F5F4EE;
  --paper-3: #E8E7E0;
  --accent: #FF5B1F;
  --accent-2: #E84A0F;
  --accent-light: rgba(255,91,31,0.08);
  --accent-warm: #FFF5EE;
  --gold: #D4A547;
  --line: rgba(26,26,46,0.08);
  --line-2: rgba(26,26,46,0.14);
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.04), 0 2px 8px rgba(26,26,46,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.08);
  --shadow-lg: 0 12px 36px rgba(26,26,46,0.12);
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --sans: 'Inter','Helvetica Neue','Helvetica','Arial',sans-serif;
  --mono: 'JetBrains Mono','SF Mono','Menlo','Consolas',monospace;
  --container: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px;
  background: linear-gradient(180deg, rgba(252,252,250,.97) 0%, rgba(252,252,250,.88) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-logo img { height: 32px; width: auto; }
.nav-logo span { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links > a {
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color .15s ease;
}
.nav-links > a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent); text-decoration: none;
  padding: 9px 18px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-2); }
.nav-secondary {
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: var(--paper-2); text-decoration: none;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: background .15s ease; white-space: nowrap;
}
.nav-secondary:hover { background: var(--paper-3); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  padding: 14px 28px; border-radius: 999px;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-outline:hover { background: var(--paper-2); }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-lg { font-size: 16px; padding: 16px 34px; }

/* ===== Hero (shared inner-page) ===== */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(255,91,31,0.06), transparent),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.page-hero h1 {
  font-size: 44px; line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em; max-width: 760px; margin-bottom: 18px;
}
.page-hero .lede { font-size: 18px; color: var(--ink-3); max-width: 640px; margin-bottom: 28px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.section-head p { font-size: 16px; color: var(--ink-3); }

/* ===== Cards ===== */
.card-grid { display: grid; gap: 22px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--ink-3); flex: 1; }
.card .card-link {
  margin-top: 16px; font-size: 13.5px; font-weight: 700;
  color: var(--accent-2); text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent-warm); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px;
}
.card-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); background: var(--paper-2);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}

/* ===== Lists ===== */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--accent-light); color: var(--accent-2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 3px;
}
.cross-list { list-style: none; display: grid; gap: 12px; }
.cross-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-3); }
.cross-list li::before {
  content: "✕"; flex-shrink: 0; width: 22px; height: 22px;
  background: var(--paper-3); color: var(--ink-3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 3px;
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-3); }

/* ===== FAQ ===== */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--accent-2); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 22px 18px; font-size: 14.5px; color: var(--ink-3); }

/* ===== CTA band ===== */
.cta-band {
  background: var(--ink); color: #fff;
  padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 16px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-field label .req { color: var(--accent-2); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-3); }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #1D7A46; }
.form-status.err { display: block; color: var(--accent-2); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer h4 { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 13.5px; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.note-box {
  background: var(--accent-warm); border: 1px solid rgba(255,91,31,0.2);
  border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; color: var(--ink-2);
}
.note-box strong { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 12px 20px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-cta, .nav-secondary { margin-top: 12px; justify-content: center; }
  .nav-burger { display: block; }
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: 32px; }
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
}
