/* Homepage layout for the node-graph theme. Tokens live in site.css. */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--header);
    color: var(--text);
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem 1.25rem;
    min-height: 64px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

.logo-wrap a {
    display: block;
    min-width: 0;
    max-width: 100%;
    line-height: 0;
    background: radial-gradient(circle at 30px 50%, rgba(90, 200, 255, 0.28), transparent 46px);
}

.site-logo {
    display: block;
    height: 62px;
    width: auto;
    max-width: 100%;
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(143, 232, 255, 0.45);
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav.is-open .nav-toggle-bars { background: transparent; }

.site-nav.is-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    flex: 0 0 auto;
    list-style: none;
    align-items: center;
    gap: clamp(0.7rem, 1.15vw, 1.35rem);
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.35rem 0;
}

.nav-links a:hover {
    color: var(--cyan);
}

.cta-button,
.submit-btn {
    background: var(--btn);
    color: #f4fbff;
    padding: 0.55rem 1rem;
    border: 1px solid #8fefff;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(80, 210, 255, 0.2);
}

.cta-button:hover,
.submit-btn:hover {
    background: var(--btn-hover);
    color: #ffffff;
}

.cta-label-mobile {
    display: none;
}

.tech-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #05080f;
    border-bottom: 1px solid rgba(143, 232, 255, 0.22);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 18, 0.18), rgba(5, 10, 18, 0.42)),
        linear-gradient(rgba(148, 206, 230, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 206, 230, 0.08) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    pointer-events: none;
}

.carousel-overlay {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text);
    z-index: 2;
    max-width: min(80%, 760px);
    background: rgba(6, 12, 22, 0.78);
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 0 22px rgba(40, 160, 220, 0.16);
}

.carousel-overlay h2 {
    font-size: 2.2rem;
    margin: 0 0 0.55rem;
    color: var(--cyan-hot);
    font-weight: 650;
    letter-spacing: 0.01em;
}

.carousel-overlay p {
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-soft);
}

.carousel-brand-logos {
    position: absolute;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    width: min(96%, 1040px);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(6, 14, 26, 0.88);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-pill img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 12, 22, 0.86);
    color: var(--cyan-hot);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 3;
    border-radius: 4px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(40, 160, 220, 0.22);
}

.carousel-nav:hover {
    background: rgba(12, 40, 58, 0.95);
}

.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(232, 241, 248, 0.45);
    cursor: pointer;
}

.indicator.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

section[id] {
    scroll-margin-top: 6.5rem;
}

.hero,
.services,
.assessment,
.next-steps,
.essential-eight,
.about,
.contact {
    background: transparent;
}

.hero {
    position: relative;
    padding: 4.2rem 0 3.2rem;
    background:
        radial-gradient(ellipse at 82% 30%, rgba(46, 160, 220, 0.14), transparent 46%),
        radial-gradient(ellipse at 8% 90%, rgba(60, 200, 140, 0.08), transparent 42%);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero h1 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: clamp(2rem, 3.6vw, 2.7rem);
    line-height: 1.15;
    font-weight: 680;
}

.hero-copy > p:not(.node-kicker) {
    margin: 0 0 1.6rem;
    max-width: 40rem;
    color: var(--text-soft);
    font-size: 1.12rem;
}

.hero-graph {
    display: grid;
    grid-template-columns: minmax(128px, 0.86fr) 108px minmax(148px, 1fr);
    align-items: stretch;
    min-height: 390px;
}

.graph-hub {
    display: flex;
    align-items: center;
}

.graph-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.2rem 0;
}

.hero-wires {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wire,
.wire-base {
    fill: none;
    stroke: #8fe8ff;
    stroke-width: 1.6;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.wire-base {
    stroke: rgba(143, 232, 255, 0.55);
}

.wire-base-green {
    stroke: rgba(125, 255, 195, 0.55);
}

.wire {
    stroke-dasharray: 6 10;
    animation: wire-flow 14s linear infinite;
}

.wire-green {
    stroke: #7dffc3;
}

.wire-dot {
    fill: #8fe8ff;
}

.wire-dot-green {
    fill: #7dffc3;
}

@keyframes wire-flow {
    to { stroke-dashoffset: -200; }
}

.graph-node {
    position: relative;
    text-align: left;
    padding: 0.8rem 0.9rem 0.75rem;
    background: rgba(8, 20, 36, 0.92);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(60, 180, 230, 0.14);
}

.graph-node::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fe8ff;
    box-shadow: 0 0 8px #8fe8ff;
}

.graph-node-green {
    border-color: var(--line-green);
    box-shadow: 0 0 16px rgba(70, 210, 140, 0.14);
}

.graph-node-green::after {
    background: #7dffc3;
    box-shadow: 0 0 8px #7dffc3;
}

.graph-node .node-kicker {
    margin-bottom: 0.3rem;
}

.graph-node strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
}

.graph-node small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.services,
.assessment,
.next-steps,
.essential-eight,
.about,
.contact {
    padding: 4rem 0;
}

.section-title {
    margin: 0 0 2.2rem;
    text-align: center;
    color: var(--cyan-hot);
    font-size: clamp(1.7rem, 3vw, 2.05rem);
    font-weight: 680;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: "";
    display: block;
    width: 132px;
    height: 2px;
    margin: 0.8rem auto 0;
    background: linear-gradient(90deg, transparent, #8fe8ff, #7dffc3, transparent);
    box-shadow: 0 0 8px rgba(143, 232, 255, 0.45);
}

.services-grid,
.essential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.service-card,
.essential-card,
.next-step {
    padding: 1.35rem 1.3rem 1.4rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card h3,
.essential-card h3,
.next-step h3,
.about-text h2,
.assessment-content h2 {
    margin: 0 0 0.55rem;
    color: var(--cyan-hot);
}

.service-card p,
.essential-card p,
.next-step p,
.about-text p,
.assessment-content > p,
.intro,
.maturity-note,
.credentials-list li {
    color: var(--text-soft);
}

.service-card p,
.essential-card p {
    margin: 0 0 0.7rem;
}

.service-card p:last-child,
.essential-card p:last-child {
    margin-bottom: 0;
}

.service-card:hover,
.essential-card:hover,
.next-step:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.service-card:nth-child(3n),
.essential-card:nth-child(even) {
    border-color: var(--line-green);
}

.service-card:hover,
.essential-card:hover,
.next-step:hover,
.service-card:nth-child(3n):hover,
.essential-card:nth-child(even):hover {
    border-color: var(--line-strong);
}

.service-card:nth-child(3n) .node-kicker,
.essential-card:nth-child(even) .node-kicker {
    color: var(--green);
}

.learn-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.learn-link {
    display: inline-block;
    padding: 0.32rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--cyan);
    background: rgba(8, 28, 44, 0.72);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.learn-link:hover {
    border-color: var(--line-green);
    color: var(--green);
    background: rgba(16, 48, 36, 0.55);
}

.trust-strip {
    margin-top: 1.5rem;
    padding: 1.2rem 1.25rem;
}

.trust-title {
    margin: 0 0 0.45rem;
    color: var(--cyan-hot);
    font-weight: 700;
}

.reseller-note {
    margin: 0 0 0.8rem;
    color: var(--text);
    font-weight: 650;
}

.trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
}

.chip {
    display: inline-block;
    padding: 0.28rem 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--line);
    background: rgba(6, 16, 28, 0.8);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-note,
.framework-update,
.contact-email,
.form-note,
footer {
    color: var(--muted);
}

.assessment-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.6rem 1.8rem;
    text-align: center;
}

.assessment-content h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.assessment-content > p {
    max-width: 40rem;
    margin: 0 auto 1.3rem;
}

.assessment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    text-align: left;
}

.assessment-list li {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(6, 16, 28, 0.72);
    color: var(--text);
}

.assessment-list li::before {
    content: "✓";
    margin-right: 0.45rem;
    color: var(--green);
    font-weight: 800;
}

.essential-eight .intro,
.maturity-note {
    text-align: center;
    max-width: 52rem;
    margin: 0 auto 1.4rem;
}

.framework-update {
    max-width: 52rem;
    margin: 0 auto 1.6rem;
    padding: 0.95rem 1.1rem;
    border-left: 3px solid var(--cyan);
    background: rgba(8, 20, 36, 0.72);
}

.framework-update strong {
    color: var(--text);
}

.about-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
}

.credentials-list {
    margin: 0.8rem 0 0;
    padding-left: 1.15rem;
}

.credentials-list li {
    margin-bottom: 0.45rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.4rem;
}

.about-image img {
    width: min(100%, 460px);
    height: auto;
}

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

.step-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--cyan-hot);
    background: rgba(8, 32, 48, 0.9);
    box-shadow: 0 0 12px rgba(80, 200, 255, 0.18);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 1.5rem 1.35rem 1.35rem;
}

.contact-email {
    text-align: center;
    margin: -0.6rem 0 1.2rem;
}

.contact-email a,
.form-note a,
footer a {
    font-weight: 650;
    text-decoration: none;
}

.contact-email a:hover,
.form-note a:hover,
footer a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--cyan-hot);
    font-weight: 650;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #0a121e;
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a8bccf;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(143, 232, 255, 0.22);
}

.form-group input:-webkit-autofill,
.form-group textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    box-shadow: 0 0 0 1000px #0a121e inset;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-note {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    text-align: center;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

footer {
    text-align: center;
    padding: 2rem 0 2.4rem;
    border-top: 1px solid rgba(143, 232, 255, 0.16);
}

.footer-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(100%, 280px);
    margin: 0 auto 1rem;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
    background: radial-gradient(circle at 50% 50%, rgba(90, 200, 255, 0.2), transparent 70%);
}

.footer-tools {
    margin-top: 0.5rem;
}

@media (min-width: 901px) {
    .next-step {
        position: relative;
    }

    .step-number {
        position: relative;
        z-index: 2;
    }

    .next-step:not(:last-child)::after {
        content: "";
        position: absolute;
        z-index: 1;
        top: calc(1.35rem + 20px);
        left: 100%;
        width: 1.25rem;
        height: 2px;
        background: linear-gradient(90deg, #8fe8ff, #7dffc3);
        box-shadow: 0 0 8px rgba(143, 232, 255, 0.45);
        pointer-events: none;
    }
}

@media (max-width: 1180px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        z-index: 2;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.25rem 1.25rem 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #070b14;
        border-top: 1px solid var(--line);
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(143, 232, 255, 0.12);
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
    }

    .site-logo {
        height: 50px;
    }
}

@media (max-width: 980px) {
    .hero-layout,
    .about-content,
    .next-steps-grid,
    .assessment-list {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero {
        text-align: center;
    }

    .hero-copy > p:not(.node-kicker) {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-graph {
        max-width: 560px;
        margin: 0.4rem auto 0;
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0.7rem;
    }

    .hero-wires {
        display: none;
    }

    .graph-stack {
        gap: 0.7rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.65rem 0;
    }

    .site-nav {
        gap: 0.6rem;
    }

    header .cta-button {
        flex: 0 0 auto;
        padding: 0.48rem 0.72rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .cta-label-desktop {
        display: none;
    }

    .cta-label-mobile {
        display: inline;
    }

    .tech-carousel {
        height: 300px;
    }

    .carousel-overlay h2 {
        font-size: 1.55rem;
    }

    .carousel-overlay p {
        display: none;
    }

    .carousel-overlay {
        top: 38%;
        padding: 0.9rem 1rem;
    }

    .carousel-brand-logos {
        bottom: 44px;
        gap: 0.35rem;
    }

    .brand-pill {
        padding: 0.28rem 0.45rem;
        font-size: 0.66rem;
    }

    .brand-pill img {
        width: 18px;
        height: 18px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

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

    .services-grid,
    .essential-grid {
        grid-template-columns: 1fr;
    }

    .site-logo {
        height: 46px;
    }

    .footer-logo {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2.4rem 0 2rem;
    }

    .hero-copy .cta-button {
        width: 100%;
    }

    .carousel-nav.prev { left: 10px; }
    .carousel-nav.next { right: 10px; }

    .site-logo {
        height: 42px;
    }

    .footer-logo {
        height: 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wire {
        animation: none;
        stroke-dasharray: none;
    }

    .service-card:hover,
    .essential-card:hover,
    .next-step:hover {
        transform: none;
    }
}
