/* EdgeDesk page: loads AFTER style.css, reuses its tokens, header, footer, buttons */

.ed-sec { padding: 100px 0; }
.ed-head { margin-bottom: 50px; }
.ed-head h2 { max-width: 780px; }
.ed-lede { max-width: 580px; margin-top: 18px; line-height: 1.7; opacity: .72; }
.ed-head.flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.ed-hero { flex-direction: column; justify-content: center; text-align: center; }
.ed-hero .hero-video { opacity: .22; }
.ed-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(3,12,21,.78), rgba(3,12,21,.55) 70%); }
.ed-hero .hero-overlay { z-index: 1; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%); }
.ed-hero .hero-content { max-width: 880px; }
.ed-hero h1 { max-width: none; margin: 22px auto 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.08; }
.ed-hero .hero-description { margin: 24px auto 0; max-width: 640px; }
.ed-hero .hero-buttons { justify-content: center; }
.ed-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; list-style: none; }
.ed-status li { padding: 9px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font: 600 13px "Montserrat", sans-serif; background: rgba(8,29,47,.55); backdrop-filter: blur(6px); cursor: default; transition: background .3s, color .3s, border-color .3s; }
.ed-status li:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ---------- 01 Problem ---------- */
.ed-toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--navy); }
.ed-toggle button { position: relative; z-index: 1; padding: 12px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 13px "Montserrat", sans-serif; cursor: pointer; transition: color .3s; }
.ed-toggle button.on { color: var(--navy); }
.ed-toggle button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ed-toggle i { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--yellow); transition: transform .45s cubic-bezier(.7,0,.2,1), width .45s cubic-bezier(.7,0,.2,1); }
/* Circular layout: one big circle in the middle (Without / With EdgeDesk), 8 icon circles around it.
   Everything inside is sized in em, so the whole circle scales with the width of the page. */
.ed-faults { container-type: inline-size; }
.ed-orb { position: relative; width: 72em; height: 44em; margin: 0 auto; font-size: 13px; font-size: min(15px, calc(100cqw / 72), calc((100vh - 140px) / 44)); }
.ed-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ed-orb .ring { fill: none; stroke: var(--navy); stroke-width: .45; }
.ed-orb line { stroke: rgba(8,29,47,.28); stroke-width: .12; }
.ed-orb .dot { fill: #d8453b; transition: fill .5s; }
.ed-faults.fixed .dot { fill: var(--yellow); }

/* centre circle */
.ed-core { box-sizing: border-box; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 14em; height: 14em; margin: -7em 0 0 -7em; padding: 1.6em; border-radius: 50%; background: var(--navy); text-align: center; box-shadow: 0 18px 36px rgba(8,29,47,.22); }
.ed-core span { grid-area: 1 / 1; font: 700 1.55em/1.15 "Montserrat", sans-serif; text-wrap: balance; }
.ed-core .bad { color: var(--white); }
.ed-core .good { color: var(--yellow); }

/* icon circle + heading */
.ed-node { position: absolute; width: 0; height: 0; }
.ed-node .ic { box-sizing: border-box; position: absolute; left: -2.8em; top: -2.8em; display: grid; place-items: center; width: 5.6em; height: 5.6em; border-radius: 50%; background: var(--card); color: #d8453b; box-shadow: 0 6px 16px rgba(8,29,47,.12); transition: background .5s, color .5s, transform .35s; }
.ed-node .ic i { font-size: 2.2em; }
.ed-node:hover .ic { transform: translateY(-4px); }
.ed-faults.fixed .ed-node .ic { background: var(--navy); color: var(--yellow); }
.ed-node .lb { position: absolute; top: 0; display: grid; width: 13.5em; transform: translateY(-50%); }
.ed-node.r .lb { left: 3.6em; }
.ed-node.l .lb { right: 3.6em; text-align: right; }
.ed-node h3 { margin: 0; font: 600 1.1em/1.3 "Montserrat", sans-serif; }

/* without / with: same fade as before */
.ed-orb .bad, .ed-orb .good { grid-area: 1 / 1; transition: opacity .4s, transform .4s; }
.ed-orb .good { opacity: 0; transform: translateY(12px); pointer-events: none; }
.ed-faults.fixed .ed-orb .bad { opacity: 0; transform: translateY(-12px); }
.ed-faults.fixed .ed-orb .good { opacity: 1; transform: none; pointer-events: auto; }

/* narrow screens: centre circle on top, then the 8 items in a simple list */
@container (max-width: 760px) {
    .ed-orb { width: 100%; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em 1em; font-size: 14px; }
    .ed-orb svg { display: none; }
    .ed-core { position: static; grid-column: 1 / -1; justify-self: center; width: 13em; height: 13em; margin: 0 0 .6em; }
    .ed-core span { font-size: 1.6em; }
    .ed-node { position: static; display: flex; align-items: center; gap: .9em; width: auto; height: auto; }
    .ed-node .ic { position: static; flex: none; width: 4.2em; height: 4.2em; }
    .ed-node .ic i { font-size: 1.9em; }
    .ed-node .lb { position: static; width: auto; transform: none; }
    .ed-node.l .lb { text-align: left; }
}
@container (max-width: 480px) { .ed-orb { grid-template-columns: 1fr; } }

/* Our Purpose: small text on the left, four capsules on the right */
.ed-mission { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-top: 56px; padding-top: 36px; border-top: 1px solid rgba(8,29,47,.15); }
.ed-mission h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font: 700 12px "Montserrat", sans-serif; letter-spacing: .14em; }
.ed-mission h3::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.ed-mission p { max-width: 560px; font-size: 15px; line-height: 1.7; opacity: .8; }
.ed-who { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-who span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: var(--navy); color: var(--white); font: 700 13px "Montserrat", sans-serif; cursor: default; transition: background .3s, color .3s, transform .3s, box-shadow .3s; }
.ed-who span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); transition: background .3s; }
.ed-who span:hover { background: var(--yellow); color: var(--navy); transform: translateY(-4px); box-shadow: 0 10px 20px rgba(8,29,47,.18); }
.ed-who span:hover::before { background: var(--navy); }
#problem { padding-bottom: 50px; } #core { padding-top: 50px; }

/* ---------- 02 Capabilities ---------- */
.ed-group + .ed-group { margin-top: 56px; }
.ed-group h3 { font-size: 24px; } .ed-group > p { margin: 6px 0 22px; font-size: 14px; opacity: .65; }
.ed-group.flip > h3, .ed-group.flip > p { text-align: right; }

/* Each capability is a long navy bar with a round photo on one end. The photo has a yellow outline
   and a little tail that sweeps into the bar. Remote Workspace is the mirror image (photo on the right). */
.ed-cards { --d: 150px; --ring-w: calc(var(--d) * .06); --pad-y: 18px; --pad-out: 32px; --pad-in: calc(var(--d) / 2 + 30px); --h: 20px; --t: 14px; display: grid; gap: 26px; max-width: 960px; }
.ed-group.flip .ed-cards { margin-left: auto; }

.ed-card { --ring: var(--yellow); position: relative; padding: calc(var(--d) * .1) 0; transition: transform .35s; }
.ed-card:hover { --ring: var(--navy); transform: translateY(-6px); }

.ed-card .bar { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(var(--d) * .8); margin-left: calc(var(--d) / 2); padding: var(--pad-y) var(--pad-out) var(--pad-y) var(--pad-in); border-radius: var(--radius); background: var(--navy); color: var(--white); transition: background .35s, color .35s, box-shadow .35s; }
.ed-card:hover .bar { background: var(--yellow); color: var(--navy); box-shadow: 0 14px 28px rgba(8,29,47,.22); }
.ed-card h4 { margin: 0; color: var(--yellow); font: 700 var(--h)/1.2 "Montserrat", sans-serif; transition: color .35s; }
.ed-card:hover h4 { color: var(--navy); }
.ed-card p { margin-top: 8px; font-size: var(--t); line-height: 1.6; }

/* the tail: a yellow sliver along the bottom of the bar that curves into the circle */
.ed-card .bar::after { content: ""; position: absolute; left: calc(var(--d) * .22); bottom: 0; width: calc(var(--d) * .8); height: calc(var(--d) * .3); background: var(--ring); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0, transparent 98%, #000 100%); mask-image: radial-gradient(ellipse 100% 100% at 100% 0, transparent 98%, #000 100%); transition: background .35s; }

/* the round photo */
.ed-card .pic { position: absolute; left: 0; bottom: 0; z-index: 1; box-sizing: border-box; width: var(--d); height: var(--d); border: var(--ring-w) solid var(--ring); border-radius: 50%; overflow: hidden; background: #0d2840; transition: border-color .35s; }
.ed-card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ed-card:hover .pic img { transform: scale(1.1); }

/* mirrored version */
.ed-group.flip .ed-card .pic { left: auto; right: 0; }
.ed-group.flip .ed-card .bar { margin-left: 0; margin-right: calc(var(--d) / 2); padding: var(--pad-y) var(--pad-in) var(--pad-y) var(--pad-out); }
.ed-group.flip .ed-card .bar::after { left: auto; right: calc(var(--d) * .22); -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0 0, transparent 98%, #000 100%); mask-image: radial-gradient(ellipse 100% 100% at 0 0, transparent 98%, #000 100%); }
.ed-note { margin-top: 36px; font: 600 14px "Montserrat", sans-serif; opacity: .7; }

/* ---------- 03 Testing ---------- */
.ed-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ed-tile { padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); transition: background .3s, color .3s, transform .3s; }
.ed-tile:hover { background: var(--yellow); color: var(--navy); transform: translateY(-5px); }
.ed-tile strong { display: block; font: 700 clamp(34px, 4vw, 52px)/1 "Montserrat", sans-serif; letter-spacing: -.03em; color: var(--yellow); transition: color .3s; } .ed-tile:hover strong { color: var(--navy); }
.ed-tile span { display: block; margin-top: 12px; font-size: 13px; line-height: 1.5; opacity: .78; }
.ed-tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ed-test { padding: 14px 14px 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); transition: transform .35s, box-shadow .35s; }
.ed-test:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--yellow); }
.ed-test .ph { overflow: hidden; border-radius: 12px; background: #0d2840; aspect-ratio: 16 / 9; }
.ed-test .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; } .ed-test:hover .ph img { transform: scale(1.08); }
.ed-test h3 { margin: 22px 10px 8px; font-size: 21px; }
.ed-test ul { list-style: none; margin: 0 10px; }
.ed-test li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); transition: padding .3s, background .3s; }
.ed-test li:hover { padding-left: 10px; background: rgba(243,180,41,.08); }
.ed-test li b { display: block; font: 600 14px "Montserrat", sans-serif; } .ed-test li b::before { content: "✓"; margin-right: 9px; color: var(--yellow); }
.ed-test li p { margin-top: 5px; padding-left: 22px; font-size: 13px; line-height: 1.55; opacity: .65; }
.ed-cross { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 12px 28px 12px 12px; border: 1.5px dashed rgba(243,180,41,.55); border-radius: 999px; transition: background .3s; }
.ed-cross:hover { background: rgba(243,180,41,.08); }
.ed-cross b { flex: none; padding: 11px 20px; border-radius: 999px; background: var(--yellow); color: var(--navy); font: 700 13px "Montserrat", sans-serif; white-space: nowrap; }
.ed-cross p { font-size: 15px; line-height: 1.5; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 04 Product in action ---------- */
.ed-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ed-shot:nth-child(2) { margin-top: 70px; }
.ed-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); transition: transform .5s, box-shadow .5s; }
.ed-shot:hover img { transform: translateY(-10px) rotate(-.6deg); box-shadow: 0 0 0 2px var(--yellow), 0 28px 50px rgba(8,29,47,.3); }
.ed-shot:nth-child(2):hover img { transform: translateY(-10px) rotate(.6deg); }
.ed-shot h3 { margin-top: 18px; font-size: 22px; } .ed-shot p { margin-top: 6px; font-size: 14px; opacity: .7; }

/* ---------- 05 Contact (shorter yellow box) ---------- */
#contact.contact-section { min-height: 0; padding: 64px 6%; }
#contact h2 { font-size: clamp(32px, 4.4vw, 54px); }
#contact p { margin: 18px auto 26px; }
#contact small { margin-top: 24px; }

@media (max-width: 1000px) {
    .ed-tiles { grid-template-columns: repeat(2, 1fr); }
    .ed-tests { grid-template-columns: 1fr; }
    .ed-cards { --d: 130px; }
    .ed-cross { border-radius: var(--radius); flex-direction: column; align-items: flex-start; padding: 12px 18px 18px 12px; } .ed-cross p { white-space: normal; }
    .ed-mission { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 650px) {
    .ed-sec { padding: 70px 0; } .ed-tiles, .ed-shots { grid-template-columns: 1fr; } .ed-shot:nth-child(2) { margin-top: 0; }
}
@media (max-width: 700px) {
    .ed-cards { --d: 104px; --pad-y: 12px; --pad-out: 18px; --pad-in: calc(var(--d) / 2 + 18px); --h: 16px; --t: 13px; gap: 20px; }
}
@media (max-width: 460px) {
    .ed-cards { --d: 88px; --pad-out: 14px; --pad-in: calc(var(--d) / 2 + 14px); --h: 15px; --t: 12.5px; }
}