/* ===========================================================================
   EdgeForge AI
   Layout: one column of full-width bands over a dark ground; each band holds a
   centred shell. The logo's own language — skewed chevrons, circuit traces,
   steel-to-electric-blue gradients — carries through the accents.
   Colours are sampled from the logo artwork, not invented.
   ======================================================================== */

:root {
    /* ground and surfaces */
    --ink-900: #070c12;
    --ink-850: #0a1017;
    --ink-800: #0d141d;
    --ink-700: #121c27;
    --ink-600: #18242f;
    --line:    #1e2c3a;
    --line-2:  #27394a;

    /* type */
    --fg:      #e9f0f7;
    --fg-2:    #aebccb;
    --fg-3:    #7c8ca0;

    /* brand, straight off the artwork */
    --blue:    #00a8f0;
    --blue-2:  #0b7fe0;
    --blue-3:  #0054b4;
    --steel:   #8d98a6;
    --graphite:#24303c;

    --grad-brand: linear-gradient(104deg, var(--blue) 0%, var(--blue-2) 48%, var(--blue-3) 100%);
    --grad-steel: linear-gradient(104deg, #c3ccd6 0%, #717e8d 60%, #3c4754 100%);
    --glow:    rgba(0, 168, 240, .30);

    --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
    --body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

    --shell:   76rem;
    --gutter:  clamp(1.25rem, 4.5vw, 3rem);
    --radius:  14px;

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* A `display` rule further down would otherwise beat the hidden attribute,
   which is how a closed menu ends up open. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--ink-850);
    color: var(--fg);
    font-family: var(--body);
    font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--blue); color: #04121c; }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--blue); color: #04121c; padding: .7rem 1.1rem;
    font-weight: 600; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ── the brand wordmark, set to echo the logo lettering ────────────────── */
.brand-word, .foot-brand {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.01em;
}
.brand-word b, .foot-brand b { font-weight: 700; color: var(--fg); }
.brand-word i, .foot-brand i {
    font-style: italic; font-weight: 700;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word em, .foot-brand em { font-style: normal; font-weight: 600; color: var(--steel); }

/* ── header ───────────────────────────────────────────────────────────── */
.site-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 16, 23, .82);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex; align-items: center; gap: 1.25rem;
    min-height: 4.4rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: auto; height: 2rem; filter: drop-shadow(0 0 14px rgba(0, 168, 240, .30)); }
.brand-word { font-size: 1.12rem; white-space: nowrap; }

.nav { display: flex; gap: 1.6rem; }
.nav a {
    position: relative; text-decoration: none; color: var(--fg-2);
    font-size: .95rem; font-weight: 500; padding-block: .3rem;
    transition: color .18s ease;
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
    background: var(--grad-brand); transition: right .24s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.menu-btn { display: none; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
    --btn-skew: -9deg;
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
    padding: .72rem 1.5rem; text-decoration: none; cursor: pointer;
    border: 0; background: none; color: var(--fg);
    transition: transform .18s ease, color .18s ease;
    isolation: isolate;        /* keeps the skewed ::before behind the label
                                  and in front of the band, not the page */
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    transform: skewX(var(--btn-skew));           /* the logo's slant */
    border-radius: 3px;
    transition: box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn-solid { color: #03121d; }
.btn-solid::before { background: var(--grad-brand); box-shadow: 0 6px 26px -8px var(--glow); }
.btn-solid:hover::before, .btn-solid:focus-visible::before { box-shadow: 0 10px 34px -6px rgba(0, 168, 240, .5); }
.btn-ghost::before { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before { border-color: var(--blue); background: rgba(0, 168, 240, .08); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 9vh, 6rem) clamp(2.5rem, 6vh, 4rem); }
.circuitry { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero-wash {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(52rem 30rem at 78% 18%, rgba(0, 168, 240, .16), transparent 70%),
        radial-gradient(40rem 28rem at 12% 92%, rgba(0, 84, 180, .16), transparent 72%),
        linear-gradient(180deg, transparent 55%, var(--ink-850) 100%);
}
.hero-inner {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--display); font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
    margin-bottom: 1.4rem;
}
.pip { width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 168, 240, .16); }

.hero h1 {
    font-size: clamp(2.5rem, 7.2vw, 4.6rem);
    line-height: 1.04; letter-spacing: -.03em; margin-bottom: 1.3rem;
}
.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }

.lede { font-size: clamp(1.06rem, 1.9vw, 1.22rem); color: var(--fg-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(100%, 30rem); filter: drop-shadow(0 18px 50px rgba(0, 120, 200, .35)); }
.art-glow {
    position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 240, .28), transparent 62%);
    filter: blur(14px);
}

.capability-strip {
    position: relative; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem;
    list-style: none; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 1.1rem 0 0;
    border-top: 1px solid var(--line);
}
.capability-strip li {
    display: flex; align-items: baseline; gap: .6rem;
    font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--fg-2);
}
.capability-strip span { font-size: .75rem; color: var(--blue); letter-spacing: .1em; }

/* ── bands ────────────────────────────────────────────────────────────── */
.band { position: relative; padding-block: clamp(3.5rem, 10vh, 7rem); }
.band-alt { background: var(--ink-800); border-block: 1px solid var(--line); }

.band-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.25rem); }
.kicker {
    font-family: var(--display); font-size: .76rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase; color: var(--blue);
    margin-bottom: .85rem;
}
.band h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; margin-bottom: .9rem; }
.band-lede { color: var(--fg-2); max-width: 54ch; }

/* ── pillars ──────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.pillar {
    position: relative; min-width: 0;
    background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.5rem 1.75rem;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}
.pillar::before {                      /* the logo's chevron, as a corner cut */
    content: ""; position: absolute; top: -1px; left: -1px; width: 4.5rem; height: 3px;
    background: var(--grad-brand); transform: skewX(-38deg); transform-origin: left;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar-top { display: flex; align-items: center; gap: .85rem; margin-bottom: .9rem; }
.pillar h3 { font-size: 1.22rem; }
.pillar p { color: var(--fg-2); }
.ico { width: 2rem; height: 2rem; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; margin: 1.15rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.45rem; font-size: .95rem; color: var(--fg-2); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .62em;
    width: .5rem; height: .5rem; transform: skewX(-20deg);
    background: var(--grad-brand);
}

/* ── systems ──────────────────────────────────────────────────────────── */
.systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.sys {
    min-width: 0; padding: 1.5rem 1.5rem 1.6rem;
    background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .22s ease;
}
.sys:hover { border-color: var(--line-2); }
.sys h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.sys h3::after {
    content: ""; display: block; width: 2.4rem; height: 2px; margin-top: .55rem;
    background: var(--grad-brand); transform: skewX(-38deg);
}
.sys p { color: var(--fg-2); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.tags li {
    font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--fg-3);
    border: 1px solid var(--line-2); border-radius: 100px; padding: .22rem .7rem;
}

/* ── why the edge ─────────────────────────────────────────────────────── */
.edge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.edge-copy { min-width: 0; display: grid; gap: 1rem; }
.edge-copy p { color: var(--fg-2); max-width: 52ch; }
.edge-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.edge-points li { background: var(--ink-800); padding: 1.15rem 1.3rem; }
.edge-points h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.edge-points p { color: var(--fg-2); font-size: .95rem; }

/* ── approach ─────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; min-width: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before {
    content: ""; position: absolute; top: -1px; left: 0; width: 2.6rem; height: 2px;
    background: var(--grad-brand); transform: skewX(-38deg); transform-origin: left;
}
.step-n { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.steps h3 { font-size: 1.08rem; margin: .45rem 0 .35rem; }
.steps p { color: var(--fg-2); font-size: .95rem; }

/* ── contact ──────────────────────────────────────────────────────────── */
.contact { background: linear-gradient(180deg, var(--ink-850), var(--ink-900)); border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-copy { min-width: 0; }
.contact-copy p { color: var(--fg-2); max-width: 48ch; margin-bottom: 1.6rem; }

.contact-list { display: grid; gap: .9rem; margin: 0 0 1.9rem; }
.contact-list div { display: grid; gap: .1rem; }
.contact-list dt { font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.contact-list dd { margin: 0; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-weight: 500; }
.contact-list a { color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(0, 168, 240, .45); transition: color .18s ease, border-color .18s ease; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--blue); border-color: var(--blue); }

.copy-btn {
    font-family: var(--body); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
    color: var(--fg-3); background: transparent; border: 1px solid var(--line-2);
    border-radius: 100px; padding: .12rem .62rem; cursor: pointer;
    transition: color .18s ease, border-color .18s ease;
}
.copy-btn:hover { color: var(--blue); border-color: var(--blue); }

.contact-card { display: grid; place-items: center; }
.contact-card img { width: min(100%, 26rem); opacity: .95; filter: drop-shadow(0 14px 46px rgba(0, 120, 200, .28)); }

/* ── footer ───────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-900); padding-block: 1.6rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; }
.foot-brand { font-size: .95rem; }
.foot-meta { color: var(--fg-3); font-size: .88rem; }

/* ── reveal on scroll; everything is visible if this never runs ───────── */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].shown { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }

/* ── narrow ───────────────────────────────────────────────────────────── */
@media (max-width: 60rem) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .hero-art img { width: min(72%, 20rem); }
    .nav, .head-cta { display: none; }
    .menu-btn {
        display: grid; gap: 4px; place-content: center; width: 2.6rem; height: 2.6rem;
        background: transparent; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
    }
    .menu-btn span { display: block; width: 1.05rem; height: 1.5px; background: var(--fg); transition: transform .2s ease, opacity .2s ease; }
    .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
    .mobile-nav { display: grid; border-top: 1px solid var(--line); background: var(--ink-800); }
    .mobile-nav a {
        padding: .9rem max(var(--gutter), env(safe-area-inset-left, 0px));
        text-decoration: none; color: var(--fg-2); border-bottom: 1px solid var(--line); font-weight: 500;
    }
    .mobile-nav a:last-child { border-bottom: 0; color: var(--blue); }
}

@media (max-width: 30rem) {
    .brand-word { font-size: 1rem; }
    .btn { width: 100%; }
    .hero-actions { gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-head, .circuitry, .hero-wash, .menu-btn, .mobile-nav { display: none !important; }
    body { background: #fff; color: #000; }
}
