@font-face {
  font-family: "InterFallback";
  src: local("Arial");
  font-display: swap;
}

:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --text: #f4f8ff;
  --muted: #a8b4c7;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #65e7ff;
  --secondary: #8c7dff;
  --accent: #b4ffcb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --container: 1180px;
  --header-height: 78px;
}

html[data-theme="light"] {
  --bg: #f8fbff;
  --bg-soft: #eef4fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #0b1422;
  --muted: #536174;
  --line: rgba(11, 20, 34, 0.12);
  --shadow: 0 24px 70px rgba(32, 59, 91, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(101, 231, 255, 0.08), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(140, 125, 255, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, InterFallback, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 108px 0;
}

.section-muted {
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  border-block: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  width: 176px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav > a:not(.button) {
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s ease;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #07111f;
  box-shadow: 0 14px 38px rgba(101, 231, 255, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(101, 231, 255, 0.26);
}

.button-outline,
.button-ghost {
  border-color: var(--line);
  background: var(--surface);
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: .92rem;
}

.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 92px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 760;
}

h1 em {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary) 56%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-lead,
.section-copy,
.section-heading > p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.hero-orb-one {
  top: 11%;
  right: -90px;
  width: 340px;
  height: 340px;
  background: rgba(101, 231, 255, 0.08);
}

.hero-orb-two {
  bottom: 16%;
  left: -130px;
  width: 290px;
  height: 290px;
  background: rgba(140, 125, 255, 0.08);
}

.workflow-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(101, 231, 255, .08), transparent 42%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-glow {
  position: absolute;
  inset: 25% 22%;
  border-radius: 50%;
  background: rgba(101, 231, 255, .12);
  filter: blur(55px);
}

.workflow-card {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 164px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.workflow-card strong {
  font-size: .92rem;
}

.workflow-card small {
  color: var(--muted);
  font-size: .72rem;
}

.node-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(101, 231, 255, .2), rgba(140, 125, 255, .2));
  color: var(--primary);
}

.workflow-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 190px;
  padding: 22px;
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.node-docs { top: 54px; left: 30px; }
.node-email { top: 54px; right: 30px; }
.node-tools { bottom: 54px; left: 30px; }
.node-action { bottom: 54px; right: 30px; }

.workflow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--primary);
}

.workflow-lines path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: dash 9s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stat-strip article {
  padding: 26px 30px;
}

.stat-strip article + article {
  border-left: 1px solid var(--line);
}

.stat-strip strong,
.stat-strip span {
  display: block;
}

.stat-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

.section-heading {
  max-width: 770px;
  margin-bottom: 52px;
}

.section-heading.compact {
  margin-bottom: 44px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--surface-strong);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(101, 231, 255, .07);
}

.card-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.service-card p,
.outcome-list p,
.process-grid p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 80px;
  align-items: start;
}

.outcome-list {
  border-top: 1px solid var(--line);
}

.outcome-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.outcome-list > article > span {
  color: var(--primary);
  font-weight: 800;
}

.outcome-list p {
  margin-bottom: 0;
}

.section-accent {
  background:
    radial-gradient(circle at 20% 20%, rgba(101, 231, 255, .1), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(140, 125, 255, .11), transparent 32%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #07111f;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 6px;
  color: var(--primary);
  font-size: 1.45rem;
}

details[open] summary::after {
  content: "–";
}

details p {
  max-width: 680px;
  padding: 0 36px 22px 0;
  color: var(--muted);
}

.contact-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.contact-details a {
  width: fit-content;
  color: var(--primary);
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  color: var(--text);
  padding: 14px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input {
  min-height: 50px;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(101, 231, 255, .08);
  outline: none;
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 500;
  color: var(--muted);
}

.consent input {
  min-height: auto;
  margin-top: 4px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
}

.site-footer {
  padding: 52px 0 26px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: start;
}

.footer-grid img {
  width: 150px;
  height: auto;
}

.footer-grid p {
  max-width: 460px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .workflow-visual {
    min-height: 520px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .faq-layout,
  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .theme-toggle {
    width: 100%;
    border-radius: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-grid {
    gap: 46px;
  }

  .workflow-visual {
    min-height: 500px;
  }

  .workflow-card {
    min-width: 142px;
    padding: 13px;
  }

  .workflow-core {
    min-width: 170px;
  }

  .node-docs,
  .node-tools {
    left: 16px;
  }

  .node-email,
  .node-action {
    right: 16px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .workflow-visual {
    min-height: 540px;
  }

  .workflow-card {
    min-width: 132px;
    max-width: 145px;
  }

  .workflow-card strong {
    font-size: .82rem;
  }

  .workflow-card small {
    font-size: .67rem;
  }

  .workflow-core {
    min-width: 166px;
    max-width: 180px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Correct sizing for the original vertical Hyper ICT logo */
.site-header .brand {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.site-header .brand img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 150px;
  object-fit: contain;
}

/* Footer logo */
.site-footer img {
  width: auto;
  height: 105px;
  max-width: 190px;
  object-fit: contain;
}

@media (max-width: 780px) {
  .site-header .brand img {
    height: 54px;
    max-width: 120px;
  }

  .site-footer img {
    height: 90px;
    max-width: 160px;
  }
}

@media (max-width: 420px) {
  .site-header .brand img {
    height: 48px;
    max-width: 105px;
  }
}
