:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #56645d;
  --line: #d9e1db;
  --surface: #ffffff;
  --soft: #eef5f1;
  --green: #1f7a4d;
  --amber: #e6a23b;
  --blue: #214d7d;
  --dark: #101815;
  --shadow: 0 22px 70px rgba(26, 44, 35, 0.18);
  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(--ink);
  background: #f7faf8;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(247, 250, 248, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-weight: 820;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.nav-cta,
.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 122, 77, 0.24);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(52px, 8vw, 92px) clamp(20px, 5vw, 72px) 54px;
  background:
    radial-gradient(circle at 78% 18%, rgba(230, 162, 59, 0.22), transparent 28%),
    linear-gradient(135deg, #fbfcfb 0%, #edf5ef 46%, #ddeae6 100%);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.handoff-scene {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
}

.scene-panel {
  border: 1px solid rgba(23, 32, 27, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.lead-panel {
  width: min(510px, 92%);
  border-radius: 18px;
  padding: 30px;
  transform: translate(18px, 18px);
}

.lead-panel h2 {
  margin: 28px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.panel-topline,
.lead-meta,
.mail-header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lead-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 24px;
}

.lead-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green);
}

.inbox-panel {
  width: min(520px, 92%);
  justify-self: end;
  margin-top: -36px;
  border-radius: 20px;
  padding: 18px;
}

.email-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 14px;
  border-radius: 12px;
}

.email-row.active {
  background: #f1f7f3;
}

.email-row p {
  margin: 4px 0 0;
  font-size: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.avatar.dark { background: var(--dark); }

.reply-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}

.reply-box button {
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  font-weight: 750;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  transform: translateY(-22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.signal-strip div {
  background: var(--surface);
  padding: 24px;
}

.signal-strip strong {
  display: block;
  font-size: 28px;
}

.signal-strip span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.flow {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-steps article,
.channel-list article,
.command-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 24px;
}

.flow-steps span {
  color: var(--green);
  font-weight: 850;
}

.flow-steps h3,
.channel-list h3 {
  margin: 12px 0 8px;
  font-size: 25px;
}

.flow-steps p,
.channel-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.channels {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(28px, 5vw, 76px);
  background: var(--dark);
  color: #fff;
}

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

.channel-list article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.channel-list p,
.dark-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.owner-loop {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) 1fr;
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
}

.command-card {
  box-shadow: var(--shadow);
}

.command-card > p {
  margin: 28px 0;
  font-size: 24px;
  line-height: 1.35;
}

.mail-response {
  border-left: 4px solid var(--green);
  padding: 16px 18px;
  background: var(--soft);
}

.mail-response p {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav { display: none; }

  .hero,
  .flow,
  .channels,
  .owner-loop {
    grid-template-columns: 1fr;
  }

  .handoff-scene {
    min-height: auto;
  }

  .lead-panel,
  .inbox-panel {
    width: 100%;
    transform: none;
    margin: 0;
  }

  .signal-strip,
  .channel-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .hero { padding-top: 42px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .signal-strip { transform: none; margin-top: 24px; }
}
