/* ==========================================================================
   EnoxIT — single-page site
   Colours and spacing are CSS variables: change the brand in :root below.
   Brand colours are taken from the EnoxIT logo.
   ========================================================================== */

:root {
  --brand: #0b5fe0;          /* logo blue — buttons, links */
  --brand-strong: #0849b0;
  --brand-2: #00b2f0;        /* logo cyan — gradients, accents */
  --navy: #0a1a3f;           /* logo navy — "Enox", dark sections */
  --wordmark: #0a1a3f;

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --ok: #16a34a;
  --warn: #d97706;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3b8bff;
    --brand-strong: #6aa8ff;
    --brand-2: #38cfff;
    --wordmark: #ffffff;
    --bg: #0b1220;
    --bg-alt: #0f1a2e;
    --surface: #111c31;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #1e2b44;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --brand: #3b8bff;
  --brand-strong: #6aa8ff;
  --brand-2: #38cfff;
  --wordmark: #ffffff;
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #111c31;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e2b44;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ------------------------------ Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background .2s, color .2s, transform .2s;
  text-decoration: none !important; font-family: inherit;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #03122e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #03122e; } }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(15,23,42,.06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

/* Logo artwork (inline SVG <symbol> at the top of index.html).
   Kept out of view with size 0 rather than display:none, which would break the gradients in some browsers. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo-svg { display: block; height: 34px; width: 158px; color: var(--wordmark); }   /* 558 x 120 artwork */
.logo-svg-sm { height: 30px; width: 140px; }
.logo-it-1 { stop-color: #00b2f0; }
.logo-it-2 { stop-color: #0b4fd0; }
:root[data-theme="dark"] .logo-it-1 { stop-color: #38cfff; }
:root[data-theme="dark"] .logo-it-2 { stop-color: #3b8bff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-it-1 { stop-color: #38cfff; }
  :root:not([data-theme="light"]) .logo-it-2 { stop-color: #3b8bff; }
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--bg-alt); text-decoration: none; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* ------------------------------ Sections ------------------------------ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
/* "BUILD • SCALE • INNOVATE" tagline from the logo */
.tagline { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .22em; color: var(--text-muted); }
.tagline i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.tagline::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.cards-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; }
.problem h3 { font-style: italic; }
.industry { border-top: 4px solid var(--brand); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
  background:
    radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    radial-gradient(700px 400px at -10% 20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-muted); font-size: 0.92rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* Product mockup */
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18); overflow: hidden; font-size: 0.8rem;
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }
.mockup-bar em { margin-left: 10px; font-style: normal; color: var(--text-muted); }
.mockup-body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.mockup-side { background: var(--navy); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.mockup-side i { height: 26px; border-radius: 7px; background: rgba(255,255,255,.12); }
.mockup-side i.active { background: var(--brand); }
.mockup-main { padding: 16px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.kpi small { color: var(--text-muted); }
.kpi b { font-size: 1.25rem; }
.kpi span { color: var(--text-muted); font-size: 0.72rem; }
.kpi .up { color: var(--ok); }
.chart { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.chart small { color: var(--text-muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 8px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.rows em { margin-left: auto; font-style: normal; color: var(--text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.mockup-note { margin: 0; padding: 6px 14px 10px; font-size: 0.7rem; color: var(--text-muted); text-align: right; }

/* ------------------------------ Features ------------------------------ */
.flow { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 48px; }
.flow li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--border);
}
.flow li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }

.industries-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.feature svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ------------------------------ Steps ------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.steps p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700;
}

/* ------------------------------ Integrations ------------------------------ */
.integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; box-shadow: var(--shadow);
}

/* ------------------------------ Security (dark band) ------------------------------ */
.section-dark { background: var(--navy); color: #e2e8f0; }
.section-dark .eyebrow { color: #38cfff; }
.section-dark h2 { color: #fff; }
.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.04); }
.sec h3 { color: #fff; }
.sec h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #38cfff, #3b8bff); margin-bottom: 14px; }
.sec p { color: #94a3b8; margin: 0; font-size: 0.95rem; }

/* ------------------------------ Pricing ------------------------------ */
.pricing { max-width: 720px; text-align: center; }
.pricing .btn { margin-top: 8px; }

/* ------------------------------ FAQ ------------------------------ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* ------------------------------ Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-details li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-details li > span:first-child { color: var(--text-muted); font-size: 0.9rem; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field .invalid { border-color: #dc2626; }
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.error { color: #dc2626; }
.form-status.success { color: var(--ok); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-tag { color: var(--text-muted); margin: 12px 0 4px; font-size: 0.95rem; }
.footer-company { color: var(--text-muted); margin: 0; font-size: 0.88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.site-footer nav a { color: var(--text-muted); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }

/* ------------------------------ About ------------------------------ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-points li {
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); border-left: 4px solid var(--brand);
}
.about-points strong { color: var(--text); }
.form-note { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ------------------------------ Privacy Policy / Terms pop-ups ------------------------------ */
body:has(dialog[open]) { overflow: hidden; }
.legal-dialog {
  width: min(820px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(5, 12, 28, 0.6); backdrop-filter: blur(3px); }
.dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 28px 16px; border-bottom: 1px solid var(--border);
}
.dialog-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.legal-body { overflow-y: auto; padding: 4px 28px 32px; overscroll-behavior: contain; }
.legal-body h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.legal-body h4 { font-size: 1rem; margin: 1.2em 0 0.4em; }
.legal-body p, .legal-body li { color: var(--text-muted); }
.legal-body strong { color: var(--text); }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: 0.4em; }
.legal-updated { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.legal-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0 4px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 0.3em; break-inside: avoid; }
/* Legal detail not filled in yet (SITE settings in js/main.js): highlighted so it can't go live unnoticed */
.ph { background: #fff3bf; color: #5c4400; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ------------------------------ Reveal on scroll ------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 16px 20px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .main-nav .nav-cta-mobile .btn { display: flex; width: 100%; color: #fff; }
  .header-actions { margin-left: auto; }

  .hero-grid, .integrations, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr; }
  .features-grid, .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .features-grid, .industries-grid, .security-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi:last-child { display: none; }
  .hero-ctas .btn { width: 100%; }
  .tagline { letter-spacing: .14em; gap: 9px; }
  .legal-toc ol { columns: 1; }
  /* Pop-ups go full screen on phones */
  .legal-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .dialog-head { padding: 16px; }
  .legal-body { padding: 4px 16px 28px; }
}

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