:root {
    --bg: #f7f8f5;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #5f6878;
    --line: rgba(17, 24, 39, 0.1);
    --teal: #0f766e;
    --teal-dark: #115e59;
    --amber: #f59e0b;
    --navy: #172033;
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(247, 248, 245, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.trust-strip,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
}

.site-nav {
    gap: 24px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a,
.nav-cta,
.text-link {
    text-decoration: none;
}

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

.nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    background: #ffffff;
}

.hero-section,
.section,
.product-section,
.contact-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: 68px 0 46px;
}

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

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

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.hero-text,
.section-heading p,
.product-copy p,
.contact-section p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-text {
    max-width: 660px;
    margin: 24px 0 0;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: #ffffff;
    background: var(--teal);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.button-primary:hover {
    background: var(--teal-dark);
}

.button-secondary {
    border: 1px solid var(--line);
    background: #ffffff;
}

.product-preview {
    min-height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #101827;
    box-shadow: var(--shadow);
}

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

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.preview-layout {
    display: grid;
    grid-template-columns: 74px 1fr;
    min-height: 418px;
}

.preview-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    background: #0d1422;
}

.preview-logo,
.preview-sidebar span {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
}

.preview-logo {
    width: 36px;
    height: 36px;
    background: var(--teal);
}

.preview-sidebar span {
    width: 34px;
    height: 8px;
}

.preview-sidebar .active {
    background: var(--amber);
}

.preview-content {
    padding: 28px;
    background: linear-gradient(145deg, #f8fafc, #e8eef5);
}

.preview-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.line {
    display: block;
    height: 12px;
    border-radius: 8px;
    background: #cbd5e1;
}

.line.short {
    width: 120px;
    margin-bottom: 12px;
}

.line.title {
    width: min(280px, 42vw);
    height: 24px;
    background: #172033;
}

.status-pill {
    width: 86px;
    height: 32px;
    border-radius: 8px;
    background: rgba(15, 118, 110, 0.18);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.metric-grid article {
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.metric-grid strong,
.metric-grid span {
    display: block;
}

.metric-grid strong {
    font-size: 1.6rem;
}

.metric-grid span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.preview-chart {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 152px;
    margin-top: 28px;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
}

.preview-chart span {
    flex: 1;
    min-width: 18px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--teal), var(--amber));
}

.trust-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: min(1060px, calc(100% - 40px));
    margin: 0 auto 80px;
}

.trust-strip span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    font-size: 0.9rem;
}

.section {
    padding: 86px 0;
}

.section-heading {
    max-width: 760px;
}

.service-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.service-card,
.process-grid article,
.module-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.service-card {
    padding: 26px;
}

.card-icon,
.process-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
    font-weight: 800;
}

.service-card p,
.process-grid p,
.module-list span {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.product-section {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 34px;
    align-items: start;
    padding: 78px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
}

.product-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.product-section .eyebrow,
.text-link {
    color: #7dd3fc;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    font-weight: 800;
}

.module-list {
    display: grid;
    gap: 12px;
}

.module-list article {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.module-list strong,
.module-list span {
    display: block;
}

.module-list span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
}

.process-grid article {
    padding: 24px;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 44px;
    margin-bottom: 70px;
    padding: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.contact-section h2 {
    max-width: 820px;
}

.contact-section p {
    max-width: 720px;
    margin-bottom: 0;
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(20px, 5vw, 72px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer span:first-child {
    color: var(--ink);
    font-weight: 800;
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .hero-section,
    .product-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

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

    .product-section,
    .contact-section {
        padding: 32px;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 14px 18px;
    }

    .nav-cta {
        display: none;
    }

    .hero-section,
    .section,
    .product-section,
    .contact-section {
        width: min(100% - 28px, 1160px);
    }

    h1 {
        font-size: 2.55rem;
    }

    .product-preview {
        min-height: 380px;
    }

    .preview-layout {
        grid-template-columns: 54px 1fr;
    }

    .preview-content {
        padding: 20px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .preview-chart {
        height: 118px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Temporary construction page */
body.under-construction {
    min-height: 100vh;
    overflow-x: hidden;
}

body.under-construction > .site-header,
body.under-construction > main,
body.under-construction > .site-footer {
    display: none;
}

.construction-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(35, 140, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #050813 0%, #07101f 56%, #03050c 100%);
}

.construction-shell {
    width: min(620px, 100%);
    text-align: center;
}

.construction-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border: 3px solid #238cff;
    border-radius: 50%;
    background-image: url("assets/astra-labs-logo.png");
    background-repeat: no-repeat;
    background-size: 512px auto;
    background-position: -60px -74px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.38),
        0 0 32px rgba(35, 140, 255, 0.2);
}

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

.construction-shell h1 {
    margin: 0 auto;
    max-width: 520px;
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
    font-size: clamp(2.35rem, 7vw, 4.2rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.construction-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 10px 14px;
    color: #dbeafe;
    border: 1px solid rgba(119, 217, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.88rem;
    font-weight: 800;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #238cff;
    box-shadow: 0 0 0 6px rgba(35, 140, 255, 0.16), 0 0 22px rgba(35, 140, 255, 0.9);
}

.construction-text {
    max-width: 560px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.68;
}

.construction-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.construction-actions span {
    color: #c7d3e8;
    font-weight: 700;
}

@media (max-width: 560px) {
    .construction-page {
        padding: 22px;
    }

    .construction-logo {
        width: 150px;
        height: 150px;
        background-size: 427px auto;
        background-position: -50px -62px;
    }

    .construction-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Astra Labs brand refresh */
:root {
    --bg: #050813;
    --surface: #0c1220;
    --surface-2: #111a2d;
    --ink: #f8fbff;
    --muted: #a9b6c9;
    --line: rgba(146, 183, 255, 0.18);
    --blue: #238cff;
    --blue-soft: #5bb7ff;
    --cyan: #77d9ff;
    --navy: #07101f;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(35, 140, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #050813 0%, #07101f 44%, #050813 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(91, 183, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 183, 255, 0.055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 72%);
}

.site-header {
    padding: 14px clamp(20px, 5vw, 72px);
    background: rgba(5, 8, 19, 0.82);
    border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand {
    color: #ffffff;
    letter-spacing: 0;
}

.brand-mark {
    width: 168px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(35, 140, 255, 0.45);
    border-radius: 10px;
    background: #02050c;
    box-shadow: 0 0 26px rgba(35, 140, 255, 0.22);
}

.site-nav {
    color: #c7d3e8;
}

.site-nav a:hover,
.text-link:hover {
    color: var(--blue-soft);
}

.nav-cta,
.button-secondary {
    color: #eaf3ff;
    border-color: rgba(119, 217, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta:hover,
.button-secondary:hover {
    border-color: rgba(119, 217, 255, 0.5);
    background: rgba(35, 140, 255, 0.12);
}

.hero-section {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 54px;
    min-height: calc(100vh - 70px);
    padding-top: 62px;
}

.eyebrow {
    color: var(--cyan);
    font-weight: 900;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

h1 {
    max-width: 850px;
    font-size: clamp(2.7rem, 5.8vw, 5.85rem);
    line-height: 0.94;
}

h2 {
    max-width: 860px;
    font-size: clamp(2rem, 3.8vw, 3.65rem);
}

.hero-text,
.section-heading p,
.product-copy p,
.contact-section p {
    color: var(--muted);
}

.hero-text {
    max-width: 760px;
    font-size: 1.1rem;
}

.button {
    min-height: 50px;
    border-radius: 8px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #238cff, #0b72f0);
    box-shadow: 0 18px 38px rgba(35, 140, 255, 0.32);
}

.button-primary:hover {
    background: linear-gradient(135deg, #4aa3ff, #238cff);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-proof span,
.trust-strip span {
    color: #dbeafe;
    border: 1px solid rgba(119, 217, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.hero-proof span {
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 800;
}

.product-preview {
    min-height: 520px;
    border-color: rgba(119, 217, 255, 0.18);
    background: linear-gradient(180deg, #0b1220, #060912);
}

.preview-brand {
    display: grid;
    place-items: center;
    min-height: 176px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(35, 140, 255, 0.16), transparent 40%),
        #050813;
    border-bottom: 1px solid var(--line);
}

.preview-brand img {
    width: min(92%, 430px);
    height: auto;
    border-radius: 8px;
}

.preview-layout {
    display: block;
    min-height: auto;
}

.preview-content {
    padding: 28px;
    background: linear-gradient(180deg, #0c1220, #101827);
}

.preview-heading {
    align-items: center;
}

.preview-label {
    display: block;
    margin-bottom: 7px;
    color: var(--blue-soft);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-heading strong {
    display: block;
    max-width: 300px;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 76px;
    height: 32px;
    padding: 0 12px;
    color: #bfffe9;
    background: rgba(22, 163, 74, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.26);
    font-size: 0.78rem;
    font-weight: 900;
}

.metric-grid article {
    border-color: rgba(119, 217, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
}

.metric-grid strong {
    color: #ffffff;
    font-family: "Space Grotesk", Inter, sans-serif;
}

.metric-grid span {
    color: var(--muted);
}

.operation-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.operation-list article {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(119, 217, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.operation-list article > span {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 18px rgba(35, 140, 255, 0.7);
}

.operation-list strong,
.operation-list small {
    display: block;
}

.operation-list small {
    margin-top: 3px;
    color: var(--muted);
}

.trust-strip {
    margin-bottom: 50px;
}

.section {
    padding: 92px 0;
}

.section-heading {
    max-width: 880px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.solution-card,
.confidence-grid article,
.process-grid article,
.module-list article,
.contact-section {
    border: 1px solid rgba(119, 217, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.035)),
        var(--surface);
}

.solution-card {
    min-height: 100%;
    padding: 26px;
}

.solution-card.featured {
    border-color: rgba(35, 140, 255, 0.46);
    box-shadow: 0 24px 70px rgba(35, 140, 255, 0.12);
}

.card-icon,
.process-grid span {
    color: #ffffff;
    background: linear-gradient(135deg, #238cff, #0b72f0);
}

.solution-kicker {
    margin: 0 0 10px;
    color: var(--blue-soft);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.solution-card > p:not(.solution-kicker),
.confidence-grid p,
.process-grid p,
.module-list span {
    color: var(--muted);
}

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

.solution-card li {
    position: relative;
    padding-left: 20px;
    color: #d7e4f7;
    line-height: 1.5;
}

.solution-card li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
}

.confidence-section {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.confidence-grid article {
    padding: 26px;
}

.product-section {
    border: 1px solid rgba(119, 217, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(35, 140, 255, 0.22), transparent 38%),
        linear-gradient(180deg, #101827, #080c16);
}

.product-section .eyebrow,
.text-link {
    color: var(--cyan);
}

.text-link {
    text-decoration: none;
}

.contact-section {
    background:
        linear-gradient(135deg, rgba(35, 140, 255, 0.22), transparent 46%),
        var(--surface);
}

.site-footer {
    border-top-color: var(--line);
}

.site-footer span:first-child {
    color: #ffffff;
}

@media (max-width: 980px) {
    .hero-section,
    .solutions-grid,
    .confidence-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

    .product-preview {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .brand-mark {
        width: 132px;
        height: 38px;
    }

    .hero-section,
    .section,
    .product-section,
    .contact-section,
    .confidence-section {
        width: min(100% - 28px, 1160px);
    }

    h1 {
        font-size: 2.6rem;
    }

    .product-section,
    .contact-section {
        padding: 26px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}
