/* ==========================================================================
   Hex — Industel occupancy & environmental sensing
   --------------------------------------------------------------------------
   The hexagon is the whole design. The product is a hexagonal puck and the
   logo's "e" is a hexagon, so the shape earns its place everywhere: the
   background lattice, the feature tiles, the 3D model. Nothing here is a
   decorative flourish borrowed from somewhere else.

   Colour is taken FROM the assets rather than invented alongside them:
   the navy is sampled from the logo, the cyan and green from the isometric
   office illustration, so the page and the artwork agree.
   ========================================================================== */

:root {
    /* Sampled from the brand assets */
    --ink:      #03006d;   /* logo navy */
    --abyss:    #01002e;   /* deeper, for gradient floor */
    --signal:   #3df083;   /* counting-cone green — energy, used sparingly */
    --sky:      #1d87b8;   /* isometric floor cyan */
    --sky-soft: #7fc5e6;
    --bloom:    #f2afd2;   /* occupancy-cone pink */

    /* Neutrals biased toward the navy, so nothing reads as unconsidered grey */
    --paper:    #f6f7fb;
    --paper-2:  #eceef7;
    --haze:     #dedcef;
    --slate:    #4a4a6a;
    --slate-2:  #6f6f8f;

    --shell:    #ffffff;
    --radius:   14px;
    --maxw:     1180px;

    --f-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --f-body:    'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --f-data:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1;  letter-spacing: -0.02em; }
h3 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; max-width: 68ch; }

.eyebrow {
    font-family: var(--f-data);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 14px;
}
.dark .eyebrow { color: var(--signal); }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--slate); }
.dark .lede { color: rgba(255,255,255,.76); }

/* ---------- the hexagonal lattice, drawn once and reused ---------------- */
.hexfield { position: relative; overflow: hidden; }
.hexfield::before {
    content: '';
    position: absolute; inset: -10%;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='56' height='97'>\
<path d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'/>\
<path d='M28 49 L56 65 L56 97 L28 113 L0 97 L0 65 Z' fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1'/>\
</svg>");
    pointer-events: none;
}

/* ---------- header ------------------------------------------------------ */
.site-head {
    position: sticky; top: 0; z-index: 60;
    background: rgba(3,0,109,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 25px; }
.brand span {
    font-family: var(--f-data); font-size: .68rem; letter-spacing: .19em;
    text-transform: uppercase; color: rgba(255,255,255,.55);
    padding-left: 11px; border-left: 1px solid rgba(255,255,255,.2);
}
.nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav a {
    color: rgba(255,255,255,.8); text-decoration: none; font-size: .93rem;
    padding: 6px 0; border-bottom: 1.5px solid transparent; transition: .18s;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: var(--signal); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--f-display); font-weight: 600; font-size: .93rem;
    padding: 11px 21px; border-radius: 999px; text-decoration: none;
    border: 1.5px solid transparent; cursor: pointer; transition: .18s;
}
.btn-go     { background: var(--signal); color: #00251a; }
.btn-go:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(61,240,131,.32); }
.btn-ghost  { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-solid  { background: var(--ink); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(3,0,109,.26); }

/* ---------- sections ---------------------------------------------------- */
section { padding: clamp(64px, 9vw, 118px) 0; }
.dark {
    background: linear-gradient(168deg, var(--ink) 0%, var(--abyss) 100%);
    color: #fff;
}
.dark h2, .dark h3 { color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 52px; }

/* ---------- hero -------------------------------------------------------- */
.hero { padding-top: clamp(52px, 7vw, 92px); padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.hero h1 span { color: var(--signal); }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 40px; }

/* Live-looking counters. The numbers are illustrative, and the markup says so. */
.tickers { display: flex; gap: 30px; flex-wrap: wrap; }
.tick-n {
    font-family: var(--f-data); font-size: 1.85rem; font-weight: 600;
    color: var(--signal); line-height: 1; font-variant-numeric: tabular-nums;
}
.tick-l {
    font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-top: 7px;
}

.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); }
.hero-art::after {          /* a soft hex glow behind the illustration */
    content: ''; position: absolute; inset: -14% -8% -8%;
    background: radial-gradient(58% 52% at 52% 46%, rgba(61,240,131,.17), transparent 68%);
    z-index: -1;
}

.scroll-cue {
    display: flex; justify-content: center; padding: 40px 0 8px;
    color: rgba(255,255,255,.4); font-family: var(--f-data);
    font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue span { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity:.45 } 50% { transform: translateY(6px); opacity:.95 } }

/* ---------- capability tiles -------------------------------------------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.cap {
    background: var(--shell); border: 1px solid var(--haze);
    border-radius: var(--radius); padding: 28px 25px 26px;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cap:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(3,0,109,.11); border-color: var(--sky-soft); }
.cap h3 { margin-bottom: 9px; }
.cap p  { font-size: .95rem; color: var(--slate); margin: 0; }

/* The hexagonal icon plate — the motif at small scale */
.cap-ico {
    width: 50px; height: 56px; margin-bottom: 18px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--ink), #2a2496);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.cap-ico svg { width: 23px; height: 23px; stroke: var(--signal); fill: none; stroke-width: 1.9; }

/* ---------- how it works ------------------------------------------------ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.step {
    position: relative; padding: 26px 22px;
    border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
    background: rgba(255,255,255,.045);
}
.step-n {
    font-family: var(--f-data); font-size: .72rem; letter-spacing: .16em;
    color: var(--signal); margin-bottom: 12px;
}
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p  { font-size: .9rem; color: rgba(255,255,255,.68); margin: 0; }

/* ---------- 3D sensor bay ----------------------------------------------- */
.bay { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .bay { grid-template-columns: 1fr; gap: 40px; } }

.stage {
    position: relative; height: 430px;
    display: grid; place-items: center;
    cursor: grab;
    touch-action: none;                /* so a drag rotates rather than scrolls */
    user-select: none;
}
.stage:active { cursor: grabbing; }
.stage::after {                        /* the shadow the unit sits above */
    content: ''; position: absolute; bottom: 54px; width: 230px; height: 26px;
    background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%);
    filter: blur(9px);
}

#turn { width: 360px; height: 360px; max-width: 84%; user-select: none; -webkit-user-drag: none; }

.stage-hint {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    font-family: var(--f-data); font-size: .68rem; letter-spacing: .16em;
    text-transform: uppercase; color: rgba(255,255,255,.42);
    display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.stage-hint::before { content: '↔'; font-size: 1rem; color: var(--signal); }

.spec { list-style: none; margin: 26px 0 0; padding: 0; }
.spec li {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.11);
    font-size: .94rem;
}
.spec span:first-child { color: rgba(255,255,255,.6); }
.spec span:last-child  { font-family: var(--f-data); color: #fff; text-align: right; }

.variants { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.variant {
    font-family: var(--f-data); font-size: .74rem; letter-spacing: .07em;
    padding: 7px 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.8);
    background: none; cursor: pointer; transition: .18s;
}
.variant:hover { border-color: var(--signal); color: var(--signal); }
.variant[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #00251a; }

/* ---------- dashboards -------------------------------------------------- */
.boards { display: grid; grid-template-columns: 1.32fr 1fr; gap: 22px; }
@media (max-width: 940px) { .boards { grid-template-columns: 1fr; } }
.board {
    background: var(--shell); border: 1px solid var(--haze);
    border-radius: var(--radius); padding: 22px 24px 20px; overflow: hidden;
}
.board-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.board-head h3 { font-size: 1rem; }
.board-head .tag {
    margin-left: auto; font-family: var(--f-data); font-size: .68rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2);
}
.board-sub { font-size: .83rem; color: var(--slate-2); margin: 0 0 16px; }
.board .scroller { overflow-x: auto; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .78rem; color: var(--slate); }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 6px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px,1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--paper-2); border-radius: 9px; padding: 13px 14px; }
.stat b { display: block; font-family: var(--f-data); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.stat span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }

/* ---------- datasheets -------------------------------------------------- */
.sheets { display: grid; grid-template-columns: repeat(auto-fit, minmax(246px,1fr)); gap: 18px; }
.sheet {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--shell); border: 1px solid var(--haze);
    border-radius: var(--radius); padding: 24px 22px; text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sheet:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(3,0,109,.11); border-color: var(--sky-soft); }
.sheet .kind {
    font-family: var(--f-data); font-size: .66rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--sky);
}
.sheet h3 { font-size: 1.02rem; }
.sheet p { font-size: .88rem; color: var(--slate); margin: 0; }
.sheet .go { margin-top: auto; padding-top: 12px; font-size: .84rem; font-weight: 600; color: var(--ink); }
.sheet .go::after { content: ' ↓'; }

/* ---------- gallery ----------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--haze); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s; }
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
    background: linear-gradient(transparent, rgba(1,0,46,.9));
    color: #fff; font-size: .88rem;
}

/* ---------- closing ----------------------------------------------------- */
.close-in { text-align: center; max-width: 660px; margin: 0 auto; }
.close-in .hero-cta { justify-content: center; }

.site-foot { background: var(--abyss); color: rgba(255,255,255,.55); padding: 42px 0; font-size: .87rem; }
.site-foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-foot img { height: 20px; opacity: .75; }
.site-foot .right { margin-left: auto; display: flex; gap: 20px; }
.site-foot a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-foot a:hover { color: var(--signal); }

/* ---------- motion & focus --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue span { animation: none; }
    .cap:hover, .sheet:hover, .btn:hover { transform: none; }
    .shot:hover img { transform: none; }
}

/* ---------- privacy / GDPR ---------------------------------------------- */
#privacy { background: var(--ink); color: #fff; }
#privacy h2 { color: #fff; }
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
@media (max-width: 940px) { .privacy-band { grid-template-columns: 1fr; gap: 32px; } }

.privacy-list { list-style: none; margin: 0; padding: 0; }
.privacy-list li {
    position: relative;
    padding: 15px 0 15px 38px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .96rem; color: rgba(255,255,255,.74);
}
.privacy-list li:last-child { border-bottom: 0; }
.privacy-list b { color: #fff; font-weight: 600; }
/* A tick rather than a bullet: each line is a guarantee, not an item in a list. */
.privacy-list li::before {
    content: ''; position: absolute; left: 4px; top: 21px;
    width: 15px; height: 8px;
    border-left: 2.4px solid var(--signal); border-bottom: 2.4px solid var(--signal);
    transform: rotate(-45deg);
}
