:root {
  --bg: #faf7f2;
  --bg-soft: #f3eee5;
  --ink: #0f1f1a;
  --ink-soft: #4a5651;
  --ink-mute: #7a857f;
  --line: #e6dfd2;
  --primary: #0f3a2e;
  --primary-soft: #1d5a47;
  --accent: #d97757;
  --accent-soft: #f0c2a8;
  --bot-bg: #ffffff;
  --user-bg: #0f3a2e;
  --user-ink: #faf7f2;
  --shadow: 0 1px 2px rgba(15, 31, 26, 0.04), 0 8px 32px rgba(15, 31, 26, 0.06);
  --shadow-lg: 0 4px 12px rgba(15, 31, 26, 0.08), 0 24px 64px rgba(15, 31, 26, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.logo-mark { display: inline-flex; align-items: baseline; }
.logo-mark .dot { color: var(--accent); margin-left: 2px; }
.logo-word { letter-spacing: -0.04em; }
.logo-by {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 8px;
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.topbar-nav a:hover { color: var(--ink); }
.topbar-nav .cta-link {
  background: var(--primary);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .15s ease;
}
.topbar-nav .cta-link:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 32px 48px;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.1);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-soft); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.hero-orb {
  position: absolute;
  inset: auto -10% -50% auto;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(217, 119, 87, 0.25), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Chat ---------- */
.chat-section {
  padding: 24px 24px 80px;
  display: flex;
  justify-content: center;
}
.chat-shell {
  width: 100%;
  max-width: 720px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 640px;
  max-height: 80vh;
  box-shadow: var(--shadow-lg);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: var(--bot-bg);
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.2; }
.chat-meta strong { font-size: 15px; color: var(--ink); }
.chat-status { font-size: 12px; color: var(--ink-mute); }
.chat-status::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  transform: translateY(-1px);
}
.chat-reset {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-mute);
  font-size: 18px;
}
.chat-reset:hover { background: var(--bg-soft); color: var(--ink); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.msg {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.55;
  animation: pop .25s ease;
}
.msg p + p { margin-top: 8px; }
@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg-bot {
  align-self: flex-start;
  background: var(--bot-bg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--ink);
}
.msg-user {
  align-self: flex-end;
  background: var(--user-bg);
  color: var(--user-ink);
  border-bottom-right-radius: 6px;
}
.msg-user p strong { color: var(--accent-soft); }

.msg-typing {
  align-self: flex-start;
  background: var(--bot-bg);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: var(--radius);
  border-bottom-left-radius: 6px;
  display: inline-flex;
  gap: 5px;
}
.msg-typing span {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
  animation: bounce 1.4s infinite ease-in-out both;
}
.msg-typing span:nth-child(1) { animation-delay: -0.32s; }
.msg-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

.msg-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
  transition: all .15s ease;
}
.chip:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bot-bg);
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.chat-input input:focus { border-color: var(--primary); }
.chat-input button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.chat-input button:hover { background: var(--primary-soft); transform: translateY(-1px); }
.chat-input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chat-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 10px 18px 16px;
  background: var(--bot-bg);
}

/* ---------- Sections ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: 14px 0 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- Suite tabs ---------- */
.suite { padding: 96px 32px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 48px;
  max-width: 900px;
  padding: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab-active {
  background: var(--primary);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.pane { animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Modules ---------- */
.modules { padding: 96px 32px; }
.grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bot-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-flag {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.card-flag h3 { color: var(--bg); }
.card-flag p { color: rgba(255, 255, 255, 0.92); font-size: 14px; line-height: 1.65; }
.card-flag p strong { color: var(--accent-soft); font-weight: 700; }
.card-flag:hover { box-shadow: 0 12px 36px rgba(15, 58, 46, 0.3); }

/* ---------- Versus table ---------- */
.versus { padding: 96px 32px; }
.versus-table-wrap {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bot-bg);
}
.versus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.versus-table th,
.versus-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.versus-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.versus-table tbody tr:last-child td { border-bottom: none; }
.versus-table tbody tr:nth-child(even) { background: rgba(243, 238, 229, 0.4); }
.versus-table td:first-child { font-weight: 500; color: var(--ink); }
.versus-table td:not(:first-child) {
  text-align: center;
  color: var(--ink-mute);
  font-size: 15px;
  white-space: nowrap;
}
.versus-table .col-ava {
  background: rgba(15, 58, 46, 0.06);
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 17px !important;
}
.versus-table thead th.col-ava {
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.ava-badge {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}
.versus-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.versus-note strong { color: var(--primary); }
@media (max-width: 720px) {
  .versus { padding: 64px 18px; }
}
.card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 96px 32px;
  background: var(--bg-soft);
}
.plan-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.plan {
  position: relative;
  background: var(--bot-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.plan-recommended {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-enterprise {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.plan-enterprise h3,
.plan-enterprise .price { color: var(--bg); }
.plan-enterprise .plan-sub,
.plan-enterprise ul li { color: rgba(250, 247, 242, 0.85); }
.plan-enterprise ul li::before { color: var(--accent-soft); }
.plan-enterprise .plan-sub { border-bottom-color: rgba(250, 247, 242, 0.2); }
.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
}
.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.price .prefix {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.price .period {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
}
.plan-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.plan ul li {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.5;
}
.plan ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 7px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-inner strong { color: var(--primary); font-family: 'Fraunces', serif; font-size: 18px; }
.footer-meta { display: flex; gap: 10px; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; }
  .topbar-nav { gap: 14px; font-size: 13px; }
  .topbar-nav a:not(.cta-link) { display: none; }
  .hero { padding: 56px 18px 24px; }
  .hero-sub { font-size: 16px; }
  .chat-section { padding: 16px 12px 60px; }
  .chat-shell { height: 70vh; max-height: 580px; }
  .modules, .pricing { padding: 64px 18px; }
}
