/* Interior Mentor — dark forest theme */
:root {
  color-scheme: dark;
  --bg: #061411;
  --bg-2: #0a1c16;
  --forest: #0d2a1f;
  --ink: #eaf3ec;
  --ink-2: #a9bdb0;
  --ink-3: #6f877a;
  --line: rgba(170, 230, 190, 0.12);
  --line-2: rgba(170, 230, 190, 0.22);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --lime: #c8f27e;
  --green: #66cf7e;
  --teal: #3fae98;
  --logo-tint: #3a6e53;
  --ok: #9be59f;
  --err: #ff9a8a;
  --radius: 18px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(1200px 760px at 85% -10%, rgba(46, 150, 100, 0.30), transparent 60%),
    radial-gradient(900px 700px at -10% 28%, rgba(28, 120, 96, 0.26), transparent 62%),
    radial-gradient(900px 700px at 105% 62%, rgba(36, 110, 80, 0.20), transparent 62%),
    radial-gradient(1100px 800px at 40% 105%, rgba(40, 130, 86, 0.22), transparent 60%),
    var(--bg);
}
a { color: var(--lime); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 650; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; position: relative; }
.narrow { max-width: 760px; }
section { padding: 88px 0; position: relative; }

.glass {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 14, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.mainnav { display: flex; gap: 28px; }
.mainnav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.mainnav a:hover { color: var(--ink); }
.topnav { display: flex; align-items: center; gap: 12px; }
/* Language menu */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 10px; cursor: pointer;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.09); }
.lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  width: 420px; max-width: calc(100vw - 32px); max-height: min(78vh, 600px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  list-style: none; margin: 0; padding: 8px;
  background: rgba(10, 26, 20, 0.97); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font: inherit; font-size: .95rem; color: var(--ink-2); text-align: left;
  background: transparent; border: 0; border-radius: 8px; padding: 9px 12px; cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--ink); outline: none; }
.lang-list button[aria-current="true"] { background: rgba(200, 242, 126, 0.12); color: var(--lime); }
.lang-iso { font-size: .75rem; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem;
  border-radius: 12px; padding: 14px 24px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #08170f;
  background: linear-gradient(180deg, #d8f79a, #8fdc6f);
  box-shadow: 0 8px 30px -8px rgba(160, 230, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(160, 230, 110, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-small { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn:focus-visible, .lang button:focus-visible, a:focus-visible, .pill:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Hero */
.hero { padding: 96px 0 120px; min-height: min(860px, 100vh); display: flex; align-items: flex-start; isolation: isolate; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 180px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15em; margin-top: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #e2fbab, #7fd36f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 38em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-size: .92rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  box-shadow: 0 0 24px -6px rgba(140, 220, 120, 0.35);
}
.pill-tag { background: rgba(200, 242, 126, 0.14); color: var(--lime); border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; }

/* Partners marquee */
.partners { padding: 8px 0 72px; margin-top: -40px; }
.partners-title { text-align: center; color: var(--ink-2); font-weight: 600; margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  list-style: none; margin: 0; padding: 18px 0;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo { --h: 46px; flex: none; }
.logo a {
  position: relative; display: block; box-sizing: content-box;
  width: calc(var(--h) * var(--r, 3)); height: var(--h);
  padding: 10px 16px; border-radius: 14px;
  transition: background-color .35s, box-shadow .35s;
}
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity .35s; }
.logo-tint {
  position: absolute; inset: 10px 16px;
  background: var(--logo-tint);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: opacity .35s;
}
/* On hover the real logo appears on a backdrop where its own colours read well. */
.logo a:hover, .logo a:focus-visible { background-color: var(--chip, #f3f6f1); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.logo a:hover img, .logo a:focus-visible img { opacity: 1; }
.logo a:hover .logo-tint, .logo a:focus-visible .logo-tint { opacity: 0; }

/* Demo */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.chat { margin: 0; padding: 22px; }
.msg { border-radius: 14px; padding: 13px 16px; font-size: .98rem; }
.msg p { margin: 0; }
.msg-user {
  background: rgba(200, 242, 126, 0.1); border: 1px solid rgba(200, 242, 126, 0.18);
  margin-left: 14%; margin-bottom: 14px;
}
.msg-ai { display: flex; gap: 12px; background: rgba(0, 0, 0, 0.18); border: 1px solid var(--line); margin-right: 4%; }
.msg-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #08170f; background: linear-gradient(135deg, #d4f58a, #5fc77a);
}
.cite { margin-top: 10px !important; font-size: .88rem; color: var(--lime); border-top: 1px dashed var(--line-2); padding-top: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { padding: 28px; }
.card p { margin: 0; color: var(--ink-2); }
.icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(200, 242, 126, 0.08); border: 1px solid rgba(200, 242, 126, 0.18);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Topics */
.topics { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.topics li { padding: 24px 26px; position: relative; overflow: hidden; }
.topics li::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--lime), var(--teal));
}
.topics strong { display: block; font-size: 1.12rem; font-weight: 600; margin-bottom: 4px; }
.topics span { color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; }
.steps p { margin: 0; color: var(--ink-2); }
.num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: #08170f; font-weight: 700; margin-bottom: 16px;
  background: linear-gradient(180deg, #d8f79a, #8fdc6f);
}

/* Join */
.join-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; padding: 44px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(200, 242, 126, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c8f27e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
}
select option { background: #0b1a14; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 242, 126, 0.18); }
.invalid { border-color: var(--err) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.form.done .field, .form.done .row, .form.done .check, .form.done button { display: none; }
.form.done .form-msg { font-size: 1.15rem; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .95rem; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* Privacy page */
.doc { padding: 64px 0; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc p { color: var(--ink-2); }

@media (max-width: 960px) {
  .mainnav { display: none; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 96px; min-height: 0; }
  .demo-grid, .join-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .steps, .topics { grid-template-columns: 1fr; }
  .join-grid { padding: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .row { grid-template-columns: 1fr; }
  .topnav .btn-small { display: none; }
  .brand span { font-size: 1.05rem; }
  .msg-user { margin-left: 6%; }
  .join-grid { padding: 22px 18px; }
  .marquee-track { gap: 24px; }
  .logo { --h: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
