:root {
  --ink: #17212b;
  --muted: #627080;
  --line: #dce5ea;
  --panel: #ffffff;
  --sky: #dff4ff;
  --sky-2: #f4fbff;
  --sun: #ffc247;
  --green: #4ba87d;
  --blue: #1f6feb;
  --steel: #334155;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(42, 74, 98, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(223, 244, 255, 0.92), rgba(255, 255, 255, 0.98) 520px),
    repeating-linear-gradient(90deg, rgba(31, 111, 235, 0.04) 0 1px, transparent 1px 96px);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(220, 229, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--steel);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 78px);
  padding: clamp(48px, 8vw, 104px) clamp(18px, 6vw, 84px) 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #176b61;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-text {
  max-width: 720px;
  color: var(--steel);
  font-size: 19px;
}

.hero-actions,
.button-row,
.tool-actions,
.login-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.btn.primary {
  color: #fff;
  border-color: #176b61;
  background: #176b61;
}

.btn.secondary {
  color: #123969;
  border-color: #bad2ef;
  background: #f5faff;
}

.btn.ghost {
  color: var(--muted);
  background: transparent;
}

.btn.full {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.sun-card,
.metric-grid > div,
.insight-card,
.contact-box,
.lock-panel,
.tool-shell,
.guide-panel,
.lead-list-wrap {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 229, 234, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sun-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 30px;
}

.sun {
  display: block;
  width: 110px;
  height: 110px;
  margin-bottom: 56px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 194, 71, 0.18), 0 22px 44px rgba(255, 194, 71, 0.26);
}

.sun-card::after {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 280px;
  height: 170px;
  content: "";
  background:
    linear-gradient(135deg, transparent 40%, rgba(31, 111, 235, 0.14) 41% 44%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(23, 33, 43, 0.11) 0 2px, transparent 2px 18px);
  border: 1px solid rgba(23, 33, 43, 0.08);
  transform: rotate(-10deg);
}

.sun-card strong {
  display: block;
  font-size: 26px;
}

.sun-card small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 360px;
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid > div,
.insight-card {
  padding: 18px;
}

.metric-grid strong,
.insight-card strong {
  display: block;
  font-size: 30px;
}

.metric-grid span,
.insight-card span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 74px clamp(18px, 6vw, 84px);
}

.section-title {
  max-width: 850px;
  margin-bottom: 28px;
}

.section-title p,
.split p,
.contact-band p {
  color: var(--muted);
}

.product-tabs,
.message-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab,
.msg-tab {
  padding: 10px 14px;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.tab.active,
.msg-tab.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.keyword-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.keyword-chip {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.keyword-chip strong {
  display: block;
}

.keyword-chip span {
  color: var(--muted);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  background: linear-gradient(90deg, rgba(244, 251, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.advantage-list {
  display: grid;
  gap: 16px;
}

.advantage-list article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 450px);
  gap: 28px;
  align-items: start;
}

.contact-box {
  padding: 24px;
}

.private-section {
  background: linear-gradient(180deg, #f5fbff, #ffffff);
}

.system-main h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}

.lock-panel {
  max-width: 760px;
  padding: 30px;
}

.login-row input {
  min-width: min(100%, 320px);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 44px;
  padding: 9px 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.tool-shell {
  padding: clamp(18px, 3vw, 30px);
}

.hidden {
  display: none;
}

.tool-head,
.list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.control-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

label select {
  margin-top: 6px;
}

.button-row,
#importBox,
.dashboard-grid {
  margin-top: 14px;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.import-panel,
.manual-panel,
.compare-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.import-panel p {
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.compare-result {
  margin-bottom: 12px;
}

.compare-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-left: 5px solid var(--blue);
}

.compare-box span {
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.lead-list-wrap,
.guide-panel {
  padding: 18px;
}

.lead-list {
  display: grid;
  gap: 12px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.lead-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.lead-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lead-card h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.lead-meta span,
.score-pill {
  padding: 4px 8px;
  color: #244055;
  border-radius: 8px;
  background: #eef7fb;
  font-size: 12px;
  font-weight: 800;
}

.score-pill {
  color: #fff;
  background: #176b61;
  white-space: nowrap;
}

.lead-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.lead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.guide-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.guide-item strong {
  display: block;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 84px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-band,
  .workspace-grid,
  .library-tools {
    grid-template-columns: 1fr;
  }

  .control-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    gap: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .hero {
    min-height: auto;
  }

  .control-grid,
  .dashboard-grid,
  .metric-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .tool-head,
  .list-title {
    align-items: stretch;
    flex-direction: column;
  }
}
