:root {
    --color-navy: #081a3a;
    --color-text: #142442;
    --color-muted: #63708a;
    --color-blue: #1267f1;
    --color-blue-2: #2f86ff;
    --color-cyan: #eaf5ff;
    --color-line: #dce6f5;
    --color-soft: #f7faff;
    --color-white: #ffffff;
    --color-green: #18a058;
    --color-teal: #14b8a6;
    --color-pink: #ec4899;
    --shadow-sm: 0 8px 22px rgba(8, 26, 58, 0.07);
    --shadow-md: 0 18px 45px rgba(8, 26, 58, 0.12);
    --shadow-lg: 0 28px 70px rgba(18, 103, 241, 0.2);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 14px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0) 0 58%, rgba(223, 238, 255, 0.75) 58% 66%, rgba(255, 255, 255, 0) 66%) 0 74px / 100% 520px no-repeat,
        linear-gradient(180deg, #fbfdff 0%, #ffffff 44%, #f9fbff 100%);
}

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

img,
svg {
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(18, 103, 241, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.section {
    padding-block: 70px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: grid;
    grid-template-columns: 214px 1fr auto;
    align-items: center;
    min-height: 92px;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    width: 210px;
    height: 54px;
    overflow: hidden;
}

.brand img {
    width: 205px;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    color: var(--color-navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.main-nav a {
    padding-block: 10px;
    color: #0d1f3f;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--color-blue);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--color-white);
    background: linear-gradient(135deg, #1267f1, #0a5fe8);
    box-shadow: 0 12px 22px rgba(18, 103, 241, 0.28);
}

.button-secondary,
.button-outline,
.button-ghost {
    color: var(--color-blue);
    background: var(--color-white);
    border-color: rgba(18, 103, 241, 0.34);
}

.button-ghost {
    color: var(--color-text);
    border-color: var(--color-line);
}

.button-disabled {
    color: #8490a6;
    background: #f3f6fb;
    border-color: #e5ebf4;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.button-disabled:hover {
    transform: none;
}

.hero {
    padding-top: 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: 70px;
}

.hero-copy h1,
.detail-hero h1 {
    margin: 0;
    max-width: 680px;
    color: var(--color-navy);
    font-size: clamp(2.7rem, 5vw, 5.05rem);
    line-height: 1.08;
    font-weight: 850;
}

.hero-copy p,
.detail-hero p {
    max-width: 640px;
    margin: 28px 0 0;
    color: #38506e;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 64px;
}

.trust-row div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px 12px;
    align-items: center;
}

.trust-row strong {
    color: var(--color-navy);
    font-size: 0.92rem;
}

.trust-row small {
    grid-column: 2;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.trust-icon,
.project-icon,
.mini-icon,
.benefit-grid span,
.install-locked span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    background: #edf5ff;
}

.trust-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
}

.trust-icon svg,
.project-icon svg,
.mini-icon svg,
.benefit-grid svg,
.install-locked svg {
    width: 22px;
    height: 22px;
}

.hero-visual {
    position: relative;
}

.hero-visual::before {
    content: "";
    position: absolute;
    left: -72px;
    top: 66px;
    width: 210px;
    height: 210px;
    background-image: radial-gradient(rgba(18, 103, 241, 0.2) 1px, transparent 1px);
    background-size: 12px 12px;
    mask-image: radial-gradient(circle, black 0 54%, transparent 72%);
}

.dashboard-shell {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    min-height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dashboard-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 24px;
    color: #d8e9ff;
    background: linear-gradient(180deg, #071a38, #0d254b);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.dashboard-rail span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-rail svg {
    width: 18px;
    height: 18px;
}

.rail-logo {
    color: var(--color-white);
    font-weight: 900;
}

.dashboard-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(209, 221, 238, 0.88);
    border-left: 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-flex;
    color: var(--color-blue);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.dashboard-topbar h2 {
    margin: 3px 0 0;
    color: var(--color-navy);
    font-size: 1.55rem;
}

.dashboard-topbar button {
    width: 40px;
    height: 40px;
    color: var(--color-navy);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.dashboard-topbar svg {
    width: 18px;
    height: 18px;
    margin: auto;
}

.dashboard-search,
.search-field input,
.sort-field select {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: #7b879b;
}

.dashboard-search {
    padding: 12px 16px;
    font-size: 0.86rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-stats div {
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.dashboard-stats div + div {
    border-left: 1px solid var(--color-line);
}

.dashboard-stats span {
    display: block;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-stats strong {
    display: block;
    margin-top: 5px;
    color: var(--color-navy);
    font-size: 1.35rem;
}

.dashboard-list {
    margin-top: 28px;
}

.dashboard-list > span {
    display: block;
    margin-bottom: 12px;
    color: var(--color-navy);
    font-size: 0.86rem;
    font-weight: 850;
}

.dashboard-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid #e6edf7;
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.dashboard-list a + a {
    margin-top: 10px;
}

.mini-icon,
.project-icon {
    color: var(--icon-color, var(--color-blue));
    border-radius: var(--radius-sm);
}

.mini-icon {
    width: 38px;
    height: 38px;
}

.dashboard-list strong {
    color: var(--color-navy);
    font-size: 0.88rem;
}

.dashboard-list small {
    display: block;
    color: var(--color-muted);
    font-size: 0.72rem;
}

.dashboard-list em {
    color: #66738b;
    font-size: 0.75rem;
    font-style: normal;
}

.setup-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    color: #35516f;
    background: #f3f8ff;
    border: 1px solid #cfe0f8;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}

.setup-notice a {
    margin-left: auto;
    color: var(--color-blue);
    font-weight: 850;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.12;
}

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

.project-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr 170px;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.search-field input,
.sort-field select {
    height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.filter-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-chips button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 18px;
    color: var(--color-text);
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-white);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-chips button.is-active {
    color: var(--color-white);
    border-color: var(--color-blue);
    background: var(--color-blue);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 232px;
    padding: 20px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 103, 241, 0.35);
    box-shadow: var(--shadow-md);
}

.project-card-top {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: start;
}

.project-icon {
    width: 48px;
    height: 48px;
}

.project-icon.large {
    width: 72px;
    height: 72px;
}

.project-icon.large svg {
    width: 34px;
    height: 34px;
}

.project-card h3 {
    margin: 1px 0 7px;
    color: var(--color-navy);
    font-size: 1.05rem;
}

.category-pill,
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.category-pill {
    color: #315377;
    background: #f1f6ff;
}

.status-badge {
    color: #087443;
    background: #eafaf1;
    border: 1px solid #bcebd1;
}

.project-card p {
    margin: 22px 0 0;
    color: #3e4f68;
    flex: 1;
}

.project-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf2f8;
}

.project-card-actions a {
    color: var(--color-blue);
    font-size: 0.84rem;
    font-weight: 850;
}

.load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.empty-state {
    padding: 26px;
    text-align: center;
    color: var(--color-muted);
    border: 1px dashed var(--color-line);
    border-radius: var(--radius);
}

.highlight-grid,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.highlight-card {
    position: relative;
    min-height: 190px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.highlight-card span {
    display: inline-flex;
    padding: 6px 12px;
    color: var(--color-blue);
    background: #edf5ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
}

.highlight-card h3 {
    margin: 18px 0 8px;
    color: var(--color-navy);
    font-size: 1.55rem;
}

.highlight-card p {
    max-width: 230px;
    margin: 0;
    color: #40546f;
    font-size: 0.9rem;
}

.highlight-card strong {
    display: inline-flex;
    margin-top: 24px;
    color: var(--color-blue);
    font-size: 0.86rem;
}

.highlight-device {
    position: absolute;
    right: 22px;
    bottom: 24px;
    width: 150px;
    height: 86px;
    border: 5px solid #0b1d3f;
    border-radius: var(--radius-sm);
    background:
        linear-gradient(90deg, transparent 0 34%, rgba(18, 103, 241, 0.16) 34% 36%, transparent 36%),
        linear-gradient(180deg, #eef6ff, #ffffff);
    box-shadow: 0 18px 34px rgba(8, 26, 58, 0.16);
}

.device-plugin {
    width: 132px;
    border-color: #d6e1ef;
    background:
        linear-gradient(90deg, #1267f1 0 16%, transparent 16%),
        linear-gradient(180deg, #fff, #f4f8fe);
}

.device-web {
    border-color: #0a1838;
    background:
        linear-gradient(180deg, #081a3a 0 18%, transparent 18%),
        linear-gradient(90deg, rgba(18, 103, 241, 0.18) 0 42%, transparent 42%),
        #fff;
}

.project-preview {
    display: grid;
    grid-template-columns: minmax(330px, 1.15fr) minmax(300px, 0.9fr) 260px;
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.preview-window {
    padding: 0 22px 22px;
    border: 1px solid #d9e3f2;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f7faff, #ffffff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    color: #0f1d34;
    font-size: 0.8rem;
}

.window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #ffbd2e; }
.window-bar span:nth-child(3) { background: #28c840; }

.window-bar strong {
    margin-left: auto;
    margin-right: auto;
}

.preview-content {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
    min-height: 200px;
}

.preview-chart {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 46%, transparent 47%),
        conic-gradient(#1267f1 0 42%, #14b8a6 42% 68%, #9be7c3 68% 100%);
}

.preview-chart span {
    color: var(--color-navy);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 900;
}

.preview-chart small {
    display: block;
    color: var(--color-muted);
    font-size: 0.76rem;
}

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

.preview-list span {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 9px;
    align-items: center;
    color: #31435d;
    font-size: 0.9rem;
}

.preview-list i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-teal);
}

.preview-window button {
    width: 148px;
    height: 42px;
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-blue);
    font-weight: 850;
}

.preview-copy h3 {
    margin: 8px 0 12px;
    color: var(--color-navy);
    font-size: 2rem;
}

.preview-copy p {
    margin: 0;
    color: #3f516c;
}

.preview-copy ul,
.feature-list,
.installer-side ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.preview-copy li,
.feature-list li,
.installer-side li {
    position: relative;
    padding-left: 28px;
    margin-top: 10px;
    color: #354863;
}

.preview-copy li::before,
.feature-list li::before,
.installer-side li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-blue);
    font-weight: 900;
}

.details-panel {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.details-panel dl {
    margin: 0;
}

.details-panel div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 14px;
    padding-block: 9px;
}

.details-panel dt {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.details-panel dd {
    margin: 0;
    color: var(--color-navy);
    font-weight: 800;
}

.active-line {
    display: block;
    margin-top: 20px;
    color: var(--color-green);
    font-size: 0.9rem;
}

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

.benefit-grid article {
    min-height: 158px;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.benefit-grid span {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.benefit-grid h3 {
    margin: 14px 0 8px;
    color: var(--color-navy);
    font-size: 1.05rem;
}

.benefit-grid p {
    margin: 0;
    color: #445873;
    font-size: 0.92rem;
}

.site-footer {
    margin-top: 40px;
    padding: 46px 0 18px;
    border-top: 1px solid var(--color-line);
    background: #fbfdff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 56px;
}

.footer-brand img {
    width: 190px;
    height: auto;
}

.footer-brand p,
.site-footer p {
    color: #51627c;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--color-navy);
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin-top: 9px;
    color: #344760;
    font-size: 0.92rem;
}

.footer-placeholder {
    display: block;
    margin-top: 9px;
    color: #7c879b;
    font-size: 0.92rem;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    font-weight: 850;
}

.social-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 32px;
    padding: 0 10px;
    color: #7c879b;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    color: #63708a;
    border-top: 1px solid var(--color-line);
    font-size: 0.88rem;
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--color-blue);
    font-weight: 850;
}

.detail-hero {
    padding-top: 58px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 56px;
    align-items: start;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-title-row h1 {
    margin-top: 8px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.detail-lead {
    color: var(--color-navy) !important;
    font-size: 1.28rem !important;
    font-weight: 750;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    align-items: start;
}

.detail-preview {
    min-height: 360px;
}

.detail-screen {
    display: grid;
    grid-template-columns: 88px 1fr;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
}

.screen-sidebar {
    background: linear-gradient(180deg, #0b1d3f, #123f7e);
}

.screen-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px;
}

.screen-stat {
    grid-column: span 2;
    height: 68px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #eef6ff, #ffffff);
    border: 1px solid var(--color-line);
}

.screen-lines {
    display: grid;
    align-content: start;
    gap: 12px;
}

.screen-lines span {
    height: 14px;
    border-radius: 20px;
    background: #d9e7f8;
}

.screen-lines span:nth-child(2) { width: 72%; }
.screen-lines span:nth-child(3) { width: 88%; }
.screen-lines span:nth-child(4) { width: 58%; }

.screen-chart {
    border-radius: 50%;
    background: conic-gradient(var(--color-blue) 0 52%, var(--color-teal) 52% 76%, #d9e7f8 76% 100%);
}

.feature-list li {
    padding: 16px 16px 16px 44px;
    margin-top: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.feature-list li::before {
    left: 18px;
    top: 16px;
}

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

.not-found {
    max-width: 760px;
    margin: 20px auto 0;
    padding: 36px 34px;
    text-align: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fbfdff, #ffffff);
    box-shadow: var(--shadow-sm);
}

.not-found span {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    border-radius: var(--radius);
    background: #edf5ff;
}

.not-found svg {
    width: 34px;
    height: 34px;
}

.not-found h1 {
    margin: 0;
    color: var(--color-navy);
    font-size: 2.5rem;
}

.not-found p {
    max-width: 56ch;
    margin: 16px auto 0;
    color: #3f516c;
}

.not-found .hero-actions {
    justify-content: center;
    margin-top: 28px;
}

.legal-page {
    padding-top: 28px;
    padding-bottom: 64px;
}

.legal-hero {
    max-width: 1040px;
}

.legal-kicker {
    margin: 0 0 10px !important;
    color: var(--color-blue) !important;
    font-size: 0.92rem !important;
    font-weight: 850;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    color: var(--color-navy);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.legal-hero p {
    max-width: 74ch;
    margin: 14px 0 0;
    color: #3f516c;
    font-size: 1.12rem;
}

.legal-content {
    display: grid;
    gap: 18px;
    max-width: 1100px;
}

.legal-section {
    overflow-x: auto;
    padding: 30px 32px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    margin: 0 0 14px;
    color: var(--color-navy);
    font-size: 1.42rem;
}

.legal-section h3 {
    margin: 18px 0 8px;
    color: var(--color-navy);
    font-size: 1.05rem;
}

.legal-section p,
.legal-section li,
.legal-section dd,
.legal-section td {
    max-width: 78ch;
    line-height: 1.68;
    color: #3f516c;
}

.legal-section dl {
    margin: 0;
    max-width: 82ch;
}

.legal-section div + div {
    margin-top: 10px;
}

.legal-section dt {
    color: var(--color-muted);
    font-weight: 850;
}

.legal-section dd {
    margin: 3px 0 0;
}

.legal-section table {
    width: 100%;
    min-width: 680px;
    margin-top: 18px;
    border: 1px solid var(--color-line);
    border-collapse: collapse;
    background: var(--color-white);
}

.legal-section th,
.legal-section td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--color-line);
}

.legal-section th {
    color: var(--color-navy);
    background: #f5f9ff;
    font-weight: 850;
}

.legal-section th,
.legal-section td {
    line-height: 1.55;
}

.legal-section a {
    color: var(--color-blue);
    font-weight: 800;
}

.legal-section ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.todo-note {
    display: inline-flex;
    padding: 3px 8px;
    color: #9a3412;
    background: #fff4ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
}

.installer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.installer-card,
.installer-side {
    padding: 32px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.installer-card h1 {
    margin: 8px 0 12px;
    color: var(--color-navy);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.install-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.install-form label span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-navy);
    font-weight: 850;
}

.install-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
}

.install-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.alert,
.install-locked,
.manual-config {
    margin-top: 22px;
    padding: 18px;
    border-radius: var(--radius-sm);
}

.alert-success {
    color: #0d6840;
    background: #eafaf1;
    border: 1px solid #bdebd0;
}

.alert-error {
    color: #9a3412;
    background: #fff4ed;
    border: 1px solid #fed7aa;
}

.install-locked {
    border: 1px solid var(--color-line);
    background: #fbfdff;
}

.install-locked span {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
}

.manual-config textarea {
    width: 100%;
    min-height: 220px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .header-inner {
        grid-template-columns: 190px auto auto;
    }

    .main-nav {
        gap: 14px;
        font-size: 0.86rem;
    }

    .hero-grid,
    .project-preview,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: 820px;
    }

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

    .details-panel {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        min-height: 76px;
    }

    .brand,
    .brand img {
        width: 176px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        background: var(--color-white);
        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 46px;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-grid,
    .detail-hero-grid,
    .installer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 10vw, 4rem);
    }

    .trust-row,
    .project-toolbar,
    .highlight-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .project-toolbar {
        align-items: stretch;
    }

    .dashboard-shell {
        grid-template-columns: 56px 1fr;
        min-height: 0;
    }

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--color-line);
    }

    .dashboard-stats div:nth-child(4) {
        border-top: 1px solid var(--color-line);
    }

    .project-preview {
        padding: 18px;
    }

    .legal-page {
        padding-top: 18px;
    }

    .legal-content {
        max-width: none;
    }

    .legal-section {
        padding: 24px 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .section {
        padding-block: 48px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .button {
        white-space: normal;
        text-align: center;
    }

    .trust-row,
    .project-grid,
    .benefit-grid,
    .compact-grid,
    .install-form {
        grid-template-columns: 1fr;
    }

    .dashboard-list a {
        grid-template-columns: 36px 1fr;
    }

    .dashboard-list em {
        grid-column: 2;
    }

    .project-card-top {
        grid-template-columns: 46px 1fr;
    }

    .status-badge {
        grid-column: 2;
        justify-self: start;
    }

    .project-card-actions {
        flex-wrap: wrap;
    }

    .preview-content,
    .detail-screen,
    .screen-main {
        grid-template-columns: 1fr;
    }

    .screen-stat {
        grid-column: auto;
    }

    .details-panel div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .setup-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .setup-notice a {
        margin-left: 0;
    }

    .not-found {
        padding: 28px 20px;
    }

    .legal-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .legal-hero p {
        font-size: 1rem;
    }

    .legal-section {
        padding: 22px 18px;
    }

    .legal-section table {
        min-width: 560px;
    }
}
