/* =====================================================================
   Devix Technology Solutions (1DTS) — Corporate Website
   Palette sampled from the 1DTS logo: navy, blue, teal, green.
   ===================================================================== */

:root {
    /* Brand palette (from the logo) */
    --navy-900: #06152B;
    --navy-800: #0C2340;
    --navy-700: #123252;
    --blue-700: #227388;
    --teal-600: #1E9AAB;
    --teal-500: #29ABB8;
    --teal-400: #4FC3CC;
    --green-600:#3FA37D;
    --green-500:#4FB98D;
    --green-400:#66C293;
    --amber-600:#B45309;

    /* Neutrals */
    --ink:       #0C2340;
    --bg:        #F7FAFC;
    --bg-tint:   #EDF4F7;
    --surface:   #FFFFFF;
    --surface-2: #F3F7FA;
    --border:    rgba(12,35,64,.10);
    --border-2:  rgba(12,35,64,.18);

    --text:   #1E3348;
    --text-2: #3D5266;
    --text-3: #64798F;
    --muted:  #93A6B8;

    --primary:       var(--teal-600);
    --primary-hover: #16808F;
    --primary-soft:  #E6F5F8;
    --green-soft:    #EAF7F1;
    --amber-soft:    #FEF3E2;

    /* Gradients */
    --gradient:        linear-gradient(120deg, #0C2340 0%, #227388 34%, #29ABB8 66%, #66C293 100%);
    --gradient-accent: linear-gradient(120deg, #227388 0%, #29ABB8 55%, #66C293 100%);
    --gradient-deep:   linear-gradient(135deg, #0C2340 0%, #227388 100%);
    --gradient-green:  linear-gradient(135deg, #29ABB8 0%, #66C293 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(12,35,64,.07), 0 1px 2px rgba(12,35,64,.04);
    --shadow-md: 0 8px 24px rgba(12,35,64,.08), 0 2px 6px rgba(12,35,64,.05);
    --shadow-lg: 0 18px 40px rgba(12,35,64,.11), 0 6px 14px rgba(12,35,64,.06);
    --shadow-xl: 0 32px 70px rgba(12,35,64,.16), 0 12px 24px rgba(12,35,64,.08);

    /* Geometry */
    --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
    --nav-h: 84px;
    --container: 1320px;
    --pad: clamp(20px, 4vw, 56px);

    --ease: cubic-bezier(.4,0,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Sora', 'Inter', sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

@media (min-width: 1500px) { :root { --container: 1440px; } }
@media (min-width: 1750px) { :root { --container: 1560px; } }
@media (min-width: 2000px) { :root { --container: 1660px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); }
body {
    font-family: var(--font);
    background: var(--bg); color: var(--text); line-height: 1.65;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4,h5 { font-family: var(--display); line-height: 1.14; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.muted { color: var(--text-3); }
.hide-sm { display: inline; }
.grad { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gradient-accent); z-index: 1100; transition: width .1s linear; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .85rem 1.4rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
    cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(30,154,171,.28); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,154,171,.38); }
.btn--primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--blue-700); }
.btn--light:hover { color: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Eyebrows ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .5rem 1rem; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--border);
    font-size: .82rem; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient-accent); }
.section__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: .9rem; }
.section__eyebrow.is-green { color: #2C7F60; }

/* ---------- Floating pill navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: var(--nav-h); display: flex; align-items: center; padding-inline: var(--pad); }
.nav__bar {
    width: 100%; max-width: var(--container); margin: 0 auto; height: 62px;
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    padding: 0 .75rem 0 1rem; border-radius: var(--r-pill);
    background: rgba(255,255,255,.74); backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 6px 24px rgba(12,35,64,.07);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
body.scrolled .nav__bar { background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 42px; background: url('logo.png') center/contain no-repeat; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.06rem; color: var(--ink); font-family: var(--display); letter-spacing: -.02em; }
.brand__sub { font-size: .6rem; text-transform: uppercase; letter-spacing: .13em; color: var(--text-3); font-weight: 600; }
.brand__name--light { color: #fff; }

.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__link { padding: .55rem .85rem; border-radius: var(--r-pill); font-weight: 500; color: var(--text-2); font-size: .91rem; }
.nav__link:hover { color: var(--ink); background: rgba(30,154,171,.09); }
.nav__link.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 44px) 0 64px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: transform .3s var(--ease-out); }
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--1 { width: 520px; height: 520px; top: -130px; left: -90px; background: radial-gradient(circle, #4FC3CC, transparent 65%); animation: float1 16s var(--ease) infinite; }
.blob--2 { width: 480px; height: 480px; top: -60px; right: -70px; background: radial-gradient(circle, #66C293, transparent 65%); animation: float2 19s var(--ease) infinite; }
.blob--3 { width: 460px; height: 460px; bottom: -180px; left: 40%; background: radial-gradient(circle, #7FB3C9, transparent 65%); animation: float1 22s var(--ease) infinite reverse; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(12,35,64,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(12,35,64,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.1); } }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.9rem); font-weight: 800; margin: 1.2rem 0 1.1rem; letter-spacing: -.035em; }
.hero__lede { font-size: clamp(1.02rem, .96rem + .42vw, 1.2rem); color: var(--text-2); max-width: 60ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2rem; font-size: .87rem; color: var(--text-3); }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.hero__trust i.is-teal { background: var(--teal-500); }
.hero__trust i.is-blue { background: var(--blue-700); }

/* DataMatrix panel */
.dm-stage { position: relative; }
.dm-card { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 26px; }
.dm-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dm-card__head b { font-size: .93rem; font-weight: 600; color: var(--ink); }
.dm-card__head span { font-family: var(--mono); font-size: .7rem; color: #1B7C8B; background: var(--primary-soft); padding: .28rem .6rem; border-radius: var(--r-pill); }
.dm { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; width: 100%; max-width: 280px; aspect-ratio: 1/1; margin: 0 auto; }
.dm i { border-radius: 1px; opacity: 0; transform: scale(.4); }
.dm i.on { background: var(--navy-800); }
.dm i.acc { background: var(--green-500); }
.dm i.acc2 { background: var(--teal-500); }
.dm.render i { animation: cell .45s var(--ease) forwards; }
@keyframes cell { to { opacity: 1; transform: scale(1); } }
.dm-card__foot { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.dm-card__foot dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .8rem; }
.dm-card__foot dt { color: var(--muted); font-weight: 500; }
.dm-card__foot dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.dm-str { margin: 14px 0 0; font-family: var(--mono); font-size: .73rem; color: var(--text-3); word-break: break-all; line-height: 1.75; background: var(--surface-2); border-radius: var(--r-sm); padding: .6rem .7rem; }
.dm-str b { color: var(--primary); font-weight: 600; }
.chip-fly { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-radius: var(--r-pill); padding: .45rem .85rem; font-size: .78rem; font-weight: 600; color: var(--ink); white-space: nowrap; animation: floaty 6s var(--ease) infinite; }
.chip-fly i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); }
.chip-fly--1 { top: 4%; left: -8%; animation-delay: .2s; }
.chip-fly--2 { top: 45%; right: -6%; animation-delay: 1.4s; }
.chip-fly--2 i { background: var(--teal-500); }
.chip-fly--3 { bottom: 6%; left: -5%; animation-delay: 2.6s; }
.chip-fly--3 i { background: var(--blue-700); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stats strip ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px,1.4vw,22px); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px,2vw,28px); box-shadow: var(--shadow-md); text-align: center; }
.stat__value { font-family: var(--display); font-size: clamp(1.5rem,1.1rem + 1.2vw,2.2rem); font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: .87rem; color: var(--text-3); margin-top: .25rem; }

/* ---------- Tagline strip ---------- */
.strip { position: relative; background: var(--navy-800); overflow: hidden; margin-top: clamp(3rem,5vw,4.5rem); }
.strip::before { content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: .9; }
.strip__track { position: relative; display: flex; white-space: nowrap; padding: 15px 0; animation: slide 46s linear infinite; }
.strip__track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: .84rem; font-weight: 500; color: rgba(255,255,255,.9); }
.strip__track em { font-style: normal; color: rgba(255,255,255,.45); }
.strip__track b { font-weight: 700; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 6vw, 6.5rem) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 800px; margin: 0 auto clamp(2.2rem,4vw,3.2rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__title { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.7rem); font-weight: 800; margin-bottom: .85rem; }
.section__lede { font-size: clamp(1rem,.96rem + .32vw,1.15rem); color: var(--text-2); margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(2rem,3vw,2.8rem); }
.head-row .section__head { margin: 0; text-align: left; max-width: 64ch; }
.sub-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .6rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,1.6vw,24px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px,1.6vw,24px); }
.vcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px,2.2vw,32px); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); overflow: hidden; }
.section--surface .vcard { background: var(--bg); }
.vcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(41,171,184,.10), transparent 60%); }
.vcard:hover::after { opacity: 1; }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.icon-tile { width: 54px; height: 54px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--gradient-deep); box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.is-teal { background: var(--gradient-accent); }
.icon-tile.is-green { background: var(--gradient-green); }
.vcard h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.vcard p { color: var(--text-3); font-size: .95rem; margin: 0; }

.pull { border-left: 4px solid var(--green-500); background: var(--green-soft); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 22px; margin: 1.6rem 0; font-weight: 600; color: var(--navy-800); }
.pull--teal { border-left-color: var(--teal-500); background: var(--primary-soft); }
.prose { max-width: 78ch; margin: 0 auto; }
.prose p { color: var(--text-2); }

/* ---------- Ecosystem ---------- */
.eco { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(20px,2.4vw,32px); margin-top: 2rem; }
.section--surface .eco { background: var(--bg); }
.eco figcaption { text-align: center; color: var(--text-3); font-size: .92rem; margin-top: 1rem; font-weight: 500; }

/* ---------- Checklist ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.checks li { background: var(--surface); padding: 14px 20px; display: flex; align-items: center; gap: .7rem; font-size: .93rem; color: var(--text-2); }
.section--surface .checks li { background: var(--bg); }
.checks svg { width: 16px; height: 16px; color: var(--green-600); flex: 0 0 auto; }

/* ---------- Gradient band ---------- */
.band { position: relative; background: var(--gradient); border-radius: var(--r-xl); padding: clamp(30px,3.4vw,52px); color: #fff; box-shadow: var(--shadow-xl); overflow: hidden; }
.band::before { content: ""; position: absolute; top: -110px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.08); }
.band::after { content: ""; position: absolute; bottom: -150px; left: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.05); }
.band__in { position: relative; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.88); }
.band .eyebrow { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.2); color: #fff; box-shadow: none; }
.band .eyebrow__dot { background: #fff; }
.band__top { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px,3vw,44px); align-items: end; }
.band__top h2 { font-size: clamp(1.5rem,1.2rem + 1.2vw,2.1rem); max-width: 22ch; }
.band__top p { max-width: 60ch; margin: .9rem 0 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 2.2rem; }
.metric { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-md); padding: 18px 14px; text-align: center; }
.metric b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: #fff; }
.metric span { display: block; font-size: .74rem; color: rgba(255,255,255,.85); margin-top: 4px; line-height: 1.4; }

/* ---------- Programs ---------- */
.program { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(24px,2.4vw,34px); margin-bottom: 20px; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.section--tint .program, .section--surface .program { background: var(--surface); }
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 1rem; }
.program__n { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--gradient-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.2rem; font-weight: 800; }
.program__head h3 { font-size: 1.32rem; }
.program__head p { margin: .3rem 0 0; color: var(--text-3); font-size: .95rem; }
.program__intro { color: var(--text-2); font-size: .96rem; }
.program__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,2.4vw,34px); border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: .4rem; }
.program__cols h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .8rem; font-family: var(--font); }
.program__cols ul { display: grid; gap: .5rem; }
.program__cols li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--text-2); }
.program__cols li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: var(--teal-400); }
.program__cols .is-deliv li::before { background: var(--green-400); }

/* ---------- Pipeline ---------- */
.pipe-bar { height: 5px; border-radius: var(--r-pill); background: var(--gradient); margin: 1.2rem 0 0; }
.pipe { display: grid; grid-template-columns: repeat(8, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 0; }
.stage { padding: 22px 16px; border-right: 1px solid var(--border); transition: background .2s var(--ease); }
.stage:last-child { border-right: 0; }
.stage:hover { background: var(--primary-soft); }
.stage__n { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.stage h4 { font-size: .89rem; margin-bottom: .35rem; font-family: var(--font); font-weight: 700; }
.stage p { margin: 0; font-size: .79rem; color: var(--text-3); line-height: 1.5; }

.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1.2rem; }
.seg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 18px; display: flex; align-items: center; gap: .7rem; font-size: .91rem; font-weight: 500; color: var(--text-2); }
.seg i { width: 9px; height: 9px; border-radius: 3px; background: var(--teal-500); flex: 0 0 auto; }
.seg:nth-child(2) i { background: var(--blue-700); }
.seg:nth-child(3) i { background: var(--green-500); }
.seg:nth-child(4) i { background: var(--navy-700); }
.seg:nth-child(5) i { background: var(--teal-400); }
.seg:nth-child(6) i { background: var(--green-400); }

/* ---------- Experience ---------- */
.exp { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal-500); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); }
.exp h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.exp p { margin: 0; font-size: .92rem; color: var(--text-3); }
.grid-3 > .exp:nth-child(2) { border-left-color: var(--blue-700); }
.grid-3 > .exp:nth-child(3) { border-left-color: var(--green-500); }

/* ---------- Components + matrix ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px,1.4vw,18px); }
.comp { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.section--surface .comp { background: var(--bg); }
.comp:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.comp__id { display: inline-block; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; color: #fff; background: var(--navy-800); padding: .24rem .5rem; border-radius: 6px; margin-bottom: .8rem; }
.comp h3 { font-size: 1rem; margin-bottom: .5rem; }
.comp p { font-size: .87rem; color: var(--text-3); margin-bottom: .9rem; }
.comp__used { font-size: .74rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: .28rem .6rem; border-radius: var(--r-pill); display: inline-block; }
.comp--note { background: var(--gradient); border: 0; display: flex; flex-direction: column; justify-content: center; }
.comp--note h3 { color: #fff; font-size: 1.02rem; }
.comp--note p { color: rgba(255,255,255,.86); margin: .5rem 0 0; }

.mx-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 1.4rem; }
.section--surface .mx-card { background: var(--bg); }
.mx-scroll { overflow-x: auto; }
table.mx { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
table.mx thead th { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 14px 10px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--navy-800); letter-spacing: .05em; font-family: var(--font); }
table.mx thead th small { display: block; font-size: .67rem; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
table.mx thead th:first-child, table.mx tbody td:first-child, table.mx tfoot td:first-child { text-align: left; padding-left: 22px; }
table.mx tbody td { border-bottom: 1px solid var(--border); padding: 12px 10px; text-align: center; }
table.mx tbody td:first-child { color: var(--ink); font-weight: 600; }
table.mx tbody tr { transition: background .15s var(--ease); }
table.mx tbody tr:hover { background: var(--surface-2); }
table.mx tfoot td { padding: 14px 10px; text-align: center; font-weight: 700; color: var(--navy-800); border-top: 2px solid var(--border-2); }
table.mx tfoot td:first-child { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.on-dot { display: inline-block; width: 22px; height: 10px; border-radius: var(--r-pill); background: var(--gradient-accent); }
.off-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); opacity: .55; }

/* ---------- Products ---------- */
.product { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px,2vw,28px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .75rem; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease); }
.section--surface .product { background: var(--bg); }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gradient-accent); opacity: 0; transition: opacity .2s var(--ease); }
.product:hover::before { opacity: 1; }
.product::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(41,171,184,.09), transparent 60%); }
.product:hover::after { opacity: 1; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-400); }
.product__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.product h3 { font-size: 1.15rem; }
.product p { color: var(--text-3); font-size: .93rem; margin: 0; }
.product__link { margin-top: auto; font-weight: 600; font-size: .89rem; position: relative; z-index: 1; }
.badge { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--r-pill); white-space: nowrap; background: var(--bg-tint); color: var(--text-3); }
.badge--live { background: var(--green-soft); color: #2C7F60; }
.badge--beta { background: var(--amber-soft); color: var(--amber-600); }
.badge--dev { background: var(--primary-soft); color: var(--primary); }

/* ---------- Industries ---------- */
.inds { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ind { display: inline-flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .65rem 1.25rem; font-size: .95rem; font-weight: 600; color: var(--navy-800); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.ind:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ind svg { width: 17px; height: 17px; color: var(--primary); }

/* ---------- News slider ---------- */
.slider { position: relative; }
.slides { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 22px; -ms-overflow-style: none; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 40px)/3); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.section--surface .slide { background: var(--bg); }
.slide:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.slide__img { position: relative; aspect-ratio: 16/9; background: var(--gradient); overflow: hidden; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.slide:hover .slide__img img { transform: scale(1.05); }
.slide__kind { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--navy-800); font-size: .67rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }
.slide__body { padding: 20px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.slide__meta { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); font-weight: 500; }
.slide__body h3 { font-size: 1rem; line-height: 1.42; }
.slide__body p { font-size: .88rem; color: var(--text-3); margin: 0; }
.slide__more { margin-top: auto; font-weight: 600; font-size: .86rem; }
.slider__ctl { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 7px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--border-2); border: 0; padding: 0; cursor: pointer; transition: width .25s var(--ease), background .25s var(--ease); }
.dot.on { width: 26px; background: var(--primary); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-2); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s var(--ease); }
.arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.arrow svg { width: 17px; height: 17px; }

/* ---------- Closing ---------- */
.closing { margin-top: 1.5rem; background: var(--gradient); border-radius: var(--r-xl); padding: clamp(28px,3.2vw,42px); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.closing p { margin: 0; font-family: var(--display); font-size: clamp(1.1rem,1rem + 1vw,1.55rem); font-weight: 700; letter-spacing: -.02em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.contact-lines { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-top: 1.6rem; box-shadow: var(--shadow-sm); }
.cline { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: .94rem; }
.cline:last-child { border-bottom: 0; }
.cline span { color: var(--muted); font-weight: 500; font-size: .82rem; }
.cline p { margin: 0; color: var(--ink); font-weight: 500; }
.cline a { font-weight: 600; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px,2.6vw,36px); box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.field label span { color: var(--teal-600); }
.field input, .field select, .field textarea {
    width: 100%; background: var(--surface); border: 1.5px solid var(--border-2); border-radius: var(--r-md);
    padding: .8rem 1rem; color: var(--ink); font-family: var(--font); font-size: .95rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.alert { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-radius: var(--r-md); font-size: .92rem; font-weight: 500; margin-bottom: 1.1rem; }
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; }
.alert--success { background: var(--green-soft); color: #226E52; border: 1px solid rgba(63,163,125,.3); }
.alert--error { background: #FDECEC; color: #9B2C2C; border: 1px solid rgba(155,44,44,.2); }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: clamp(3rem,5vw,4rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px,3vw,40px); }
.footer__brand p { color: rgba(255,255,255,.6); font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 38ch; }
.footer__brand .brand__sub { color: rgba(255,255,255,.5); }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s var(--ease); }
.footer__social a:hover { background: var(--teal-500); transform: translateY(-2px); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h5 { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: 1rem; font-family: var(--font); }
.footer__col a { display: block; color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: .6rem; }
.footer__col a:hover { color: var(--teal-400); }
.footer__bottom { margin-top: clamp(2.4rem,4vw,3.4rem); border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: .86rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
    .slide { flex: 0 0 calc((100% - 20px)/2); }
    .pipe { grid-template-columns: repeat(4, 1fr); }
    .stage { border-bottom: 1px solid var(--border); }
}
@media (max-width: 1024px) {
    :root { --nav-h: 76px; }
    .nav__links {
        position: fixed; inset: calc(var(--nav-h)) var(--pad) auto; flex-direction: column; align-items: stretch; gap: .15rem;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
        box-shadow: var(--shadow-lg); padding: .75rem; display: none; max-height: calc(100vh - var(--nav-h) - 20px); overflow: auto;
    }
    .nav__links.open { display: flex; }
    .nav__link { padding: .8rem 1rem; border-radius: var(--r-md); }
    .nav__cta { display: none; }
    .nav__toggle { display: flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 44px; }
    .chip-fly { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .checks, .segs { grid-template-columns: 1fr; }
    .program__cols { grid-template-columns: 1fr; }
    .band__top { grid-template-columns: 1fr; align-items: start; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .pipe { grid-template-columns: repeat(2, 1fr); }
    .comp-grid { grid-template-columns: 1fr; }
    .slide { flex: 0 0 86%; }
    .field-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hide-sm { display: none; }
    .head-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slides { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .dm i { opacity: 1; transform: none; }
}
