:root {
    --md-sys-color-primary: #1e88e5;
    --md-sys-color-primary-strong: #1565c0;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: rgba(30, 136, 229, 0.14);
    --md-sys-color-on-primary-container: #073763;
    --md-sys-color-secondary: #5f7894;
    --md-sys-color-secondary-container: rgba(226, 242, 255, 0.86);
    --md-sys-color-tertiary: #00a6d6;
    --md-sys-color-surface: #f2f9ff;
    --md-sys-color-surface-bright: rgba(255, 255, 255, 0.96);
    --md-sys-color-surface-container: rgba(255, 255, 255, 0.76);
    --md-sys-color-surface-container-high: rgba(255, 255, 255, 0.92);
    --md-sys-color-background: radial-gradient(circle at top left, #dff4ff 0%, #eef9ff 34%, #f7fcff 68%, #f2f9ff 100%);
    --md-sys-color-outline: rgba(48, 124, 184, 0.14);
    --md-sys-color-outline-strong: rgba(37, 101, 168, 0.24);
    --md-sys-color-error: #c6284f;
    --md-sys-color-on-surface: #102033;
    --md-sys-color-on-surface-variant: #536b7e;
    --md-sys-color-success: #137333;
    --md-sys-color-success-container: #d7f7df;
    --md-sys-color-warning: #9a6700;
    --md-sys-color-warning-container: #fff2cc;
    --md-elevation-1: 0 14px 34px rgba(31, 111, 183, 0.12);
    --md-elevation-2: 0 24px 64px rgba(31, 111, 183, 0.18);
    --md-radius-xs: 14px;
    --md-radius-sm: 20px;
    --md-radius-md: 28px;
    --md-radius-lg: 36px;
    --md-radius-xl: 44px;
    --md-radius-pill: 999px;
    --md-content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--md-sys-color-on-surface);
    background: var(--md-sys-color-background);
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

code,
pre,
input,
button,
textarea,
select {
    font: inherit;
}

button {
    border: none;
}

.material-symbols-rounded {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    font-size: 20px;
    line-height: 1;
}

.page-orb {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.7;
}

.orb-left {
    top: -120px;
    left: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(145, 218, 255, 0.56) 0%, rgba(145, 218, 255, 0) 72%);
}

.orb-right {
    top: 120px;
    right: -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(90, 190, 255, 0.42) 0%, rgba(90, 190, 255, 0) 72%);
}

.container {
    width: min(var(--md-content-width), calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-shell {
    min-height: 100vh;
    padding: 24px 0 36px;
    position: relative;
    z-index: 1;
}

.topbar {
    margin-bottom: 28px;
}

.nav-surface,
.footer-surface,
.card,
.page-header,
.hero,
.table-card,
.empty-state,
.auth-card,
.cta-card,
.phone-mockup,
.contact-card,
.qr-panel,
.group-qr-panel,
.community-card {
    background: var(--md-sys-color-surface-container);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--md-sys-color-outline);
    box-shadow: var(--md-elevation-1);
}

.nav-surface,
.footer-surface,
.card,
.page-header,
.hero,
.table-card,
.empty-state,
.auth-card,
.cta-card,
.phone-mockup,
.contact-card,
.qr-panel,
.group-qr-panel,
.community-card {
    border-radius: var(--md-radius-md);
}

.nav-surface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
}

.nav-surface-landing,
.footer-surface-landing {
    background: rgba(255, 255, 255, 0.68);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--md-sys-color-on-primary);
    background: linear-gradient(135deg, #1e88e5 0%, #00bcd4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 24px rgba(30, 136, 229, 0.22);
}

.brand-mark .material-symbols-rounded {
    font-size: 28px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-text strong {
    font-size: 18px;
    line-height: 1.2;
    color: var(--md-sys-color-on-surface);
}

.brand-text small {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 13px;
    line-height: 1.45;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.nav-link,
.btn,
.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--md-radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link {
    color: var(--md-sys-color-on-surface);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(48, 124, 184, 0.12);
}

.nav-link:hover,
.btn:hover,
.contact-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(48, 124, 184, 0.16);
}

.nav-link-primary,
.btn {
    color: var(--md-sys-color-on-primary);
    background: linear-gradient(135deg, #1e88e5 0%, #00bcd4 100%);
}

.btn.secondary {
    color: var(--md-sys-color-on-primary-container);
    background: rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.18);
}

.btn.danger {
    color: #fff;
    background: linear-gradient(135deg, #d84d76 0%, #b92f57 100%);
}

.btn.ghost,
.contact-link {
    background: rgba(255, 255, 255, 0.84);
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-outline);
}

.btn.full-width {
    width: 100%;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero,
.page-header {
    padding: 24px 28px;
}

.card,
.table-card,
.auth-card {
    padding: 24px;
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 32px;
    align-items: center;
    padding: 20px 0 8px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.hero-lead {
    margin: 0;
    max-width: 660px;
    font-size: 18px;
    line-height: 1.9;
    color: var(--md-sys-color-on-surface-variant);
}

.hero-badge,
.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--md-radius-pill);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 136, 229, 0.14);
    color: #0d5fa6;
    font-size: 14px;
    font-weight: 600;
}

.soft-badge.compact {
    min-height: 36px;
    font-size: 13px;
}

.soft-badge.highlighted {
    background: rgba(30, 136, 229, 0.14);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.actions.wrap {
    flex-wrap: wrap;
}

.hero-actions .btn,
.hero-actions .contact-link,
.hero-actions .nav-link {
    min-width: 168px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--md-radius-pill);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(48, 124, 184, 0.08);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.card-glow::before {
    content: "";
    position: absolute;
    inset: 10% 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 190, 255, 0.28) 0%, rgba(90, 190, 255, 0) 72%);
    filter: blur(28px);
    z-index: 0;
}

.contact-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 22px;
    background: rgba(255, 255, 255, 0.84);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card-top h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.contact-card-top p {
    margin: 0;
    line-height: 1.75;
    color: var(--md-sys-color-on-surface-variant);
}

.qr-panel,
.group-qr-panel {
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.qr-panel img,
.group-qr-panel img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
}

.contact-meta,
.community-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contact-meta div,
.community-meta div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(239, 248, 255, 0.96);
    border: 1px solid rgba(48, 124, 184, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-meta strong,
.community-meta strong {
    font-size: 13px;
    color: #0d5fa6;
}

.contact-meta span,
.community-meta span {
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    word-break: break-word;
}

.community-section {
    padding-top: 4px;
}

.community-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 380px);
    gap: 24px;
    align-items: center;
    padding: 24px;
}

.community-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.community-copy h2 {
    margin: 0 0 10px;
}

.community-copy p {
    margin: 0;
    line-height: 1.8;
}

.community-visual {
    display: flex;
    justify-content: center;
}

.group-qr-panel {
    width: min(100%, 340px);
}

.grid,
.stats-grid,
.pricing-grid,
.capability-grid,
.feature-grid-strong {
    display: grid;
    gap: 20px;
}

.grid,
.stats-grid,
.capability-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid-strong,
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-form {
    min-width: 220px;
}

label {
    font-size: 14px;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--md-sys-color-on-surface);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(30, 136, 229, 0.6);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.14);
}

.notice {
    padding: 14px 16px;
    border-radius: 18px;
    background: #e4f4ff;
    color: #0d5fa6;
    border: 1px solid rgba(30, 136, 229, 0.18);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--md-radius-pill);
    background: #e4f4ff;
    color: #0d5fa6;
    font-size: 13px;
    font-weight: 600;
}

.status-running {
    background: var(--md-sys-color-success-container);
    color: var(--md-sys-color-success);
}

.status-stopped,
.status-paused {
    background: rgba(231, 228, 244, 0.96);
    color: #5f5a72;
}

.status-error,
.status-missing {
    background: rgba(255, 230, 235, 0.96);
    color: var(--md-sys-color-error);
}

.status-creating,
.status-starting,
.status-restarting,
.status-removing,
.status-unknown {
    background: var(--md-sys-color-warning-container);
    color: var(--md-sys-color-warning);
}

.instance-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.instance-title {
    margin-bottom: 0;
}

.instance-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.instance-meta div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(239, 248, 255, 0.78);
    border: 1px solid rgba(48, 124, 184, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.instance-meta strong {
    font-size: 13px;
    color: #0d5fa6;
}

.instance-meta span,
.management-url,
.error-cell {
    word-break: break-word;
}

.error-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 230, 235, 0.9);
    border: 1px solid rgba(198, 40, 79, 0.16);
    color: var(--md-sys-color-error);
}

.error-panel .material-symbols-rounded {
    flex: 0 0 auto;
}

.error-panel strong,
.error-panel p {
    margin: 0;
}

.error-panel p {
    margin-top: 4px;
    color: var(--md-sys-color-error);
    word-break: break-word;
}

.instance-actions {
    margin-top: auto;
}

.instance-summary-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.health-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.health-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.health-card > .material-symbols-rounded {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--md-sys-color-primary);
    background: rgba(30, 136, 229, 0.12);
}

.health-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--md-sys-color-primary-strong);
}

.health-card p {
    margin: 6px 0 0;
}

.log-box {
    margin: 0;
    padding: 20px;
    min-height: 320px;
    border-radius: 20px;
    background: #19162d;
    color: #f0edff;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.table-card {
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

thead tr {
    background: rgba(231, 246, 255, 0.88);
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(48, 124, 184, 0.12);
    vertical-align: top;
    line-height: 1.6;
}

th {
    color: #285f90;
    font-size: 13px;
    font-weight: 700;
}

td code,
.footer-meta code,
.inline-code {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(221, 242, 255, 0.94);
    color: #0d5fa6;
    font-size: 13px;
}

.big-number {
    margin: 6px 0 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: var(--md-sys-color-primary);
}

hr {
    border: none;
    border-top: 1px solid rgba(48, 124, 184, 0.14);
    margin: 22px 0;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.section-head h2,
.page-header h2,
.card h2,
.card h3,
.table-card h3,
.cta-card h2 {
    margin: 0;
}

.section-head p,
.page-header p,
.card p,
li,
label,
th,
td,
.footer-surface p,
.faq-item p,
.trust-item span {
    color: var(--md-sys-color-on-surface-variant);
}

.split-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: end;
}

.compact-head {
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0d5fa6;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.slim-card {
    padding: 20px 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-item strong {
    font-size: 18px;
    color: var(--md-sys-color-on-surface);
}

.feature-block,
.capability-card,
.price-card,
.faq-item,
.cta-card {
    position: relative;
    overflow: hidden;
}

.feature-block {
    min-height: 220px;
}

.accent-primary {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.accent-soft {
    background: linear-gradient(180deg, rgba(218, 242, 255, 0.48) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.large-title {
    align-items: flex-start;
}

.large-title .material-symbols-rounded,
.capability-card > .material-symbols-rounded {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(30, 136, 229, 0.12);
    color: var(--md-sys-color-primary);
}

.capability-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
}

.featured-price {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.16) 0%, rgba(255, 255, 255, 0.84) 100%);
    transform: translateY(-8px);
}

.price-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-main strong {
    font-size: 48px;
    line-height: 1;
}

.price-sub {
    margin: 0;
}

.clean-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.faq-panel {
    padding: 28px;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(48, 124, 184, 0.08);
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cta-panel {
    padding: 12px 0 24px;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.18) 0%, rgba(255, 255, 255, 0.82) 100%);
}

.page-header h2 {
    font-size: 28px;
}

.stats-grid .card {
    position: relative;
    overflow: hidden;
}

.stats-grid .card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1e88e5 0%, #00bcd4 100%);
}

.footer {
    margin-top: 32px;
}

.footer-surface {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-radius: var(--md-radius-lg);
}

.footer-surface p {
    margin: 6px 0 0;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    color: var(--md-sys-color-on-surface-variant);
}

.surface-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.surface-title .material-symbols-rounded {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(30, 136, 229, 0.12);
    color: var(--md-sys-color-primary);
}

.surface-title h3,
.surface-title p {
    margin: 0;
}

.empty-state {
    padding: 32px 28px;
    text-align: center;
}

@media (max-width: 1180px) {
    .landing-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    }

    .hero-copy h1 {
        font-size: clamp(36px, 5vw, 58px);
    }
}

@media (max-width: 1024px) {
    .landing-hero,
    .split-head,
    .community-card {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-hero {
        min-height: unset;
        gap: 24px;
    }

    .hero-copy,
    .hero-visual {
        width: 100%;
    }

    .hero-visual,
    .community-visual {
        justify-content: flex-start;
    }

    .featured-price {
        transform: none;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .nav-surface,
    .footer-surface {
        flex-direction: column;
        align-items: stretch;
    }

    .menu {
        justify-content: flex-start;
    }

    .footer-meta {
        align-items: flex-start;
    }

    .contact-meta,
    .community-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(var(--md-content-width), calc(100% - 24px));
    }

    .app-shell {
        padding-top: 16px;
    }

    .nav-surface,
    .hero,
    .page-header,
    .card,
    .table-card,
    .auth-card,
    .footer-surface,
    .cta-card,
    .phone-mockup,
    .contact-card,
    .qr-panel,
    .group-qr-panel,
    .community-card {
        padding: 20px;
        border-radius: 24px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        font-size: 12px;
    }

    .hero-copy {
        gap: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(30px, 9vw, 46px);
        line-height: 1.12;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 1.8;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .hero-actions .contact-link,
    .hero-actions .nav-link,
    .community-copy .actions .btn {
        width: 100%;
        min-width: 0;
    }

    .contact-card,
    .group-qr-panel {
        width: 100%;
    }

    .contact-card-top h3 {
        font-size: 24px;
    }

    .feature-block,
    .capability-card,
    .price-card {
        min-height: unset;
    }

    .big-number,
    .price-main strong,
    .page-header h2 {
        font-size: 32px;
    }

    .health-card {
        align-items: flex-start;
    }

    .health-card strong {
        font-size: 26px;
    }

    .surface-title {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--md-content-width), calc(100% - 20px));
    }

    .topbar {
        margin-bottom: 20px;
    }

    .nav-surface,
    .hero,
    .page-header,
    .card,
    .table-card,
    .auth-card,
    .footer-surface,
    .cta-card,
    .phone-mockup,
    .contact-card,
    .qr-panel,
    .group-qr-panel,
    .community-card {
        padding: 16px;
        border-radius: 20px;
    }

    .menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .menu .nav-link,
    .menu .nav-link-primary {
        width: 100%;
        padding: 0 14px;
    }

    .hero-badge,
    .hero-points span,
    .soft-badge {
        width: 100%;
        justify-content: center;
    }

    .actions {
        gap: 10px;
    }

    .split-head {
        gap: 14px;
    }

    .section-head {
        margin-top: 0;
    }

    .cta-card {
        padding: 22px 18px;
    }

    .faq-panel {
        padding: 20px;
    }

    .table-card {
        overflow-x: auto;
    }

    table {
        min-width: 680px;
    }

    th,
    td {
        padding: 12px 10px;
    }
}

@media (max-width: 420px) {
    .menu {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 28px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .big-number,
    .price-main strong,
    .page-header h2 {
        font-size: 28px;
    }

    .contact-meta div,
    .community-meta div,
    .faq-item,
    .capability-card,
    .price-card {
        padding: 14px;
    }
}
