/* Hexonator Solutions stylesheet.
   Light is the default theme; dark applies when <html data-theme="dark">. */
:root {
  --brand: #287CEB;
  --brand-strong: #1F6AD4;
  --brand-tint: rgba(40, 124, 235, .1);
  --accent: #FF9911;

  --bg: #0C1220;
  --band: #101829;
  --card: #131C2E;
  --text-strong: #ffffff;
  --text: #C9D2E0;
  --muted: #97A3B8;
  --faint: #6F7C93;
  --accent-text: #FFA733;
  --link-brand: #7FB3F5;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --header-bg: rgba(12, 18, 32, .94);
  --shadow: 0 10px 24px -16px rgba(0, 0, 0, .8);
  --mark-opacity: .08;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #FFFFFF;
  --band: #F3F6FB;
  --card: #FFFFFF;
  --text-strong: #10213A;
  --text: #3D4A5F;
  --muted: #5B6880;
  --faint: #7A869B;
  --accent-text: #B85C00;
  --link-brand: #1F6AD4;
  --line: #DDE4EE;
  --line-strong: #C3CEDC;
  --header-bg: rgba(255, 255, 255, .96);
  --shadow: 0 10px 24px -16px rgba(16, 33, 58, .4);
  --mark-opacity: .07;
  color-scheme: light;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--text); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Barlow Semi Condensed", Barlow, Arial, sans-serif; color: var(--text-strong); letter-spacing: 0; text-wrap: balance; }
h1 { font-weight: 700 !important; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Page hero: tinted band with the logo mark as background art */
main > section:first-child { position: relative; isolation: isolate; background: var(--band); border-bottom: 1px solid var(--line); }
main > section:first-child::before { content: ""; position: absolute; z-index: -1; right: -5rem; top: 50%; width: 32rem; height: 32rem; transform: translateY(-46%); background: url("../img/favicon.png") no-repeat center / contain; opacity: var(--mark-opacity); pointer-events: none; }
main > section:first-child { overflow: hidden; }
.mark-art { position: absolute; right: -1.5rem; top: -1.5rem; width: 10rem; height: 10rem; opacity: .14; pointer-events: none; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); box-shadow: 0 6px 18px -16px rgba(16, 33, 58, .5); }
.nav-link { white-space: nowrap; color: var(--text); transition: color .15s; position: relative; }
.nav-link:hover, .nav-link.is-active { color: var(--brand-strong); }
html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .nav-link.is-active { color: #fff; }
.nav-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brand); }
.icon-btn { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-strong); background: transparent; cursor: pointer; transition: border-color .15s; }
.icon-btn:hover { border-color: var(--brand); }
.icon-sun { display: none; }
html[data-theme="light"] .icon-sun { display: block; }
html[data-theme="light"] .icon-moon { display: none; }

/* Cards */
.glass { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.glow-hover { transition: border-color .2s, box-shadow .2s, transform .2s; }
.glow-hover:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.divider { height: 1px; background: var(--line); }

/* Solid brand panel (call-to-action bands and featured cards) */
.panel-brand { background: var(--brand-strong); border-color: var(--brand-strong); }
html[data-theme] .panel-brand :is(h2, h3, h4, p, li, a, .text-white, .text-slate-200, .text-slate-300, .text-slate-400, .text-accent) { color: #fff; }
html[data-theme] .panel-brand p, html[data-theme] .panel-brand li { color: rgba(255, 255, 255, .9); }
.panel-brand .checks li::before { border-color: #fff; }
.panel-brand .btn-primary { background: #fff; color: var(--brand-strong); }
.panel-brand .btn-primary:hover { background: #EAF2FE; }
html[data-theme] .panel-brand .btn-primary { color: var(--brand-strong); }
.panel-brand .btn-ghost { border-color: rgba(255, 255, 255, .7); }
.panel-brand .eyebrow::before { background: #fff; }

/* Text */
.text-gradient { color: var(--brand); }
html[data-theme="dark"] .text-gradient { color: var(--link-brand); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; color: var(--link-brand); }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); }
.checks li { position: relative; padding-left: 1.6rem; margin-top: .6rem; }
.checks li::before { content: ""; position: absolute; left: .3rem; top: .28rem; width: .38rem; height: .7rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Buttons and tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: .95rem; padding: .7rem 1.3rem; border-radius: 6px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; cursor: pointer; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: #1859B5; }
.btn-ghost { color: var(--text-strong); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
html[data-theme="dark"] .btn-ghost:hover { color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 4px; color: var(--link-brand); background: var(--brand-tint); white-space: nowrap; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Rows and pills */
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; padding: .55rem .7rem; border-radius: 6px; background: var(--band); border: 1px solid var(--line); color: var(--text); }
.pill { font-size: .7rem; font-weight: 600; padding: .12rem .5rem; border-radius: 4px; background: var(--brand-tint); color: var(--link-brand); white-space: nowrap; }

/* Forms */
.field { width: 100%; background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; padding: .7rem .9rem; color: var(--text-strong); font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field.is-invalid { border-color: #DC2626; }
select.field { appearance: auto; }
select.field option { color: #10213A; background: #fff; }
.label { display: block; font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: .4rem; }
.choice { cursor: pointer; display: block; padding: .9rem 1rem; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.chip { cursor: pointer; font-size: .85rem; font-weight: 500; padding: .4rem .85rem; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text); background: var(--card); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }

/* Hero rotating word, numbers, reasons list */
.rotator { display: block; min-height: 1.2em; transition: opacity .35s ease, transform .35s ease; }
.rotator.is-out { opacity: 0; transform: translateY(.3em); }
.work-no { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 1rem; line-height: 1; color: var(--accent-text); display: inline-flex; align-items: center; gap: .5rem; }
.work-no::after { content: ""; width: 2rem; height: 2px; background: var(--accent); }
h2 .work-no::after { display: none; }
h2 .work-no { font-size: 1.1rem; padding: .3rem .5rem; border: 1.5px solid var(--accent); border-radius: 4px; }
.why { padding: 0; overflow: hidden; }
.why summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.1rem; font-weight: 600; color: var(--text-strong); }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; font-weight: 500; color: var(--brand); transition: transform .2s; }
.why[open] summary::after { transform: rotate(45deg); }
.why[open] { border-color: var(--brand); border-left-width: 3px; }
.why-no { font-size: .85rem; font-weight: 700; color: var(--accent-text); }
.why p { padding: 0 1.2rem 1.2rem 3.2rem; font-size: .95rem; color: var(--muted); }

/* Sample tags, tech chips, quotes */
.sample-tag { display: inline-block; margin-top: .6rem; font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; border: 1px dashed var(--accent-text); color: var(--accent-text); }
.tech-chip { font-size: .85rem; font-weight: 500; padding: .3rem .7rem; border-radius: 4px; border: 1px solid var(--line); color: var(--text); background: var(--band); }
.quote-mark { font-family: Georgia, serif; font-size: 3.2rem; line-height: .8; color: var(--accent); }

/* Stats */
.stat-num { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .stat-num { color: var(--link-brand); }
.slot { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 1.25rem; font-size: .85rem; color: var(--muted); }
.slot code { color: var(--accent-text); }

/* Footer */
footer { background: var(--band); }

/* Remap of the Tailwind colour utilities used in the pages */
html[data-theme] .bg-ink-900 { background-color: var(--bg); }
html[data-theme] .bg-ink-800\/70 { background-color: var(--band); }
html[data-theme] .text-white,
html[data-theme] .hover\:text-white:hover { color: var(--text-strong); }
html[data-theme] .text-slate-200,
html[data-theme] .text-slate-300 { color: var(--text); }
html[data-theme] .text-slate-400 { color: var(--muted); }
html[data-theme] .text-slate-500 { color: var(--faint); }
html[data-theme] .text-accent { color: var(--link-brand); }
html[data-theme] .border-white\/5,
html[data-theme] .border-white\/10,
html[data-theme] .border-white\/15,
html[data-theme] .divide-white\/10 > * { border-color: var(--line); }
html[data-theme] .bg-white\/5 { background-color: var(--band); }
html[data-theme="light"] .text-amber-100 { color: #92400e; }
html[data-theme="light"] .text-emerald-200 { color: #065f46; }
html[data-theme="light"] .text-red-200 { color: #991b1b; }

@media (max-width: 640px) {
  main > section:first-child::before { width: 20rem; height: 20rem; right: -6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
