:root {
  --ink: #17202a;
  --muted: #637083;
  --line: #dfe6ee;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --header-bg: rgba(255, 255, 255, 0.82);
  --field-bg: #ffffff;
  --board-bg: #ffffff;
  --teal: #0f8b8d;
  --teal-dark: #0a696b;
  --coral: #f25f5c;
  --gold: #f3b64a;
  --shadow: 0 24px 70px rgba(27, 39, 51, 0.14);
  --radius: 8px;
  --body-bg:
    radial-gradient(circle at 12% 18%, rgba(15, 139, 141, 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(242, 95, 92, 0.11), transparent 24%),
    linear-gradient(180deg, #fbfcfe 0%, #eef4f7 100%);
  --button-bg: #17202a;
  --button-bg-hover: #273443;
  --button-text: #ffffff;
}

:root[data-theme="dark"] {
  --ink: #edf4f8;
  --muted: #aab7c5;
  --line: #314454;
  --surface: #111a22;
  --surface-soft: #17222c;
  --surface-raised: rgba(17, 26, 34, 0.88);
  --header-bg: rgba(17, 26, 34, 0.84);
  --field-bg: #0f171e;
  --board-bg: #ffffff;
  --teal: #20a7aa;
  --teal-dark: #7fdadd;
  --coral: #ff766f;
  --gold: #f0c15b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --body-bg:
    radial-gradient(circle at 12% 18%, rgba(32, 167, 170, 0.14), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(255, 118, 111, 0.1), transparent 24%),
    linear-gradient(180deg, #0d141b 0%, #131e27 100%);
  --button-bg: #edf4f8;
  --button-bg-hover: #d9e6ee;
  --button-text: #111a22;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--body-bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header,
.app-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1240px, calc(100% - 48px));
  min-height: 70px;
  margin: 16px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(211, 222, 232, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    var(--header-bg);
  box-shadow:
    0 18px 48px rgba(23, 32, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
}

.site-header,
.app-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(211, 222, 232, 0.95);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 252, 0.88)),
    var(--header-bg);
  box-shadow:
    0 22px 54px rgba(23, 32, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-header .brand-mark,
.app-header .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #06110e;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, #ffffff, #d8f4f0);
  box-shadow:
    0 14px 32px rgba(15, 139, 141, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header .icon-button,
.app-header .icon-button {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #111827;
  border-color: rgba(211, 222, 232, 0.95);
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(23, 32, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-header .brand,
.app-header .brand {
  color: var(--ink);
}

.site-header .brand:hover,
.app-header .brand:hover {
  border-color: rgba(211, 222, 232, 0.95);
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .app-header {
  background:
    linear-gradient(135deg, rgba(22, 34, 44, 0.96), rgba(14, 23, 31, 0.78)),
    var(--header-bg);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .app-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: #020907;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .site-header .brand,
:root[data-theme="dark"] .app-header .brand {
  color: #ffffff;
}

:root[data-theme="dark"] .site-header .brand:hover,
:root[data-theme="dark"] .app-header .brand:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .icon-button {
  border-color: rgba(64, 84, 101, 0.9);
  background:
    linear-gradient(180deg, rgba(24, 37, 48, 0.92), rgba(15, 24, 32, 0.78)),
    var(--surface-raised);
}

:root[data-theme="dark"] .settings-panel {
  border-color: rgba(64, 84, 101, 0.9);
  background:
    linear-gradient(135deg, rgba(24, 37, 48, 0.96), rgba(15, 24, 32, 0.88)),
    var(--surface);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .settings-row,
:root[data-theme="dark"] .settings-link-grid a {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .settings-row:hover,
:root[data-theme="dark"] .settings-row.active {
  border-color: rgba(127, 218, 221, 0.46);
  background: linear-gradient(90deg, rgba(32, 167, 170, 0.16), rgba(255, 118, 111, 0.08));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .settings-link-grid a:hover,
:root[data-theme="dark"] .settings-link-grid a.active {
  color: var(--ink);
  border-color: rgba(127, 218, 221, 0.42);
  background: rgba(32, 167, 170, 0.12);
}

:root[data-theme="dark"] .theme-system::before {
  border-color: #edf4f8;
  border-left-color: #5d6d7d;
}

:root[data-theme="dark"] .theme-dark::before {
  background:
    radial-gradient(circle at 70% 30%, var(--surface-soft) 0 5px, transparent 5.5px),
    #edf4f8;
}

:root[data-theme="dark"] .site-header .icon-button,
:root[data-theme="dark"] .app-header .icon-button {
  color: #111827;
  border-color: rgba(255, 255, 255, 0.82);
  background: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.brand:hover {
  border-color: var(--line);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 25%),
    linear-gradient(135deg, var(--teal), #173f5f);
  box-shadow:
    0 12px 30px rgba(15, 139, 141, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.header-actions,
.app-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-menu {
  position: relative;
  display: inline-flex;
}

.icon-button {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(211, 222, 232, 0.96);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.88)),
    var(--surface-raised);
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(23, 32, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.icon-button:hover,
.settings-menu.open .icon-button {
  border-color: rgba(15, 139, 141, 0.42);
  color: var(--teal-dark);
  background: var(--surface);
  box-shadow:
    0 16px 38px rgba(15, 139, 141, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.icon-button svg {
  display: none;
}

.settings-toggle::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 66% 25%, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 34% 50%, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 66% 75%, currentColor 0 2px, transparent 2.5px),
    linear-gradient(currentColor, currentColor) 2px 5px / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 11px / 20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 17px / 20px 2px no-repeat;
}

.settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(312px, calc(100vw - 40px));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(223, 230, 238, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.88)),
    var(--surface);
  box-shadow:
    0 34px 80px rgba(23, 32, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.settings-panel-head h2 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  line-height: 1.1;
}

.settings-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.settings-section {
  display: grid;
  gap: 8px;
}

.settings-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.settings-row:hover,
.settings-row.active {
  border-color: rgba(115, 126, 255, 0.68);
  background: linear-gradient(90deg, rgba(115, 126, 255, 0.14), rgba(15, 139, 141, 0.12));
  box-shadow: 0 12px 30px rgba(80, 98, 140, 0.1);
  transform: translateY(-1px);
}

.settings-row-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
}

.settings-row-icon::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.theme-system::before {
  border: 4px solid #17202a;
  border-left-color: #aeb8c5;
}

.theme-light::before {
  background: #f4a51c;
  box-shadow: 0 0 0 3px rgba(244, 165, 28, 0.18);
}

.theme-dark::before {
  background:
    radial-gradient(circle at 70% 30%, var(--surface-soft) 0 5px, transparent 5.5px),
    #17202a;
}

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

.settings-link-grid a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.settings-link-grid a:hover,
.settings-link-grid a.active {
  color: var(--ink);
  border-color: rgba(15, 139, 141, 0.3);
  background: rgba(15, 139, 141, 0.08);
}

.settings-panel button {
  font: inherit;
}

.settings-panel button:hover,
.settings-panel button.active {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: 48px;
  width: min(1240px, calc(100% - 48px));
  min-height: auto;
  margin: 0 auto;
  padding: 38px 0 68px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 4.75vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 470px);
  gap: 12px;
  margin: 24px 0 18px;
}

.button,
.solid-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.button {
  min-width: 178px;
  min-height: 48px;
  padding: 0 20px;
}

.button-primary,
.solid-button {
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: 0 14px 34px rgba(23, 32, 42, 0.18);
}

.button-primary:hover,
.solid-button:hover {
  background: var(--button-bg-hover);
}

.button-secondary,
.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-raised);
}

.button-secondary:hover,
.ghost-button:hover {
  border-color: #b9c7d5;
  background: var(--surface);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 560px);
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
}

.hero-preview {
  position: relative;
  min-width: 0;
}

.preview-window {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(223, 230, 238, 0.94);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.84rem;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.preview-topbar span:nth-child(2) {
  background: var(--gold);
}

.preview-topbar span:nth-child(3) {
  background: var(--teal);
}

.preview-topbar strong {
  margin-left: 8px;
}

.preview-board {
  position: relative;
  min-height: 408px;
  background-color: var(--field-bg);
  background-image:
    linear-gradient(rgba(23, 32, 42, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.preview-toolbar {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(23, 32, 42, 0.1);
}

.tool-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.tool-dot.active {
  background: var(--teal);
}

.preview-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  width: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 42px rgba(23, 32, 42, 0.12);
}

.preview-card small {
  color: var(--teal-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.card-one {
  top: 96px;
  left: 122px;
}

.card-two {
  right: 54px;
  bottom: 74px;
}

.preview-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-width: 7;
}

.section,
.feature-grid,
.experience,
.content-page {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.feature-grid,
.experience,
.roadmap-section {
  scroll-margin-top: 130px;
}

.intro-section {
  max-width: 860px;
  padding: 64px 0 34px;
  text-align: center;
}

.roadmap-section {
  max-width: 900px;
  padding: 74px 0 104px;
  text-align: center;
}

.intro-section p,
.experience p,
.roadmap-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.roadmap-section .button {
  margin-top: 14px;
}

.use-section {
  padding: 18px 0 86px;
  text-align: center;
}

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

.use-grid article {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(223, 230, 238, 0.9);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.use-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 78px;
}

.feature-card {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(223, 230, 238, 0.9);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--teal);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon {
  background: #173f5f;
}

.feature-card:nth-child(3) .feature-icon {
  background: var(--coral);
}

.feature-card:nth-child(4) .feature-icon {
  background: #6b5b95;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-card::before,
.use-grid article::before,
.content-panel::before,
.contact-card::before,
.policy-panel::before,
.faq-list article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  opacity: 0.78;
}

.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: start;
  padding: 70px 0 100px;
  border-top: 1px solid rgba(223, 230, 238, 0.9);
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-list span {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.07);
  font-weight: 800;
}

.site-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 32px;
  padding: 56px 70px;
  border: 1px solid rgba(211, 222, 232, 0.95);
  border-radius: 24px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 252, 0.9)),
    var(--surface);
  box-shadow:
    0 30px 70px rgba(23, 32, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(140px, 0.7fr));
  gap: 56px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  max-width: 390px;
  margin: 18px 0 0;
  line-height: 1.7;
}

.site-footer .brand {
  color: var(--ink);
  padding-left: 0;
}

.site-footer .brand:hover {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.site-footer .brand-mark {
  color: #06110e;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, #ffffff, #d8f4f0);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-column h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.footer-column a {
  color: var(--muted);
  font-weight: 750;
}

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

.footer-middle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.footer-middle h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.footer-middle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-contact {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-raised);
  font-weight: 850;
}

.footer-contact:hover {
  border-color: rgba(15, 139, 141, 0.32);
  background: rgba(15, 139, 141, 0.08);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 38px;
  font-size: 0.92rem;
}

:root[data-theme="dark"] .site-footer {
  color: rgba(238, 246, 241, 0.68);
  border-color: rgba(255, 255, 255, 0.08);
  background: #020d09;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .footer-top,
:root[data-theme="dark"] .footer-middle {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .site-footer .brand,
:root[data-theme="dark"] .footer-column h2,
:root[data-theme="dark"] .footer-middle h2 {
  color: #ffffff;
}

:root[data-theme="dark"] .footer-column a,
:root[data-theme="dark"] .footer-middle p {
  color: rgba(238, 246, 241, 0.66);
}

:root[data-theme="dark"] .footer-column a:hover {
  color: #ffffff;
}

:root[data-theme="dark"] .footer-contact {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .footer-contact:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.content-page {
  padding: 52px 0 92px;
}

.page-hero {
  max-width: 880px;
  margin: 0 auto 36px;
  padding: 28px 20px 4px;
  text-align: center;
}

.page-hero h1 {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.content-panel,
.contact-card,
.policy-panel,
.faq-list article {
  border: 1px solid rgba(223, 230, 238, 0.9);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow:
    0 18px 50px rgba(23, 32, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .preview-window,
:root[data-theme="dark"] .preview-card,
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .use-grid article,
:root[data-theme="dark"] .experience-list span,
:root[data-theme="dark"] .content-panel,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .policy-panel,
:root[data-theme="dark"] .faq-list article,
:root[data-theme="dark"] .toolbar,
:root[data-theme="dark"] .canvas-stage,
:root[data-theme="dark"] .control-card,
:root[data-theme="dark"] .tool-button {
  border-color: rgba(66, 86, 103, 0.92);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .canvas-wrap,
:root[data-theme="dark"] .board-text-input {
  border-color: rgba(66, 86, 103, 0.92);
}

.content-panel,
.contact-card,
.faq-list article {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.content-panel p,
.contact-card p,
.policy-panel p,
.faq-list p,
.clean-list {
  color: var(--muted);
  line-height: 1.75;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list li + li {
  margin-top: 10px;
}

.policy-panel {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
}

.policy-panel h2,
.faq-list h2,
.content-panel h2,
.contact-card h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.policy-panel h2:not(:first-child) {
  margin-top: 34px;
}

.policy-panel a,
.contact-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

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

.error-page {
  display: grid;
  min-height: 58vh;
  place-items: center;
}

.app-body {
  overflow: hidden;
  background: var(--body-bg);
}

.app-header {
  position: sticky;
  width: min(1240px, calc(100% - 48px));
  margin: 16px auto 12px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-action-bar {
  display: flex;
  justify-content: flex-end;
  width: min(1240px, calc(100% - 48px));
  margin: 12px auto;
}

.ghost-button,
.solid-button {
  min-width: 84px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.action-button {
  gap: 8px;
}

.action-button svg,
.tool-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.board-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 12px;
  height: calc(100vh - 180px);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto 12px;
}

.toolbar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(223, 230, 238, 0.92);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
  overflow-y: auto;
}

.tool-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.toolbar-panel {
  display: grid;
  gap: 12px;
}

.history-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.tool-button {
  display: grid;
  min-height: 62px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.tool-button:hover {
  border-color: #b9c7d5;
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.08);
  transform: translateY(-1px);
}

.tool-button.active {
  color: #ffffff;
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), #173f5f);
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.2);
}

.tool-button.danger {
  color: #a23634;
}

.tool-button.danger:hover {
  border-color: rgba(162, 54, 52, 0.35);
  background: #fff7f7;
}

.tool-button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-button {
  min-height: 54px;
}

.control-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.control-card label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.control-card input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field-bg);
}

.color-card input[type="color"] {
  height: 50px;
}

.control-card input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.size-card {
  position: relative;
}

.size-readout {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.control-card select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--field-bg);
}

.canvas-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(223, 230, 238, 0.92);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

.board-status {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  max-width: min(320px, calc(100% - 48px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-raised);
  box-shadow: 0 12px 30px rgba(23, 32, 42, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
  pointer-events: none;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--board-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

#boardCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.eraser-cursor {
  position: absolute;
  z-index: 4;
  display: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(23, 32, 42, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.72),
    0 8px 22px rgba(23, 32, 42, 0.16);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.canvas-wrap.is-erasing #boardCanvas {
  cursor: none;
}

.canvas-wrap.is-erasing .eraser-cursor {
  display: block;
}

.board-text-input {
  position: absolute;
  z-index: 5;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 139, 141, 0.35);
  border-radius: var(--radius);
  outline: 3px solid rgba(15, 139, 141, 0.12);
  background: var(--board-bg);
  box-shadow: 0 18px 44px rgba(23, 32, 42, 0.14);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.28;
  resize: both;
}

.board-text-input::placeholder {
  color: #9aa8b7;
}

.background-blank {
  background-image: none;
}

.background-grid {
  background-image:
    linear-gradient(rgba(23, 32, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.background-dots {
  background-image: radial-gradient(circle, rgba(23, 32, 42, 0.22) 1.4px, transparent 1.6px);
  background-size: 24px 24px;
}

.background-lined {
  background-image: linear-gradient(rgba(23, 32, 42, 0.12) 1px, transparent 1px);
  background-size: 100% 34px;
}

.background-graph {
  background-image:
    linear-gradient(rgba(15, 139, 141, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 139, 141, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.08) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

@media (max-width: 980px) {
  .hero,
  .experience {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 48px;
  }

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

  .use-grid,
  .content-grid,
  .contact-grid,
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-middle {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .board-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .toolbar {
    flex-direction: row;
    align-items: stretch;
    min-height: 112px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .tool-palette {
    grid-template-columns: repeat(8, 68px);
    min-width: max-content;
  }

  .toolbar-panel {
    grid-template-columns: 132px 150px 168px;
    min-width: max-content;
  }

  .history-bar {
    grid-template-columns: repeat(3, 68px);
    min-width: max-content;
    margin-top: 0;
  }

  .control-card {
    min-height: 88px;
  }
}

@media (max-width: 720px) {
  .hero,
  .section,
  .feature-grid,
  .experience,
  .content-page {
    width: calc(100vw - 64px);
  }

  body:not(.app-body) .hero,
  body:not(.app-body) .section,
  body:not(.app-body) .feature-grid,
  body:not(.app-body) .experience,
  body:not(.app-body) .content-page {
    width: calc(100vw - 48px);
  }

  .hero-copy {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  body:not(.app-body) .hero-actions,
  body:not(.app-body) .trust-row,
  body:not(.app-body) .hero-text {
    max-width: 100%;
  }

  .site-header,
  .app-header {
    width: calc(100vw - 48px);
    align-items: stretch;
    flex-direction: column;
  }

  body:not(.app-body) .site-header {
    width: auto;
    max-width: none;
    margin: 18px 24px 0;
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-areas: "brand actions";
    gap: 10px;
    flex-direction: row;
  }

  body:not(.app-body) .header-actions {
    grid-area: actions;
    margin-left: auto;
  }

  body:not(.app-body) .settings-menu {
    position: relative;
    top: auto;
    right: auto;
    z-index: 40;
  }

  body:not(.app-body) .brand {
    grid-area: brand;
    min-width: 0;
  }

  .app-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .app-action-bar {
    width: auto;
    margin: 12px 24px;
  }

  .app-header-right {
    display: flex;
    width: auto;
    grid-area: actions;
    margin-left: auto;
  }

  .app-header-right .settings-menu {
    position: relative;
    top: auto;
    right: auto;
    z-index: 40;
  }

  .app-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-areas: "brand actions";
    align-items: center;
    gap: 10px;
    flex-direction: row;
    padding-right: 14px;
    width: auto;
    margin: 18px 24px 0;
  }

  .app-header .brand {
    grid-area: brand;
    min-width: 0;
  }

  .app-header-actions .solid-button {
    grid-column: 1 / -1;
  }

  .ghost-button,
  .solid-button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.84rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
    line-height: 1.04;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 54px;
  }

  .hero-text {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-row span {
    max-width: 100%;
    font-size: 0.82rem;
  }

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

  .use-grid,
  .content-grid,
  .contact-grid,
  .faq-list,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-middle {
    gap: 18px;
  }

  .policy-panel,
  .content-panel,
  .contact-card,
  .faq-list article {
    padding: 22px;
  }

  .site-footer {
    width: auto;
    margin: 0 24px 28px;
    padding: 24px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-middle {
    padding: 30px 0;
  }

  .footer-contact {
    width: 100%;
  }

  .footer-bottom {
    padding-top: 30px;
  }

  .preview-board {
    min-height: 340px;
  }

  .card-one {
    left: 82px;
  }

  .card-two {
    right: 22px;
  }

  .board-shell {
    width: auto;
    margin: 0 24px 12px;
    height: calc(100vh - 232px);
  }

  .toolbar {
    min-height: 106px;
    max-width: 100%;
    min-width: 0;
  }

  .tool-palette {
    grid-template-columns: repeat(8, 62px);
  }

  .toolbar-panel {
    grid-template-columns: 110px 132px 154px;
  }

  .history-bar {
    grid-template-columns: repeat(3, 62px);
  }

  .tool-button {
    min-height: 58px;
    font-size: 0.68rem;
  }

  .tool-button svg {
    width: 17px;
    height: 17px;
  }

  .control-card {
    padding: 10px;
  }

  .board-status {
    display: none;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 480px) {
  body:not(.app-body) .hero,
  body:not(.app-body) .section,
  body:not(.app-body) .feature-grid,
  body:not(.app-body) .experience,
  body:not(.app-body) .content-page {
    width: calc(100vw - 48px);
  }

  body:not(.app-body) .site-header {
    width: auto;
  }
}
