/* =================================================================
   Enhanced365 Solutions — Design System
   A developer-led Business Central consultancy.
   Signature: code-editor motif (mono labels, AL snippets) over a
   Business Central blue palette.
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — matched to the Enhanced365 logo */
  --ink:        #082541;   /* deep navy foundation */
  --ink-2:      #0C3158;   /* raised navy panels */
  --ink-3:      #134172;   /* hover navy */
  --bc:         #0A6CD4;   /* signature action blue */
  --bc-deep:    #004080;   /* brand deep navy-blue */
  --cyan:       #00A0E0;   /* brand azure accent */
  --paper:      #F6F8FC;   /* cool off-white surface */
  --white:      #FFFFFF;
  --slate:      #56688A;   /* secondary text on light */
  --heading:    #0B1A2F;
  --body:       #3A4A63;
  --line:       #E4EAF3;   /* hairline borders */
  --line-soft:  #EEF2F9;

  /* On-dark text */
  --on-dark-h:  #FFFFFF;
  --on-dark-b:  #A9BAD4;
  --on-dark-line: rgba(255,255,255,.10);

  /* Type */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;

  /* Spacing & shape */
  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,26,47,.06), 0 2px 8px rgba(11,26,47,.04);
  --shadow-md: 0 6px 24px rgba(11,26,47,.08), 0 2px 8px rgba(11,26,47,.04);
  --shadow-lg: 0 24px 60px rgba(11,26,47,.16);
  --shadow-blue: 0 18px 40px rgba(10,108,212,.28);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 100px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body-font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  font-family: var(--display);
  color: var(--heading);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { text-wrap: pretty; }

/* Eyebrow / kicker label */
.eyebrow {
  font-family: var(--body-font);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bc);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .5ch;
}
.eyebrow.on-dark { color: var(--cyan); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--slate); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.ink-bg { background: var(--ink); color: var(--on-dark-b); position: relative; }
.ink-bg h1,.ink-bg h2,.ink-bg h3,.ink-bg h4 { color: var(--on-dark-h); }
.paper-bg { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: .55ch;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  font-weight: 600; font-size: .96rem;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--bc); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--bc-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bc); color: var(--bc); transform: translateY(-2px); }
.btn--ghost.on-dark { color: #fff; border-color: var(--on-dark-line); }
.btn--ghost.on-dark:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand svg { height: 30px; width: auto; }
.brand img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-links a {
  padding: 8px 10px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--body); white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--bc); background: var(--paper); }
.nav-links a.active { color: var(--bc); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 8px; color: var(--heading); }
.nav-toggle:hover { background: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px,7vw,84px); padding-bottom: clamp(56px,8vw,108px);
  background: linear-gradient(135deg, #06223C 0%, #004080 56%, #0A62B4 100%); color: var(--on-dark-b); }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 70% at 85% 15%, rgba(0,160,224,.28), transparent 60%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hero .code-card { border-color: rgba(255,255,255,.14); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.hero h1 { margin: 18px 0 0; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--bc), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.hero-lede { margin-top: 22px; font-size: 1.18rem; color: #C6DAF1; max-width: 38ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 42px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); display: flex; gap: 0; }
.hero-trust .stat { flex: 1; padding-right: 18px; }
.hero-trust .stat + .stat { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-trust .stat .n {
  display: inline-block; font-family: var(--display); font-weight: 700; white-space: nowrap;
  font-size: clamp(1.85rem, 2.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(115deg, #FFFFFF 12%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .1em;
}
.hero-trust .stat .l { font-size: .86rem; color: #A8C0DD; margin-top: 4px; line-height: 1.3; }
.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: -10% -20% -10% 0; background: radial-gradient(60% 60% at 60% 40%, rgba(0,160,224,.18), transparent 70%); z-index: -1; }

/* Code card signature element */
.code-card {
  background: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--ink-3);
  font-family: var(--mono); font-size: .82rem; line-height: 1.7;
}
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--on-dark-line); background: var(--ink-2); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1){ background:#FF5F57; } .code-card .bar i:nth-child(2){ background:#FEBC2E; } .code-card .bar i:nth-child(3){ background:#28C840; }
.code-card .bar span { margin-left: 8px; color: var(--on-dark-b); font-size: .76rem; }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; color: #C7D5EC; }
.code-card .kw { color: #6FB6FF; } .code-card .ty { color: #57D9C0; } .code-card .st { color: #E6B673; } .code-card .cm { color: #5C7299; } .code-card .fn { color: #C792EA; }

/* ---------- Logo strip ---------- */
.logostrip { border-block: 1px solid var(--line-soft); }
.logostrip .wrap { display: flex; align-items: center; gap: clamp(20px,4vw,56px); flex-wrap: wrap; justify-content: center; padding-block: 30px; }
.logostrip .lbl { font-family: var(--mono); font-size: .76rem; color: var(--slate); }
.logostrip .badges { display: flex; gap: clamp(18px,3vw,40px); align-items: center; flex-wrap: wrap; justify-content: center; }
.logostrip .badge { font-family: var(--display); font-weight: 600; color: #9AA8BE; font-size: 1.02rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.logostrip .badge svg { width: 20px; height: 20px; opacity: .8; }

/* ---------- Cards / Services ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D4E0F2; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(10,108,212,.12), rgba(0,160,224,.14)); margin-bottom: 18px; font-size: 27px; line-height: 1; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; color: var(--slate); }
.card .more { margin-top: 16px; font-family: var(--mono); font-size: .82rem; color: var(--bc); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.card .num { position: absolute; top: 24px; right: 26px; font-family: var(--mono); font-size: .8rem; color: var(--line); font-weight: 600; }

/* Feature list (why-choose) */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-2); font-size: 23px; line-height: 1; }
.feature .ico svg { width: 21px; height: 21px; color: var(--cyan); }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { font-size: .95rem; }
.ink-bg .feature p { color: var(--on-dark-b); }

/* ---------- Approach / numbered steps ---------- */
.steps { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px clamp(22px,3vw,38px); background: var(--white); align-items: start; transition: background .25s; }
.step:hover { background: var(--paper); }
.step + .step { border-top: 1px solid var(--line); }
.step .idx { font-family: var(--mono); font-size: 1.5rem; color: var(--bc); font-weight: 500; }
.step h3 { margin-bottom: 7px; }
.step p { font-size: .97rem; color: var(--slate); max-width: 62ch; }

/* ---------- Stats band ---------- */
.statband { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--radius); overflow: hidden; }
.statband .cell { background: var(--ink); padding: 32px 26px; text-align: center; }
.statband .n { font-family: var(--display); font-size: clamp(2rem,3.5vw,2.7rem); font-weight: 600; color: #fff; letter-spacing: -.02em; }
.statband .n .u { color: var(--cyan); }
.statband .l { font-size: .86rem; color: var(--on-dark-b); margin-top: 4px; }

/* ---------- Testimonial ---------- */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--display); font-size: clamp(1.4rem,2.6vw,2rem); line-height: 1.32; color: var(--heading); letter-spacing: -.02em; font-weight: 500; }
.ink-bg .quote blockquote { color: #fff; }
.quote .mark { font-family: var(--display); font-size: 4rem; line-height: 0; color: var(--bc); height: 30px; display: block; }
.quote .who { margin-top: 26px; display: flex; align-items: center; gap: 13px; justify-content: center; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--bc),var(--cyan)); display: grid; place-items: center; color: #fff; font-weight: 600; font-family: var(--display); }
.quote .who .meta { text-align: left; }
.quote .who .meta b { color: var(--heading); display: block; font-size: .98rem; }
.ink-bg .quote .who .meta b { color: #fff; }
.quote .who .meta span { font-size: .85rem; color: var(--slate); }

/* ---------- Case study / blog list ---------- */
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.post .thumb svg, .post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post .tag { font-family: var(--mono); font-size: .74rem; color: var(--bc); text-transform: uppercase; letter-spacing: .04em; }
.post h3 { margin: 10px 0 8px; font-size: 1.18rem; }
.post p { font-size: .93rem; color: var(--slate); flex: 1; }
.post .meta { margin-top: 16px; font-size: .82rem; color: var(--slate); display: flex; gap: 10px; align-items: center; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); text-align: center; background: linear-gradient(135deg, var(--bc-deep), var(--ink) 75%); }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 80% 10%, rgba(0,160,224,.25), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-b); max-width: 50ch; margin: 16px auto 0; }
.cta-band .btn { margin-top: 30px; }

/* ---------- Forms / Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px,5vw,64px); align-items: start; }
.contact-aside h2 { margin: 14px 0 16px; }
.contact-aside p { color: var(--slate); }
.contact-promise { margin-top: 28px; display: grid; gap: 16px; }
.contact-promise li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--body); }
.contact-promise svg { width: 20px; height: 20px; color: var(--bc); flex-shrink: 0; margin-top: 2px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label.lbl { display: block; font-size: .86rem; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
label.lbl .req { color: var(--bc); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--heading);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #9BA8BD; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--bc); background: #fff; box-shadow: 0 0 0 4px rgba(10,108,212,.12); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2356688A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--body); cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--bc); flex-shrink: 0; cursor: pointer; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--slate); margin-top: 4px; }
.consent input { width: 18px; height: 18px; accent-color: var(--bc); flex-shrink: 0; margin-top: 2px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--slate); text-align: center; margin-top: 14px; }
.form-fail { display: none; background: #FFF1F0; border: 1px solid #F3C9C4; color: #B23B30; font-size: .88rem; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.field-error { display: none; color: #D8443A; font-size: .8rem; margin-top: 6px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: #D8443A; background: #FFF6F5; }
.field.invalid .field-error { display: block; }

/* Form success state */
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,var(--bc),var(--cyan)); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: var(--shadow-blue); }
.form-success .tick svg { width: 30px; height: 30px; color: #fff; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--slate); }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: clamp(48px,6vw,76px); padding-bottom: clamp(40px,5vw,60px); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: 18px; font-size: 1.14rem; color: var(--on-dark-b); max-width: 56ch; }
.page-hero.light p { color: var(--slate); }
.breadcrumb { font-family: var(--mono); font-size: .8rem; color: var(--slate); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--bc); }
.ink-bg .breadcrumb, .ink-bg .breadcrumb a { color: var(--on-dark-b); }

/* Prose (blog article / about) */
.prose { max-width: 720px; }
.prose p { margin-bottom: 20px; font-size: 1.06rem; color: var(--body); }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 30px 0 12px; }
.prose ul.bullets { margin: 0 0 20px; display: grid; gap: 10px; }
.prose ul.bullets li { position: relative; padding-left: 26px; color: var(--body); }
.prose ul.bullets li::before { content:""; position:absolute; left:4px; top:10px; width:7px; height:7px; border-radius:2px; background: var(--bc); }
.prose blockquote { border-left: 3px solid var(--bc); padding: 4px 0 4px 22px; margin: 26px 0; font-style: italic; color: var(--heading); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--bc-deep); }
.prose em { color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-b); padding-block: clamp(48px,6vw,72px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand svg { height: 28px; }
.site-footer .brand img { height: 56px; width: auto; }
.footer-blurb { margin-top: 16px; font-size: .92rem; color: var(--on-dark-b); max-width: 32ch; }
.footer-col h4 { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .92rem; color: var(--on-dark-b); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-cta { margin-top: 22px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--slate); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .ms { font-family: var(--mono); }

/* App-window frame for real product screenshots */
.app-frame { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.16); }
.app-frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #EEF2F8; border-bottom: 1px solid #E1E8F2; }
.app-frame .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-frame .bar i:nth-child(1){ background:#FF5F57; } .app-frame .bar i:nth-child(2){ background:#FEBC2E; } .app-frame .bar i:nth-child(3){ background:#28C840; }
.app-frame .bar span { margin-left: 8px; font-family: var(--mono); font-size: .78rem; color: var(--slate); }
.app-frame img { width: 100%; height: auto; display: block; }
.paper-bg .app-frame, .section .app-frame { border-color: var(--line); }

/* Two-column split sections (stack on mobile via 820px breakpoint) */.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.split.ratio-a { grid-template-columns: 1.02fr .98fr; }
.split.ratio-b { grid-template-columns: 1.3fr .7fr; align-items: start; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Mobile nav panel ---------- */
.mobile-panel { display: none; }

/* ---------- Responsive ---------- */
/* Collapse nav to the menu before the 7-item nav crowds the large logo */
@media (max-width: 1245px) {
  :root { --header-h: 82px; }
  .brand img { height: 50px; }
  .site-footer .brand img { height: 50px; }
  .nav-links, .nav-cta .btn--ghost, .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel { display: block; position: fixed; inset: var(--header-h) 0 auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px var(--gutter) 24px; transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 49; }
  .mobile-panel.open { transform: none; }
  .mobile-panel a { display: block; padding: 13px 8px; font-weight: 500; border-bottom: 1px solid var(--line-soft); color: var(--heading); }
  .mobile-panel .btn { width: 100%; justify-content: center; margin-top: 16px; }
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .statband { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .split, .split.ratio-a, .split.ratio-b { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 14px; }
  .hero-trust { padding-top: 22px; }
  .hero-trust .stat { padding-right: 12px; }
  .hero-trust .stat + .stat { padding-left: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

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

/* =================================================================
   THEME LAYER — modern "AI-era" aesthetic
   Animated aurora surfaces, glass panels, gradient buttons,
   motion-aware scroll animations. Appended so it overrides the
   base design system above.
   ================================================================= */

:root {
  /* Extended accent ramp for glow / gradient work */
  --violet:      #6E5CF6;
  --electric:    #22D3EE;
  --grad-brand:  linear-gradient(115deg, #0A6CD4 0%, #00A0E0 52%, #6E5CF6 100%);
  --grad-text:   linear-gradient(100deg, #FFFFFF 8%, #7FD8FF 48%, #A99BFF 96%);
  --glow-soft:   0 0 0 1px rgba(255,255,255,.06), 0 18px 48px -12px rgba(10,108,212,.55);
  --glow-hard:   0 0 40px -6px rgba(0,160,224,.55);

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;

  --spring: cubic-bezier(.16,1,.3,1);
}

/* ---------- Motion primitives ---------- */
@keyframes e365-aurora {
  0%,100% { transform: translate3d(-6%,-4%,0) scale(1);    opacity:.85; }
  33%     { transform: translate3d(6%,3%,0)   scale(1.14); opacity:1;   }
  66%     { transform: translate3d(-3%,6%,0)  scale(1.05); opacity:.9;  }
}
@keyframes e365-drift {
  0%,100% { transform: translate3d(0,0,0); }
  50%     { transform: translate3d(0,-14px,0); }
}
@keyframes e365-sheen { to { transform: translateX(220%); } }
@keyframes e365-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,160,224,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(0,160,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,160,224,0); }
}
@keyframes e365-fade-up { from { opacity:0; transform: translate3d(0,26px,0); } to { opacity:1; transform:none; } }

/* ---------- Scroll progress bar (injected by JS) ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad-brand);
  z-index: 80; pointer-events: none;
  box-shadow: 0 0 12px rgba(0,160,224,.6);
}

/* ---------- Glass header ---------- */
.site-header {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11,26,47,.06);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 32px -12px rgba(11,26,47,.18);
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--spring);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---------- Aurora surfaces ---------- */
.hero, .ink-bg, .cta-band { position: relative; isolation: isolate; overflow: hidden; }

/* animated aurora blobs + fine grid on the dark surfaces */
.hero::before, .ink-bg::before, .cta-band::before {
  content: ""; position: absolute; inset: -30% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 44% at 18% 26%, rgba(110,92,246,.42), transparent 62%),
    radial-gradient(34% 40% at 82% 18%, rgba(34,211,238,.36), transparent 64%),
    radial-gradient(44% 46% at 62% 84%, rgba(10,108,212,.44), transparent 66%);
  filter: blur(18px);
  animation: e365-aurora 22s ease-in-out infinite;
}
.ink-bg::before { animation-duration: 28s; opacity: .8; }
.cta-band::before { animation-duration: 18s; inset: -40% -14%; }

/* subtle technical grid over dark surfaces */
.hero::after, .ink-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 62% at 50% 34%, #000 0%, transparent 78%);
}
/* keep the CTA band's own glow, but never let it swallow clicks */
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 80% at 80% 10%, rgba(0,160,224,.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }

.hero   { background: linear-gradient(150deg, #04182C 0%, #062A52 46%, #073C74 100%); }
.ink-bg { background: linear-gradient(165deg, #061B31 0%, #0A2A4B 100%); }
.cta-band { background: linear-gradient(135deg, #062A52, #04182C 78%); }

/* ---------- Gradient display type ---------- */
.hero h1 .accent, .cta-band h2 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  position: relative; padding-left: 20px;
}
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 12px; height: 2px; border-radius: 2px; background: var(--grad-brand);
}
.eyebrow.on-dark::before { background: linear-gradient(90deg, var(--electric), var(--violet)); }
.eyebrow[style*="justify-content:center"] { padding-left: 0; }
.eyebrow[style*="justify-content:center"]::before { display: none; }

/* ---------- Modern buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 100px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .32s var(--spring), box-shadow .32s var(--ease), background-color .25s, color .25s, border-color .25s;
}
/* travelling sheen */
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: translateX(-120%); z-index: 1; pointer-events: none;
}
.btn:hover::before { animation: e365-sheen .85s var(--ease) forwards; }
.btn > * { position: relative; z-index: 2; }

.btn--primary {
  background: var(--grad-brand);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff; border: 0;
  box-shadow: 0 10px 30px -10px rgba(10,108,212,.75), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .32s var(--spring), box-shadow .32s var(--ease), background-position .6s var(--ease);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(10,108,212,.85), 0 0 26px -6px rgba(0,160,224,.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:active { transform: translateY(-1px) scale(.985); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(11,26,47,.16);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 14px 34px -14px rgba(11,26,47,.4), 0 0 22px -8px rgba(0,160,224,.45);
}
.hero .btn--ghost, .cta-band .btn--ghost {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.26); color: #fff;
}
.hero .btn--ghost:hover, .cta-band .btn--ghost:hover {
  background: rgba(255,255,255,.13); border-color: var(--electric); color: #fff;
}
.nav-cta .btn--primary { animation: none; }

/* arrow nudge */
.btn svg { transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Cards: glass + gradient edge on hover ---------- */
.card, .post, .feat-post, .app-frame, .form-card {
  border-radius: var(--radius-lg);
  transition: transform .45s var(--spring), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.card { position: relative; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -22px rgba(11,26,47,.3); }
.card:hover::after { opacity: .9; }

.ink-bg .card, .ink-bg .feature { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
.ink-bg .card:hover { background: rgba(255,255,255,.075); }

.post:hover, .feat-post:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -22px rgba(11,26,47,.3); }
.post .thumb img, .post .thumb svg { transition: transform .7s var(--spring); }
.post:hover .thumb img, .post:hover .thumb svg { transform: scale(1.05); }

/* icon tiles get a soft glow ring */
.card .icon, .feature .ico {
  border-radius: 16px;
  transition: transform .45s var(--spring), box-shadow .45s var(--ease);
}
.card:hover .icon, .feature:hover .ico {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px -10px rgba(10,108,212,.5);
}

/* ---------- App frame gets a lifted, glowing presentation ---------- */
.app-frame {
  box-shadow: 0 40px 90px -30px rgba(2,12,26,.7), 0 0 0 1px rgba(255,255,255,.08);
}
.hero .app-frame { animation: e365-drift 9s ease-in-out infinite; }

/* ---------- Stats ---------- */
.hero-trust .stat .n, .statband .n {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statband > div { transition: transform .45s var(--spring); }
.statband > div:hover { transform: translateY(-4px); }

/* ---------- Steps ---------- */
.step { transition: transform .4s var(--spring); }
.step:hover { transform: translateX(6px); }
.step .idx {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Sector / industry cards keep the glass treatment ---------- */
#industries .card:hover { box-shadow: 0 28px 60px -22px rgba(10,108,212,.34); }

/* ---------- Form polish ---------- */
.input, .select, .textarea {
  border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--bc);
  box-shadow: 0 0 0 4px rgba(10,108,212,.14), 0 0 20px -8px rgba(0,160,224,.5);
}

/* ---------- Reveal: richer, staggered ---------- */
.reveal { opacity: 0; transform: translate3d(0,26px,0); transition: opacity .8s var(--spring), transform .8s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.reveal[style*="--i"], .stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
.grid > .reveal, .steps > *, .prod-list > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Reduced motion: strip all of it ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before, .ink-bg::before, .cta-band::before { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ---------- Mobile trims ---------- */
@media (max-width: 720px) {
  .hero::before, .ink-bg::before, .cta-band::before { filter: blur(26px); animation-duration: 34s; }
  .hero .app-frame { animation: none; }
  .card:hover, .post:hover { transform: none; }
}

/* =================================================================
   WOW LAYER — futuristic motion package
   Particle network hero, 3D tilt cards, magnetic buttons,
   cursor spotlight, conic gradient borders.
   ================================================================= */

/* ---------- Particle network canvas (hero) ---------- */
.fx-net {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55;
}
.hero .wrap { position: relative; z-index: 2; }

/* ---------- Rotating word in hero headline ---------- */
.rotator {
  display: inline-grid; grid-auto-flow: column; overflow: hidden;
  vertical-align: bottom; position: relative;
}
.rotator__word {
  grid-area: 1/1; white-space: nowrap;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(110%);
  transition: transform .65s var(--spring), opacity .5s var(--ease);
}
.rotator__word.is-on { opacity: 1; transform: translateY(0); }
.rotator__word.is-off { opacity: 0; transform: translateY(-110%); }

/* ---------- 3D tilt cards ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s var(--spring), box-shadow .45s var(--ease);
}
[data-tilt] .tilt-glare {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3;
  background: radial-gradient(320px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.22), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
[data-tilt]:hover .tilt-glare { opacity: 1; }

/* ---------- Cursor spotlight on dark sections ---------- */
.ink-bg, .cta-band { --sx: 50%; --sy: 40%; }
.ink-bg .spotlight, .cta-band .spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(540px circle at var(--sx) var(--sy), rgba(0,160,224,.14), transparent 62%);
  transition: opacity .4s var(--ease); opacity: 0;
}
.ink-bg:hover .spotlight, .cta-band:hover .spotlight { opacity: 1; }
.ink-bg > .wrap, .cta-band > * { position: relative; z-index: 1; }

/* ---------- Conic gradient animated border on app frames ---------- */
@property --e365-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes e365-rotate { to { --e365-angle: 360deg; } }
.app-frame { position: relative; }
.app-frame::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--e365-angle),
    rgba(0,160,224,0) 0%, rgba(0,160,224,.9) 12%, rgba(110,92,246,.9) 26%,
    rgba(0,160,224,0) 42%, rgba(0,160,224,0) 58%,
    rgba(34,211,238,.85) 72%, rgba(110,92,246,0) 90%);
  animation: e365-rotate 7s linear infinite;
  filter: blur(6px);
}
@supports not (background: conic-gradient(from var(--e365-angle), red, blue)) {
  .app-frame::before { background: linear-gradient(120deg, rgba(0,160,224,.7), rgba(110,92,246,.7)); animation: none; }
}

/* ---------- Magnetic buttons ---------- */
.btn--primary, .btn--ghost { will-change: transform; }
.btn.is-magnet { transition: transform .18s ease-out, box-shadow .32s var(--ease), background-position .6s var(--ease); }

/* ---------- Grid beams: light streaks crossing dark sections ---------- */
@keyframes e365-beam-x { from { transform: translateX(-110%); } to { transform: translateX(110vw); } }
.beam {
  position: absolute; height: 1px; left: 0; right: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,224,255,.8), transparent);
  width: 220px; opacity: .55;
  animation: e365-beam-x 7.5s linear infinite;
}
.beam.b2 { animation-duration: 11s; animation-delay: 3s; opacity: .35; }

/* ---------- Blinking terminal caret for eyebrows in hero ---------- */
.hero .eyebrow::after {
  content: "_"; margin-left: 6px; font-weight: 700; color: var(--electric);
  animation: e365-caret 1.1s steps(1) infinite;
}
@keyframes e365-caret { 50% { opacity: 0; } }

/* ---------- Mobile / touch trims ---------- */
@media (hover: none), (max-width: 820px) {
  [data-tilt] { transform: none !important; }
  [data-tilt] .tilt-glare, .spotlight { display: none; }
  .app-frame::before { animation-duration: 12s; filter: blur(9px); }
}

/* ---------- Reduced motion strips everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-net, .beam, .spotlight, .tilt-glare { display: none !important; }
  .app-frame::before { animation: none !important; }
  .rotator__word { transition: none !important; opacity: 1 !important; transform: none !important; }
  /* show the first word only — JS never runs in reduced motion, so don't rely on .is-on */
  .rotator__word:not(:first-child) { display: none; }
  .rotator__word:first-child { display: block; }
  .hero .eyebrow::after { animation: none; }
}

/* Screen-reader-only text (used to give the animated headline a stable reading) */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
