:root {
  --bg: #eef5fb;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #fff;
  --line: #d8e3f1;
  --text: #111827;
  --muted: #66758b;
  --blue: #2563eb;
  --green: #10b981;
  --cyan: #06b6d4;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(28, 57, 100, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .15), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(16, 185, 129, .16), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 227, 241, .82);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #10b981);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}
.brand strong { display: block; font-size: 17px; }
.brand span { display: block; color: var(--blue); font-size: 12px; font-weight: 700; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav button,
.ghost-btn,
.primary-btn,
.soft-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.desktop-nav button {
  padding: 10px 14px;
  border-radius: 999px;
  color: #3a4a62;
  background: transparent;
  font-weight: 700;
}
.desktop-nav button:hover,
.desktop-nav button.active { background: #eef4ff; color: var(--blue); }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 108px;
}
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy,
.hero-board,
.tool-card,
.help-band,
.result-box {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-copy {
  border-radius: 30px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.hero-copy:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 80px;
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(16,185,129,.16));
  transform: rotate(20deg);
}
.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
h1 {
  margin: 26px 0 12px;
  max-width: 560px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .95;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 530px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 560px;
}
.action-tile {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 13px;
  align-items: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.action-tile:hover {
  transform: translateY(-2px);
  border-color: #b8cdf8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
}
.tile-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.action-tile strong { display: block; font-size: 16px; }
.action-tile small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.4; }

.hero-board {
  border-radius: 30px;
  padding: 22px;
  display: grid;
  gap: 16px;
}
.phone-card {
  min-height: 240px;
  border-radius: 26px;
  padding: 26px;
  color: #0f172a;
  background:
    linear-gradient(135deg, rgba(37,99,235,.10), rgba(16,185,129,.13)),
    #fff;
  border: 1px solid #d5e8f3;
}
.phone-ui {
  width: 96px;
  height: 164px;
  margin: 0 auto 18px;
  border: 8px solid #142033;
  border-radius: 28px;
  background: #eff6ff;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 44px 16px 18px;
}
.phone-ui span { border-radius: 10px; background: #60a5fa; }
.phone-ui span:nth-child(2) { background: #34d399; }
.phone-ui span:nth-child(3) { background: #a78bfa; }
.phone-ui span:nth-child(4) { background: #22d3ee; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}
.mini-card strong { display: block; margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }

.section-title {
  margin: 42px 0 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.section-title h2 { margin: 0; font-size: 28px; }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  border-radius: 24px;
  padding: 22px;
}
.tool-card.wide { grid-column: 1 / -1; }
.tool-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.tool-head h3 { margin: 0 0 6px; font-size: 21px; }
.tool-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: #26364f; font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd9e8;
  border-radius: 15px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}
textarea { min-height: 118px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #8bb8ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}
.primary-btn, .soft-btn, .ghost-btn {
  min-height: 48px;
  border-radius: 15px;
  padding: 0 18px;
  font-weight: 900;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #10b981);
}
.soft-btn {
  color: var(--blue);
  border: 1px solid #bfd3f7;
  background: #f5f9ff;
}
.ghost-btn {
  color: #334155;
  border: 1px solid var(--line);
  background: #fff;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.result-box {
  display: none;
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdff;
  box-shadow: none;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #22304a;
}
.result-box.show { display: block; }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.result-actions a {
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}
.app-list {
  display: grid;
  gap: 10px;
}
.app-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.app-option.active { border-color: var(--blue); background: #eff6ff; }
.app-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5eef9;
}
.help-band {
  margin-top: 28px;
  border-radius: 26px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.help-band h2 { margin: 0 0 8px; }
.help-band p { margin: 0; color: var(--muted); line-height: 1.7; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  transform: translateX(-50%) translateY(18px);
  padding: 12px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .92);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 25;
  width: min(720px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 1px solid rgba(216, 227, 241, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px rgba(28,57,100,.18);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px;
}
.bottom-nav button {
  border: 0;
  background: transparent;
  border-radius: 20px;
  min-height: 48px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
}
.bottom-nav button.active { background: #0f172a; color: #fff; }

@media (max-width: 880px) {
  .desktop-nav { display: none; }
  .shell { padding: 16px 12px 106px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 28px 20px; border-radius: 26px; }
  .hero-actions, .tool-grid, .form-grid { grid-template-columns: 1fr; }
  .tool-card.wide, .field.full { grid-column: auto; }
  .hero-board { display: none; }
  .section-title { display: block; }
  .help-band { display: block; }
  .help-band .button-row { margin-top: 18px; }
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .bottom-nav button { font-size: 12px; padding: 0 4px; }
}
