/* ==========================================================================
   Goodgent Light Design System — Master Stylesheet (v2)
   Architectural paper ground, razor-sharp obsidian typography,
   warm butter-lime accents, native Telegram approval UI, and Deep Work PDF terminal.
   ========================================================================== */

:root {
  /* Ground & Surfaces */
  --bg-main:           #faf9f5;
  --bg-subtle:         #f2f1eb;
  --bg-dark-section:   #111311;
  --card-bg:           #ffffff;
  --card-bg-elevated:  #ffffff;
  --card-border:       #e3e1d6;
  --card-border-hover: #c4c1b2;
  --line:              #e3e1d6;
  --line-strong:       #cfccc0;

  /* Typography & Ink */
  --ink:               #111311; /* Deep obsidian black */
  --ink-secondary:     #2b2e28;
  --warm:              #4e5149; /* Refined charcoal body */
  --muted:             #76786f; /* Muted annotations */
  --faint:             #9c9e96; /* Micro tags & placeholders */

  /* Brand Accents */
  --lime:              #f7ee92; /* Pale butter lime */
  --lime-hover:        #faea78;
  --lime-dim:          #fefcee;
  --lime-border:       #e2d56c;
  --lime-glow:         rgba(247, 238, 146, 0.4);

  /* Functional Status Accents */
  --green:             #1f8a55; /* Emerald mint */
  --green-bg:          #edf8f1;
  --orange:            #d97014;
  --orange-bg:         #fdf3e9;
  --yellow:            #cfa10a;
  --blue:              #1b7ec2;
  --blue-soft:         #569bb0;
  --purple:            #7e57c2;

  /* Layout & Geometry */
  --max:               1280px;
  --radius-sm:         6px;
  --radius-md:         10px;
  --radius-lg:         16px;
  --radius-xl:         24px;
  --radius-pill:       9999px;

  /* Typography */
  --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:         'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Layout Containers & Wrappers
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--warm);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--ink);
}

.brand:hover {
  opacity: 0.85;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--warm);
  font-size: 14.5px;
  font-weight: 500;
}

.navlinks a:not(.download) {
  position: relative;
  padding: 6px 0;
}

.navlinks a:not(.download):hover {
  color: var(--ink);
}

.download {
  background: var(--ink);
  color: #ffffff;
  border-radius: 22px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.download:hover {
  background: #2b2e28;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 29px;
  padding: 15px 24px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.btn:hover {
  background: #282b26;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0);
}

.btn.lime {
  background: var(--lime);
  color: var(--ink);
  border: 1px solid var(--lime-border);
}

.btn.lime:hover {
  background: var(--lime-hover);
  box-shadow: 0 4px 14px var(--lime-glow);
}

.btn.dark {
  border: 1px solid #d5d3c8;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn.dark:hover {
  border-color: var(--ink);
  background: #faf9f5;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 84px 24px 0;
  position: relative;
}

.hero > .mono {
  display: inline-block;
  margin-bottom: 22px;
  line-height: 1.35;
  color: var(--warm);
  padding: 6px 14px;
  background: #f0eee6;
  border: 1px solid #e2e0d6;
  border-radius: 20px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 500;
  max-width: 1200px;
  margin: 0 auto 30px;
  color: var(--ink);
}

.hero h1 span {
  display: block;
  color: #4b4e47;
}

.hero .lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.52;
  max-width: 720px;
  color: var(--warm);
  margin: 0 auto;
  font-weight: 400;
}

.heroactions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 64px;
}

/* --------------------------------------------------------------------------
   Showcase (Dual App: Telegram HITL + Web UI Deep Work PDF)
   -------------------------------------------------------------------------- */
.showcase-container {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.showcase-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f2f1eb;
  border: 1px solid #e2e0d6;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
}

.session-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 600;
}

.session-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.btn-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #d5d3c8;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.btn-replay:hover {
  background: #faf9f5;
  border-color: var(--ink);
}

.showcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #0e3029 0%, #1e4d3c 27%, #515c32 53%, #1b251d 100%);
  border: 1px solid #27372b;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 32px 24px 40px;
}

.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 24% 62%, #61acbe 0, transparent 32%),
              radial-gradient(ellipse at 75% 20%, #9aaa50 0, transparent 38%),
              linear-gradient(180deg, transparent 40%, #191d18 100%);
  opacity: 0.65;
  pointer-events: none;
}

.dualapp {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

/* Telegram Window Mockup */
.telegram {
  background: #151619;
  border: 1px solid #34363c;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tgbar {
  height: 44px;
  border-bottom: 1px solid #2d3035;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12.5px;
  background: #191b1f;
}

.tgbar b {
  color: #8fc9ff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tgbar b::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50c487;
  box-shadow: 0 0 6px #50c487;
}

.tgbar span {
  margin-left: auto;
  color: #92939b;
  font-size: 11.5px;
}

.tgbody {
  padding: 16px;
  background: #17222b;
  flex: 1;
  font-size: 11.5px;
  line-height: 1.4;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tgday {
  text-align: center;
  color: #91a4b1;
  font: 9.5px var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tgmsg {
  background: #253b49;
  border-radius: 4px 12px 12px 12px;
  padding: 10px 12px;
  max-width: 92%;
  color: #eef4f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tgmsg.user {
  margin-left: auto;
  background: #2b5548;
  border-radius: 12px 4px 12px 12px;
  color: #ffffff;
}

.tgmsg b {
  font-weight: 600;
  color: #ffffff;
}

.tgmsg span {
  color: #d1dde0;
  display: inline-block;
  margin-top: 3px;
}

.tgmsg small {
  display: block;
  text-align: right;
  color: #8ca5ac;
  font-size: 9px;
  font-family: var(--font-mono);
  margin-top: 5px;
}

/* Telegram Native Inline Buttons for HITL Approval */
.tg-inline-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #364856;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}

.tg-draft-label {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: #8fa9b6;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tg-draft-text {
  font-size: 11px;
  color: #f0f4f6;
  line-height: 1.35;
  font-style: italic;
  margin-bottom: 10px;
}

.tg-keyboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tg-btn {
  background: #2d485a;
  border: 1px solid #416277;
  color: #ffffff;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tg-btn:hover {
  background: #395c73;
}

.tg-btn.primary {
  background: #2f6b55;
  border-color: #428e72;
  color: #b7fedd;
  grid-column: span 2;
}

.tg-btn.primary:hover {
  background: #387c63;
}

.tg-status-banner {
  background: #1d4034;
  border: 1px solid #2f6b55;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  color: #a8f3d0;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* WebUI Deep Work / Research Interface */
.webui {
  background: #151619;
  border: 1px solid #34363c;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.webbar {
  height: 44px;
  border-bottom: 1px solid #2d3035;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  background: #191b1f;
}

.traffic {
  display: flex;
  gap: 6px;
}

.traffic i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e65e59;
}

.traffic i:nth-child(2) { background: #e6b44e; }
.traffic i:nth-child(3) { background: #61c76e; }

.webbar b {
  margin-left: 14px;
  font-weight: 500;
  color: #dcdde2;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.webbar .frontier-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 243, 176, 0.1);
  border: 1px solid rgba(255, 243, 176, 0.25);
  color: #fff3b0;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.webbody {
  display: grid;
  grid-template-columns: 195px 1fr;
  flex: 1;
  background: #141518;
}

.webbody aside {
  border-right: 1px solid #27282e;
  padding: 18px 14px;
  color: #7d7f87;
  font-size: 11px;
  background: #111215;
}

.webbody aside strong {
  display: block;
  color: #eeeeee;
  font-size: 13.5px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.webbody aside small {
  display: block;
  color: #555760;
  font-size: 9px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin: 14px 0 6px;
  font-weight: 600;
}

.webbody aside span {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webbody aside span:hover {
  color: #ddd;
  background: rgba(255,255,255,0.04);
}

.webbody aside span.active {
  background: #27292f;
  color: #ffffff;
  font-weight: 500;
}

.webmain {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.deep-work-prompt {
  background: #1c1e23;
  border: 1px solid #2d3038;
  border-radius: 8px;
  padding: 12px 14px;
}

.prompt-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #7e8391;
  margin-bottom: 4px;
}

.prompt-text {
  font-size: 12px;
  color: #e5e7ec;
  line-height: 1.45;
}

.execution-trace {
  background: #111215;
  border: 1px solid #22242a;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trace-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: #696e7c;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.trace-step {
  font-size: 11px;
  color: #a4a9b6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trace-step.done {
  color: #d1d5db;
}

.trace-step.done::before {
  content: '✓';
  color: #75d6a0;
  font-weight: 700;
}

/* PDF Deliverable Card */
.pdf-card {
  background: #191c22;
  border: 1px solid #373b45;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.pdf-icon-badge {
  width: 42px;
  height: 48px;
  background: #e6524b;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(230,82,75,0.4);
}

.pdf-details {
  flex: 1;
}

.pdf-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.pdf-sub {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #8c919e;
  margin-top: 4px;
}

.btn-download-pdf {
  background: var(--lime);
  color: #090a09;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-download-pdf:hover {
  background: #fff9d8;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Where Good Works Section (Streamlined to 3 Channels)
   -------------------------------------------------------------------------- */
.trust {
  padding: 88px 24px 72px;
  text-align: center;
}

.trust > .mono {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 600;
}

.trust h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
}

.trust p {
  max-width: 650px;
  margin: 0 auto 40px;
  color: var(--warm);
  font-size: 18px;
  line-height: 1.55;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.channel-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.channel-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.channel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.channel-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.channel-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  background: #f2f1eb;
  color: var(--warm);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.channel-card p {
  font-size: 13.5px;
  color: var(--warm);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Feature Sections (Context, Deep Work, Initiative, Follow-through)
   -------------------------------------------------------------------------- */
.feature {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 24px;
  border-top: 1px solid var(--line);
}

.feature.copyright .copy {
  order: 2;
  padding-left: 30px;
}

.feature.copyright .visual {
  order: 1;
}

.copy .mono {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--warm);
  font-weight: 600;
}

.copy h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 640px;
  color: var(--ink);
}

.copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--warm);
  max-width: 580px;
  margin: 0;
}

.visual {
  height: 350px;
  position: relative;
  background: linear-gradient(140deg, #d3e1e6, #ded8be 45%, #c5d3c6);
  border: 1px solid #d2cec0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #e2f0f2, transparent 35%),
              linear-gradient(160deg, transparent 47%, #cad5ca 48%, #b5c2b5 100%);
  opacity: 0.85;
  pointer-events: none;
}

.mini {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  border: 1px solid #dedcd0;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mini.one {
  left: 8%;
  right: 8%;
  top: 14%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
}

.minihead {
  height: 38px;
  border-bottom: 1px solid #e8e6dc;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: #fbfaf5;
  display: flex;
  align-items: center;
}

.minibody {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
}

.briefline {
  height: 8px;
  background: #e6e4d8;
  border-radius: 4px;
  margin: 0 0 10px;
  width: 75%;
}

.briefline.short {
  width: 45%;
  margin-bottom: 14px;
}

.briefbox {
  border: 1px solid #e5e3d8;
  background: #fbfaf7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  transition: border-color 0.15s ease;
}

.briefbox:first-of-type {
  margin-top: 0;
}

.briefbox:hover {
  border-color: #cac7b6;
}

.briefbox b {
  font-size: 12px;
  color: var(--ink);
  display: block;
}

.briefbox p {
  font-size: 11.5px;
  color: var(--warm);
  margin-top: 6px;
  line-height: 1.45;
}

/* Feature: Darkrow (Initiative) in Light Mode */
.feature.darkrow {
  background: #f2f1ea;
  border-top: 1px solid #e3e1d6;
  border-bottom: 1px solid #e3e1d6;
  border-radius: 18px;
}

.feature.darkrow .visual {
  background: linear-gradient(140deg, #ccdce4, #ded2be 56%, #c2cec6);
}

.matrix {
  position: absolute;
  inset: 10%;
  z-index: 2;
  border: 1px solid #dedcd0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.matrixrow {
  display: grid;
  grid-template-columns: 95px 1fr 80px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eeece2;
  padding: 10px 0;
  font-size: 11.5px;
}

.matrixrow:last-child {
  border-bottom: none;
}

.matrixrow span {
  color: var(--muted);
  font-weight: 500;
}

.matrixrow b {
  font-weight: 600;
  color: var(--ink);
}

.matrixrow em {
  font: 10px var(--font-mono);
  color: var(--green);
  font-style: normal;
  text-align: right;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Apps Integration Section (Connect 200+ Apps)
   -------------------------------------------------------------------------- */
.section.wrap#integrations {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}

.section.wrap > .mono {
  display: inline-block;
  margin-bottom: 14px;
}

.section.wrap h2 {
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.075em;
  margin: 15px 0 18px;
  color: var(--ink);
}

.section.wrap p {
  color: var(--warm);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

.systems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
  text-align: left;
}

.system {
  border: 1px solid var(--line);
  padding: 24px 20px;
  background: var(--card-bg);
  border-radius: 10px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.system:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.system img, .system .sys-icon {
  height: 24px;
  width: 24px;
  margin-bottom: 22px;
}

.system b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.system small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Audience Section (Who Good is for)
   -------------------------------------------------------------------------- */
.audience {
  padding-top: 96px;
  padding-bottom: 96px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.audience > .mono {
  display: inline-block;
  margin-bottom: 14px;
}

.audience h2 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.08em;
  margin: 15px 0 20px;
  color: var(--ink);
}

.audience-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--warm);
  font-size: 19px;
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
  text-align: left;
}

.audience-card {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.audience-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.audience-card h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.audience-card p {
  color: var(--warm);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.audience-card ul {
  list-style: none;
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid #eeece4;
}

.audience-card li {
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
}

.audience-card li::before {
  content: '+';
  color: var(--green);
  margin-right: 9px;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Pricing Section & Stacked Value Ladder
   -------------------------------------------------------------------------- */
.pricing {
  padding: 96px 24px 72px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.pricehead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.pricehead > .mono {
  display: inline-block;
  margin-bottom: 14px;
}

.pricehead h2 {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.08em;
  margin: 15px 0 22px;
  color: var(--ink);
}

.pricehead p {
  font-size: 19px;
  color: var(--warm);
  line-height: 1.5;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 52px;
  text-align: left;
  align-items: stretch;
}

.plan {
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 12px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.plan:hover {
  border-color: var(--card-border-hover);
}

.plan.featured {
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.plan .mono {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.plan.featured .mono {
  color: var(--ink);
}

.plan h3 {
  font-size: 24px;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--ink);
}

.plan .money {
  font-size: 52px;
  letter-spacing: -0.08em;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 12px;
  line-height: 1;
}

.plan .money small {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}

.plan p {
  color: var(--warm);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  padding: 18px 0 0;
  border-top: 1px solid #eeece4;
  margin-top: auto;
  flex: 1;
}

.plan li {
  font-size: 13.5px;
  padding: 7px 0;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
}

.plan li::before {
  content: '+';
  margin-right: 9px;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.founder {
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #3b3d2c;
  margin: 18px 0 6px;
}

.founder b {
  color: #111311;
  font-weight: 700;
}

.plan .btn {
  margin-top: 20px;
  width: 100%;
}

/* Side-by-Side Executive Comparison Section (Human vs Goodgent - Light Mode) */
.comparison-section {
  max-width: 960px;
  margin: 56px auto 0;
  text-align: left;
}

.comparison-header {
  text-align: center;
  margin-bottom: 36px;
}

.comparison-header h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.comparison-header p {
  color: var(--warm);
  font-size: 16px;
  margin-top: 8px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.compare-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.compare-card.human {
  background: #f7f6f0;
  border-color: #e2ded0;
}

.compare-card.goodgent {
  background: #ffffff;
  border: 2px solid var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.compare-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.compare-card.goodgent .compare-badge {
  color: var(--green);
}

.compare-card h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.compare-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.07em;
  color: var(--ink);
  margin: 12px 0 6px;
  line-height: 1;
}

.compare-price small {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.compare-price-sub {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 22px;
}

.compare-card.goodgent .compare-price {
  color: var(--ink);
}

.compare-card.goodgent .compare-price-sub {
  color: var(--warm);
}

.compare-list {
  list-style: none;
  padding: 18px 0 0;
  border-top: 1px solid #e3e0d4;
  margin-top: auto;
}

.compare-list li {
  font-size: 13.5px;
  padding: 8px 0;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.4;
}

.compare-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.compare-card.human .compare-list li::before {
  content: '✕';
  color: #92958d;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.compare-card.goodgent .compare-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.compare-banner {
  background: #fdfcee;
  border: 1px solid var(--lime-border);
  border-radius: 10px;
  padding: 18px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.compare-banner-text {
  font-size: 14px;
  color: #2b2e18;
}

.compare-banner-text strong {
  color: #111311;
}

.compare-banner-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: #111311;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.under {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 32px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Closing Section
   -------------------------------------------------------------------------- */
.closing {
  padding: 120px 24px 150px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warm);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.closing .kicker i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.closing h2 {
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.09em;
  margin: 15px auto 26px;
  max-width: 1000px;
  color: var(--ink);
}

.closing h2 span {
  color: #52564e;
}

.closing p {
  font-size: 21px;
  color: var(--warm);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.closing .actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #f4f3ec;
}

.footerlinks {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footerlinks a:hover {
  color: var(--ink);
}

.footerlinks a:last-child {
  border: 1px solid #cfccc0;
  border-radius: 20px;
  padding: 7px 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
}

.footerlinks a:last-child:hover {
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .nav {
    position: relative;
    height: 76px;
  }

  .menu-toggle {
    display: flex;
  }

  .navlinks {
    display: none;
    position: absolute;
    z-index: 100;
    top: 76px;
    left: 24px;
    right: 24px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #dedcd0;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav.menu-open .navlinks {
    display: flex;
  }

  .nav.menu-open .navlinks a {
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 15px;
  }

  .nav.menu-open .navlinks a:hover {
    background: #f4f3ec;
  }

  .nav.menu-open .navlinks .download {
    text-align: center;
    margin-top: 10px;
    justify-content: center;
  }

  /* Hero */
  .hero {
    text-align: left;
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(24px, 5vw, 40px);
    margin: 0 0 20px;
    line-height: 1.1;
  }

  .hero .lede {
    font-size: 18px;
    margin: 0;
  }

  .heroactions {
    justify-content: flex-start;
    margin: 30px 0 54px;
  }

  /* Showcase */
  .showcase {
    min-height: auto;
    padding: 24px 20px 30px;
  }

  .dualapp {
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .telegram {
    min-height: 340px;
  }

  .webui {
    min-height: 420px;
  }

  .webbody {
    grid-template-columns: 130px 1fr;
  }

  .channels-grid {
    grid-template-columns: 1fr;
  }

  /* Features */
  .feature, .feature.copyright {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 72px 24px;
  }

  .feature.copyright .copy {
    order: 1;
    padding-left: 0;
  }

  .feature.copyright .visual {
    order: 2;
  }

  .visual {
    height: 300px;
  }

  /* Systems */
  .systems {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Audience */
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Plans */
  .plans {
    grid-template-columns: 1fr;
  }

  /* Value Ladder */
  .value-ladder-section {
    padding: 24px 18px;
  }

  .value-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .value-tag {
    text-align: left;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 28px;
  }

  .footerlinks {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footerlinks a:last-child {
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .heroactions {
    flex-direction: column;
    max-width: 320px;
  }

  .heroactions .btn {
    width: 100%;
  }

  .webbody {
    grid-template-columns: 1fr;
  }

  .webbody aside {
    display: none;
  }

  .systems {
    grid-template-columns: 1fr;
  }

  .matrixrow {
    grid-template-columns: 80px 1fr 65px;
    font-size: 10.5px;
  }
}
