/* ============================================================
   WhaleAI Solutions Kft. — corporate site styles v4
   Apple-style: white canvas · huge type · generous whitespace
   light glass nav · pill buttons · #f5f5f7 section rhythm
   （保留小工具箱所需类：panel / form-row / row / stats / cards …）
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --glass: rgba(0, 0, 0, .03);
  --glass-strong: rgba(0, 0, 0, .06);
  --text: #1d1d1f;
  --text-inverse: #f5f5f7;
  --muted: #6e6e73;
  --muted-inverse: #a1a1a6;
  --border: #d2d2d7;
  --border-dark: rgba(255, 255, 255, .16);
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --accent-soft: rgba(0, 113, 227, .1);
  --grad: linear-gradient(95deg, #0090f7, #7d59f2 42%, #e048a7 76%, #f7b500);
  --danger: #e30000;
  --ok: #1d8a3e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .05);
  --shadow-lift: 0 12px 34px rgba(0, 0, 0, .12);
  --glow: 0 4px 14px rgba(0, 113, 227, .28);
  --maxw: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.012em;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(0, 113, 227, .22); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------------- 顶栏（毛玻璃浅色） ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 0 22px; min-height: 50px;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink);
  color: #fff; font-weight: 700; font-size: 14px;
}
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 6px 12px; border-radius: 8px;
  color: rgba(0, 0, 0, .72); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: #000; background: var(--glass); }
.nav a.active { color: #000; font-weight: 600; background: var(--glass-strong); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip { font-size: 13px; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost-btn {
  padding: 7px 13px; border: 0; border-radius: 999px;
  background: transparent; color: var(--accent-ink); cursor: pointer; font-size: 13.5px; font-weight: 500;
}
.ghost-btn:hover { text-decoration: underline; }

/* ---------------- 按钮（胶囊） ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent; border-radius: 980px;
  background: var(--accent);
  color: #fff; cursor: pointer; font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { background: #0077ed; box-shadow: var(--glow); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn.secondary:hover { border-color: #86868b; background: #fff; box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; }
.link-arrow { color: var(--accent-ink); font-size: 17px; font-weight: 500; }
.link-arrow::after { content: " ›"; font-size: 19px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------------- 表单 ---------------- */
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="password"],
select, textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(0, 113, 227, .22);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
select.mini { width: auto; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
select option { background: #fff; color: var(--text); }

/* ---------------- Hero（居中 · 超大标题） ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: #fbfbfd;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 84px 24px 88px;
  text-align: center;
}
.hero .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--muted); font-size: 15px; font-weight: 500;
}
.hero .eyebrow b { color: var(--text); font-weight: 600; }
.hero h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 700; letter-spacing: -.022em;
  max-width: 860px; margin: 0 auto 22px;
  color: var(--text);
}
.hero .lede { color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 680px; margin: 0 auto; }
.hero .cta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 32px; margin-top: 76px; gap: 20px;
}
.hero-stats .v {
  font-size: 26px; font-weight: 650; letter-spacing: -.02em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.hero-stats .k { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------------- 产品界面模型（浅色浏览器窗） ---------------- */
.mock {
  max-width: 780px; margin: 64px auto 0;
  border-radius: 18px; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 40px 80px rgba(0, 0, 0, .14);
  font-size: 12px; text-align: left;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: var(--bg-soft);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .14); }
.mock-url {
  margin-left: 8px; padding: 4px 14px;
  border-radius: 999px; background: #e8e8ed;
  color: var(--muted); font-size: 11px;
}
.mock-body { display: grid; grid-template-columns: 132px 1fr; }
.mock-side { padding: 14px 10px; border-right: 1px solid rgba(0, 0, 0, .06); display: grid; gap: 4px; align-content: start; }
.mock-side span { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.mock-side span.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-card { border-radius: 12px; background: var(--bg-soft); padding: 14px; }
.mock-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
}
.sk { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .09); margin: 7px 0; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w75 { width: 75%; } .sk.w90 { width: 90%; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(52, 199, 89, .14); color: var(--ok); font-size: 11px; font-weight: 600;
}
.mock-card .mock-chip.warn { background: rgba(255, 189, 10, .18); color: #9a6b00; }

/* ---------------- 区块（白/浅灰交替） ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }
.section.soft { max-width: none; background: var(--bg-soft); }
.section.soft > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker {
  display: block; margin-bottom: 12px;
  font-size: 15px; font-weight: 600;
  color: var(--accent-ink);
}
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; color: var(--text); }
.section-head p { margin: 0; color: var(--muted); font-size: 17.5px; }

/* ---------------- 能力卡 ---------------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cap {
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cap .num {
  position: absolute; top: 24px; right: 28px;
  font-size: 46px; font-weight: 700; letter-spacing: -.03em;
  color: rgba(0, 0, 0, .08);
}
.cap { position: relative; }
.cap .ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 21px;
}
.cap h3 { font-size: 19px; margin-bottom: 9px; color: var(--text); }
.cap p { margin: 0 0 15px; color: var(--muted); font-size: 14.5px; }
.cap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cap li { display: flex; gap: 9px; color: var(--text); font-size: 13.5px; }
.cap li::before { content: "✓"; font-weight: 700; color: var(--accent-ink); }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px 26px 6px 0; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 12%; height: 1.5px;
  background: var(--border); border-radius: 2px;
}
.step .n {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14.5px;
}
.step h3 { font-size: 17px; margin-bottom: 7px; color: var(--text); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------------- 理由 ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why {
  display: flex; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.why .dot {
  flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 50%;
  background: var(--accent);
}
.why h3 { font-size: 16.5px; margin-bottom: 5px; color: var(--text); }
.why p { margin: 0; color: var(--muted); font-size: 14.5px; }
.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; justify-content: center; }
.industries span {
  padding: 8px 18px; border-radius: 980px;
  border: 1px solid var(--border); background: #fff;
  color: var(--muted); font-size: 13.5px;
}

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; display: grid; gap: 10px; margin: 0 auto; }
details.faq {
  border: 0; border-radius: 14px;
  background: var(--bg-soft); padding: 0;
  transition: box-shadow .18s ease;
}
details.faq[open] { box-shadow: inset 0 0 0 1.5px var(--accent); }
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 19px 22px; font-weight: 600; font-size: 16px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 21px; font-weight: 500; flex: none;
  color: var(--accent-ink);
}
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------------- CTA 横幅（黑色瓷砖） ---------------- */
.band { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 110px; }
.band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 56px; border-radius: 24px;
  background: var(--ink);
  color: #fff;
}
.band-inner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.band-inner p { margin: 0; opacity: .72; font-size: 15.5px; max-width: 520px; }
.band-inner .btn { background: var(--accent); }
.band-inner .btn:hover { background: #0077ed; }

/* ---------------- 页脚（浅灰） ---------------- */
.foot { background: var(--bg-soft); }
.foot-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 24px 20px;
  display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px;
}
.foot-brand p { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; max-width: 380px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h4 { color: var(--text); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.foot-col a { color: #424245; font-size: 13.5px; }
.foot-col a:hover { text-decoration: underline; }
.foot .brand { color: var(--text); }
.foot .brand em { color: var(--muted); }
.foot-legal {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(0, 0, 0, .1); margin-top: 40px;
  color: #86868b; font-size: 12.5px;
}
.foot-legal a { color: #424245; text-decoration: underline; }

/* ---------------- 法务/长文页 ---------------- */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 24px 60px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; color: var(--text); }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal b { color: var(--text); }
.legal .todo { background: rgba(255, 189, 10, .2); color: #9a6b00; padding: 1px 7px; border-radius: 6px; font-size: 13px; }

/* ---------------- 登录 ---------------- */
.login-wrap { max-width: 400px; margin: 72px auto; padding: 0 24px; }
.login-wrap .panel { padding: 30px; }
.login-wrap h1 { font-size: 24px; margin-bottom: 6px; color: var(--text); }
.login-wrap .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ---------------- 面板 / 列表（工具箱与后台共用） ---------------- */
.panel {
  background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.panel-pad { padding: 22px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 30px; margin-bottom: 6px; color: var(--text); }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 160px; }

.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #e8e8ed; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.row.done .title { text-decoration: line-through; color: var(--muted); }
.row .sum { font-variant-numeric: tabular-nums; font-weight: 650; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 4px 7px; border-radius: 8px; font-size: 14px; }
.icon-btn:hover { background: var(--glass-strong); color: var(--danger); }
.check { width: 18px; height: 18px; flex: none; cursor: pointer; accent-color: var(--accent); }
.empty { padding: 32px 4px; color: var(--muted); text-align: center; font-size: 14.5px; }

.stats { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 0 6px; }
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--muted); }
.badge.new { background: var(--accent-soft); color: var(--accent-ink); }
.badge.won { background: rgba(52, 199, 89, .16); color: var(--ok); }

.success { padding: 40px; text-align: center; border-radius: var(--radius); background: var(--bg-soft); }
.success .big { font-size: 36px; margin-bottom: 10px; }
.success h2 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.success p { margin: 0; color: var(--muted); }

/* ---------------- 卡片墙（工具箱） ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  display: block; padding: 22px;
  background: var(--bg-soft); border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card .ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; background: var(--accent-soft); font-size: 18px; }
.card h3 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.card .lock { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--muted); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  padding: 12px 22px; border-radius: 980px;
  background: rgba(29, 29, 31, .92); color: #fff;
  backdrop-filter: blur(10px);
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80; max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero-inner { padding-top: 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cap-grid, .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 11px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .section { padding: 70px 20px; }
  .hero-inner { padding: 52px 20px 56px; }
  .band { padding: 0 20px 70px; }
  .band-inner { padding: 34px 28px; }
  .legal { padding: 52px 20px 48px; }
  .user-chip { display: none; }
}
