:root {
    --primary: #1a3a52;
    --primary-light: #2a5a7a;
    --accent: #00d9ff;
    --accent-dark: #00a8cc;
    --secondary: #6b7280;
    --border: #e5e7eb;
    --background: #ffffff;
    --muted: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 16%, #ffffff 100%);
}

a {
    color: inherit;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-mark {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
    box-shadow: 0 12px 24px rgba(26, 58, 82, 0.18);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

.logo-mark::before {
    width: 1.6rem;
    height: 0.45rem;
    top: 0.95rem;
    left: 0.7rem;
    box-shadow: 0 0.82rem 0 rgba(255, 255, 255, 0.82);
    transform: skewX(-18deg);
}

.logo-mark::after {
    width: 0.84rem;
    height: 0.84rem;
    right: 0.48rem;
    top: 1.18rem;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.logo-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.logo-title {
    font-size: clamp(1.3rem, 2vw, 1.95rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo-title span {
    color: var(--accent-dark);
}

.logo-tagline {
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links {
    display: none;
    list-style: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links a:hover,
.breadcrumb a:hover,
.service-link:hover,
.alt-link:hover {
    color: var(--accent-dark);
}

.page-hero {
    padding: 4.5rem 0 3rem;
}

.breadcrumb {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 2rem;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 217, 255, 0.12);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--primary);
}

.page-intro {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.button {
    background: var(--primary);
    color: white;
}

.button-secondary {
    border: 1px solid var(--border);
    color: var(--primary);
    background: white;
}

.button:hover,
.button-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.hero-summary,
.content-card,
.alt-card,
.widget-shell {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.hero-summary {
    padding: 1.3rem;
}

.hero-summary h2,
.content-card h2,
.alt-card h2,
.widget-section h2 {
    color: var(--primary);
    margin-bottom: 0.9rem;
    font-size: 1.35rem;
}

.facts-grid,
.detail-grid,
.alt-grid {
    display: grid;
    gap: 1rem;
}

.facts-grid,
.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-item,
.detail-item {
    padding: 1rem;
    border-radius: 0.9rem;
    background: var(--muted);
}

.fact-item span,
.detail-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.fact-item strong,
.detail-item strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.section {
    padding: 0 0 3rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 70ch;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

.content-card {
    padding: 1.4rem;
}

.content-card p + p {
    margin-top: 1rem;
}

.check-list,
.cross-list,
.link-list {
    list-style: none;
}

.check-list li,
.cross-list li,
.link-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.check-list li::before,
.cross-list li::before,
.link-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.check-list li::before {
    content: "+";
    color: var(--success);
}

.cross-list li::before {
    content: "-";
    color: var(--danger);
}

.link-list li::before {
    content: ">";
    color: var(--accent-dark);
}

.comparison-shell {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.comparison-table-wrap {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.comparison-table thead tr {
    background: var(--primary);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-size: 0.95rem;
}

.comparison-table tbody tr:hover {
    background: var(--muted);
}

.service-name {
    color: var(--primary);
    font-weight: 700;
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.rating-pill {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.widget-section {
    padding: 0 0 3rem;
}

.widget-shell {
    overflow: hidden;
}

.widget-frame {
    display: block;
    width: 100%;
    min-height: 700px;
    border: none;
}

.widget-note {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    background: rgba(243, 244, 246, 0.75);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.alt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alt-card {
    padding: 1.25rem;
}

.alt-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.alt-card p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.alt-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
}

.footer {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0 1.2rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer ul {
    list-style: none;
}

.footer li + li {
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .page-hero-grid,
    .content-grid,
    .footer-grid,
    .alt-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .nav-content {
        min-height: 80px;
    }

    .logo {
        gap: 0.8rem;
    }

    .logo-title {
        font-size: 1.18rem;
    }

    .logo-tagline {
        font-size: 0.65rem;
    }

    .page-hero {
        padding: 3rem 0 2.25rem;
    }

    .facts-grid,
    .detail-grid,
    .alt-grid {
        grid-template-columns: 1fr;
    }

    .comparison-shell {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .comparison-table-wrap {
        overflow: visible;
    }

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td {
        display: block;
        width: 100%;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody {
        display: grid;
        gap: 1rem;
    }

    .comparison-table tr {
        border: 1px solid var(--border);
        border-radius: 0.9rem;
        overflow: hidden;
        background: white;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .comparison-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        text-align: right;
    }

    .comparison-table td::before {
        content: attr(data-label);
        flex: 0 0 6.4rem;
        text-align: left;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-secondary);
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }

    .widget-frame {
        min-height: 560px;
    }

    .button,
    .button-secondary {
        width: 100%;
    }
}