:root {
    --navy: #06213f;
    --navy-2: #0b345f;
    --ink: #152033;
    --muted: #5a6678;
    --line: #d9e1ec;
    --panel: #ffffff;
    --soft: #f4f8fb;
    --teal: #13a6a1;
    --amber: #f2a900;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand img {
    display: block;
    width: 178px;
    max-width: 44vw;
    height: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #39465a;
    font-size: 0.94rem;
}

.nav-links a:hover,
.site-footer a:hover {
    color: var(--teal);
}

.nav-cta,
.primary-action,
.secondary-action,
.price-card a,
.pricing-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
}

.nav-cta,
.primary-action,
.price-card a,
.pricing-state a {
    background: var(--navy);
    color: white;
}

.secondary-action {
    border: 1px solid var(--line);
    color: var(--navy);
    background: white;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(42px, 7vw, 94px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 64px);
    background:
        linear-gradient(120deg, rgba(6, 33, 63, 0.96) 0%, rgba(11, 52, 95, 0.9) 50%, rgba(19, 166, 161, 0.2) 100%),
        url("/assets/images/komunyka-logo.png");
    background-size: auto, min(560px, 70vw);
    background-position: center, right 8% center;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #78eee8;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(2.55rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    max-width: 850px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
    line-height: 1.25;
}

.hero-copy {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero .primary-action {
    background: var(--teal);
}

.hero .secondary-action {
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 42px 0 0;
}

.hero-metrics div {
    border-left: 3px solid var(--amber);
    padding-left: 14px;
}

.hero-metrics dt {
    font-size: 1.5rem;
    font-weight: 800;
}

.hero-metrics dd {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.product-shot {
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.shot-topbar {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #eef4f8;
}

.shot-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
}

.inbox-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 380px;
}

.inbox-layout aside {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: #f7fafc;
    color: var(--muted);
}

.inbox-layout aside strong {
    display: block;
    color: var(--navy);
    margin-bottom: 18px;
}

.inbox-layout aside p,
.message-row span,
.message-row small {
    display: block;
}

.active-thread {
    padding: 10px;
    border-radius: 8px;
    background: #e2f6f5;
    color: var(--navy);
    font-weight: 700;
}

.inbox-layout section {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 28px;
}

.message-row {
    max-width: 320px;
    padding: 15px 16px;
    border-radius: 8px;
    line-height: 1.4;
}

.message-row span {
    color: var(--ink);
    font-weight: 800;
}

.message-row small {
    color: var(--muted);
}

.inbound {
    background: #f0f4f8;
}

.outbound {
    justify-self: end;
    background: #dff6f4;
}

.ticket-status {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
}

.ticket-status span {
    color: #0f7d52;
    font-weight: 800;
}

.section {
    padding: clamp(60px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
    max-width: 920px;
    margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow),
.signup-section p,
.steps-grid p,
.features-grid p,
.price-card p,
.faq-grid p,
.site-footer p {
    color: var(--muted);
    line-height: 1.65;
}

.steps-grid,
.features-grid,
.pricing-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.steps-grid article,
.features-grid article,
.price-card,
.faq-grid details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.steps-grid article,
.features-grid article {
    padding: 22px;
}

.steps-grid span {
    display: block;
    color: var(--teal);
    font-weight: 900;
    margin-bottom: 28px;
}

.split-band,
.pricing-section {
    background: var(--soft);
}

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

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--navy);
    color: white;
    font-size: 0.78rem;
    font-weight: 900;
}

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

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
}

.badge {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 8px;
    background: #fff2cb;
    color: #75510a;
    font-size: 0.78rem;
    font-weight: 800;
}

.price-line {
    display: flex;
    align-items: end;
    gap: 8px;
    color: var(--muted);
}

.price-line strong {
    color: var(--navy);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1;
}

.limit {
    margin: 0;
    font-weight: 700;
}

.price-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-card li::before {
    content: "+";
    margin-right: 8px;
    color: var(--teal);
    font-weight: 900;
}

.price-card a {
    margin-top: auto;
}

.pricing-state {
    display: grid;
    gap: 12px;
    max-width: 760px;
    padding: 26px;
    border: 1px dashed #9fb4ca;
    border-radius: 8px;
    background: white;
    color: var(--muted);
}

.pricing-state strong {
    color: var(--navy);
}

.pricing-state a {
    justify-self: start;
}

.signup-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    background: var(--navy);
    color: white;
}

.signup-section h2,
.signup-section .eyebrow {
    color: white;
}

.signup-section p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
}

.signup-section .primary-action {
    background: var(--teal);
}

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

.faq-grid details {
    padding: 20px 22px;
}

.faq-grid summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 28px clamp(18px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

.site-footer img {
    width: 154px;
}

.site-footer div {
    display: flex;
    gap: 16px;
    color: var(--navy);
    font-weight: 700;
}

#blazor-error-ui {
    display: none;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .signup-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .product-shot {
        min-height: 360px;
    }

    .steps-grid,
    .features-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-header {
        min-height: 68px;
        gap: 14px;
    }

    .brand img {
        width: 148px;
    }

    .nav-cta {
        min-height: 40px;
        padding: 0 12px;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    h1 {
        font-size: clamp(2.3rem, 14vw, 3.6rem);
    }

    .hero-metrics,
    .steps-grid,
    .features-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .inbox-layout {
        grid-template-columns: 1fr;
    }

    .inbox-layout aside {
        display: none;
    }

    .site-footer div {
        flex-direction: column;
    }
}
