@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --hf-ink: #0f172a;
    --hf-muted: #475569;
    --hf-blue: #0369a1;
    --hf-sky: #0ea5e9;
    --hf-green: #15803d;
    --hf-coral: #f97316;
    --hf-bg: #f8fbff;
    --hf-soft: #e7f4ff;
    --hf-border: #bae6fd;
}

* {
    box-sizing: border-box;
}

body.public-page {
    margin: 0;
    min-height: 100vh;
    background: var(--hf-bg);
    color: var(--hf-ink);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--hf-blue);
    color: #fff;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
}

.public-nav {
    position: fixed;
    z-index: 100;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 32px));
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(12, 74, 110, 0.12);
    backdrop-filter: blur(18px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--hf-ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.public-brand img {
    border-radius: 8px;
}

.public-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.public-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 8px;
    color: #164e63;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-links a:hover,
.public-links a:focus-visible {
    background: #e0f2fe;
    color: #075985;
    transform: translateY(-1px);
}

.public-links .public-nav-cta {
    background: var(--hf-blue);
    color: #fff;
}

.public-links .public-nav-cta:hover,
.public-links .public-nav-cta:focus-visible {
    background: #075985;
    color: #fff;
}

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    display: grid;
    align-items: center;
    padding: 7.5rem 1.25rem 4rem;
    isolation: isolate;
}

.hero-scene {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #f8fbff;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.7;
    background-image:
        linear-gradient(rgba(3, 105, 161, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(3, 105, 161, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
}

.mail-stream {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.stream-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 230px;
    padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(14, 116, 144, 0.12);
    color: #155e75;
    font-weight: 700;
    animation: float-card 8s ease-in-out infinite;
}

.stream-item i {
    color: var(--hf-blue);
}

.stream-item:nth-child(1) {
    top: 22%;
    right: 8%;
}

.stream-item:nth-child(2) {
    top: 47%;
    right: 16%;
    animation-delay: -2s;
}

.stream-item:nth-child(3) {
    bottom: 17%;
    left: 7%;
    animation-delay: -4s;
}

.stream-line {
    position: absolute;
    height: 2px;
    width: 220px;
    background: linear-gradient(90deg, transparent, rgba(3, 105, 161, 0.45), transparent);
    transform: rotate(-18deg);
    animation: line-flow 4s ease-in-out infinite;
}

.stream-line:nth-child(4) {
    top: 34%;
    right: 28%;
}

.stream-line:nth-child(5) {
    bottom: 30%;
    left: 24%;
    animation-delay: -1.4s;
}

@keyframes float-card {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes line-flow {
    0%, 100% {
        opacity: 0.25;
        transform: translateX(-12px) rotate(-18deg);
    }
    50% {
        opacity: 1;
        transform: translateX(12px) rotate(-18deg);
    }
}

.hero-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding-top: 1rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(3, 105, 161, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #075985;
    font-weight: 800;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    color: #082f49;
    font-size: 6.2rem;
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 710px;
    margin: 1.35rem 0 0;
    color: var(--hf-muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.btn-public-primary,
.btn-public-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.1rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-public-primary {
    background: var(--hf-blue);
    color: #fff;
    box-shadow: 0 14px 32px rgba(3, 105, 161, 0.24);
}

.btn-public-primary:hover,
.btn-public-primary:focus-visible {
    background: #075985;
    color: #fff;
    transform: translateY(-2px);
}

.btn-public-secondary {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: #075985;
}

.btn-public-secondary:hover,
.btn-public-secondary:focus-visible {
    background: #e0f2fe;
    color: #075985;
    transform: translateY(-2px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: min(760px, 100%);
    margin-top: 2.4rem;
}

.metric {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(186, 230, 253, 0.92);
    border-radius: 8px;
    backdrop-filter: blur(16px);
}

.metric strong {
    display: block;
    color: #082f49;
    font-size: 1.45rem;
    line-height: 1.1;
}

.metric span {
    color: var(--hf-muted);
    font-size: 0.88rem;
}

.section {
    padding: 4.8rem 1.25rem;
}

.section-inner {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    color: #082f49;
    font-size: 3rem;
    font-weight: 800;
}

.section-heading p {
    margin: 0.8rem 0 0;
    color: var(--hf-muted);
    line-height: 1.65;
}

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

.feature-item,
.legal-panel,
.price-panel {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(12, 74, 110, 0.08);
}

.feature-item {
    padding: 1.25rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #e0f2fe;
    color: var(--hf-blue);
    font-size: 1.25rem;
}

.feature-item h3 {
    margin: 0 0 0.55rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.feature-item p {
    margin: 0;
    color: var(--hf-muted);
    line-height: 1.55;
    font-size: 0.94rem;
}

.workflow-band {
    background: #082f49;
    color: #e0f2fe;
}

.workflow-band .section-heading h2,
.workflow-band .section-heading p {
    color: #f8fbff;
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.workflow-step {
    padding: 1.2rem;
    border: 1px solid rgba(186, 230, 253, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.workflow-step span {
    color: #7dd3fc;
    font-weight: 800;
}

.workflow-step h3 {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.workflow-step p {
    margin: 0;
    color: #c7e9f7;
    line-height: 1.6;
}

.price-section {
    background: #fff7ed;
}

.price-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    padding: 1.4rem;
}

.price-tag {
    color: #9a3412;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.price-number {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.45rem 0;
    color: #082f49;
}

.price-number strong {
    font-size: 3.4rem;
    line-height: 1;
}

.price-panel ul,
.legal-panel ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--hf-muted);
    line-height: 1.8;
}

.price-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
}

.legal-page {
    padding: 8rem 1.25rem 4rem;
}

.legal-panel {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 1.4rem;
}

.legal-panel h1 {
    margin-bottom: 1rem;
    color: #082f49;
    font-weight: 800;
}

.legal-panel h2 {
    margin-top: 1.75rem;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.legal-panel p {
    color: var(--hf-muted);
    line-height: 1.72;
}

.public-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: #082f49;
    color: #c7e9f7;
}

.public-footer strong {
    color: #fff;
}

.public-footer span {
    margin-left: 0.5rem;
}

.public-footer-links {
    display: flex;
    gap: 1rem;
}

.public-footer a {
    color: #e0f2fe;
    text-decoration: none;
}

.public-footer a:hover,
.public-footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .feature-grid,
    .workflow-list,
    .price-panel {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 4.6rem;
    }

    .section-heading h2 {
        font-size: 2.35rem;
    }

    .stream-item:nth-child(1),
    .stream-item:nth-child(2) {
        right: -90px;
    }
}

@media (max-width: 640px) {
    .public-nav {
        position: absolute;
        top: 10px;
        width: calc(100% - 20px);
        align-items: flex-start;
    }

    .public-links {
        gap: 0.1rem;
    }

    .public-links a:nth-child(1),
    .public-links a:nth-child(2) {
        display: none;
    }

    .public-links a {
        min-height: 40px;
        padding: 0 0.45rem;
        font-size: 0.84rem;
    }

    .hero {
        min-height: 88vh;
        padding-top: 6.5rem;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .mail-stream {
        display: none;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .stream-item {
        min-width: 190px;
        font-size: 0.82rem;
    }

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

    .public-footer span {
        display: block;
        margin-left: 0;
        margin-top: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
