:root {
  --ink: #0b1220;
  --ink-soft: #46546a;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #0e7490;
  --accent-dark: #155e75;
  --radius: 12px;
  --night: #05070d;
  --electric: #06b6d4;
  --glow: #22d3ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--night);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; line-height: 1; }
.brand-mark { width: 36px; height: 36px; overflow: visible; }
.brand-name { display: flex; flex-direction: column; font-family: Michroma, sans-serif; font-weight: 400; }
.brand-word { font-size: 1.1rem; letter-spacing: .04em; text-shadow: 0 0 8px rgba(6, 182, 212, .9), 0 0 24px rgba(6, 182, 212, .7); transition: text-shadow .6s ease; }
.brand:hover .brand-word { text-shadow: 0 0 10px rgba(6, 182, 212, 1), 0 0 32px rgba(6, 182, 212, .9); }
.brand-word b { font-weight: 400; color: #67e8f9; }
.brand-sub { font-size: .48rem; letter-spacing: .9em; color: #67e8f9; margin-top: 6px; }
/* Logo hover: the X brightens and one tile switches on */
.brand-lit, .brand-hot { opacity: 0; transition: opacity .6s ease; }
.brand:hover .brand-lit, .brand:hover .brand-hot, .brand:focus-visible .brand-lit, .brand:focus-visible .brand-hot { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .brand-lit, .brand-hot, .brand-word { transition: none; } }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: #aab6c8; text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: #fff; }
.site-header .btn { background: var(--electric); border-color: var(--electric); box-shadow: 0 0 14px rgba(6, 182, 212, 0.5); }
.site-header .btn:hover { background: var(--glow); border-color: var(--glow); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 8px 16px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); }

/* Hero: the dark, glowing side of the brand */
.hero {
  /* Starts behind the header (68px), so the header slides in over dark, not white */
  position: relative; overflow: hidden; margin-top: -68px; padding: 172px 0 96px; color: #fff;
  background: radial-gradient(ellipse 55% 75% at 80% 50%, rgba(6, 182, 212, 0.22), transparent 70%), var(--night);
}
.hero::before { /* faint grid, fading out from the mark */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(127, 166, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 166, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 820px; margin: 0 0 20px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; }
.hero .lead { color: #aab6c8; }
.hero .eyebrow { color: #67e8f9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { background: var(--electric); border-color: var(--electric); box-shadow: 0 0 24px rgba(6, 182, 212, 0.45); }
.hero .btn:hover { background: var(--glow); border-color: var(--glow); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45); }
.hero-mark { justify-self: end; width: 100%; max-width: 300px; }
.hero-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-lit { opacity: 0; transition: opacity .6s ease; }
.hero-mark:hover .hero-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-lit { transition: none; } }

/* Small labels use the logo's typeface */
.eyebrow { font-family: Michroma, sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--accent); margin: 0 0 14px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 0 0 8px; }
.muted, .prose p { color: var(--ink-soft); }
.prose p { margin: 0 0 16px; font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.value { border-top: 2px solid var(--accent); padding-top: 20px; }
.value p { color: var(--ink-soft); margin: 0; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: box-shadow .35s ease, transform .35s ease; }
.card:not(.card-muted) { border-top: 3px solid var(--accent); }
.card:not(.card-muted):hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(14, 116, 144, 0.12); }
.card p { color: var(--ink-soft); }
.card-muted { background: transparent; border-style: dashed; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.card-head h3 { font-size: 1.35rem; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.card-icon { width: 28px; height: 28px; border-radius: 7px; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e6f4ea; color: #1e7a3c; white-space: nowrap; }
.tag-soon { background: #e0f7fa; color: var(--accent); }
.tag-muted { background: #eceff3; color: var(--ink-soft); }

/* Contact form */
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--ink-soft); font-size: 0.9rem; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--night); padding: 40px 0; font-size: 0.9rem; color: #8a96ab; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: Michroma, sans-serif; font-size: 0.9rem; letter-spacing: 0.04em; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-brand b { font-weight: 400; color: #67e8f9; }
.footer-brand small { font-size: 0.55rem; letter-spacing: 0.5em; color: #67e8f9; margin-left: 0.8em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: #aab6c8; text-decoration: none; }
.footer-inner nav a:hover { color: #fff; }

/* Simple text pages (privacy) */
.page { padding: 72px 0 96px; max-width: 760px; }
.page h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink-soft); }

/* Movement. Everything here is off for people who ask their device for less motion. */
.site-header { transition: box-shadow .65s ease, border-color .65s ease; }
.site-header.scrolled { border-bottom-color: rgba(34, 211, 238, 0.35); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 1px 12px rgba(6, 182, 212, 0.25); }
.hero-pulse { opacity: 0; }
.hero-mark svg { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .85s cubic-bezier(.2, .7, .2, 1); }

/* Light sweeping across the glowing buttons on hover */
.hero .btn:not(.btn-ghost), .site-header .btn { position: relative; overflow: hidden; }
.hero .btn:not(.btn-ghost)::after, .site-header .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-130%) skewX(-20deg);
}
.hero .btn:not(.btn-ghost):hover::after, .site-header .btn:hover::after { transform: translateX(260%) skewX(-20deg); transition: transform 1.1s ease; }
.card:not(.card-muted):hover { box-shadow: 0 12px 32px rgba(14, 116, 144, 0.14), 0 0 0 1px rgba(6, 182, 212, 0.25), 0 0 28px rgba(6, 182, 212, 0.12); }

@media (prefers-reduced-motion: no-preference) {
  /* Opening: the headline rises in, the X draws itself like a neon sign switching on */
  /* The header slides down first, then the headline rises in */
  body:has(.hero) .site-header { animation: slide-down 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > * { animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .hero-copy > :nth-child(2) { animation-delay: .52s; }
  .hero-copy > :nth-child(3) { animation-delay: .74s; }
  .hero-copy > :nth-child(4) { animation-delay: .96s; }
  .hero-tiles { animation: fade-in 1.6s ease .3s both; }
  .hero-x path { stroke-dasharray: 1; animation: draw 1.2s cubic-bezier(.6, 0, .3, 1) .65s both; }
  .hero-x .d2 { animation-delay: 1.55s; }
  .hero-x { animation: flicker 1s linear 2.75s both; }
  .hero-mark .hero-lit { animation: power-on 1.9s ease 3.1s; }
  .hero-pulse { animation: breathe 7s ease-in-out 5s infinite; }
  .hero::before { animation: grid-drift 40s linear infinite; }

  /* Sections slide up as they come into view */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.3s ease var(--d, 0s), transform 1.3s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  /* The cobalt line above each value draws across */
  .js .value { border-top-color: transparent; position: relative; }
  .js .value::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.6, 0, .3, 1) calc(var(--d, 0s) + .35s); }
  .js .value.in::before { transform: scaleX(1); }
}
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 20% { opacity: .35; } 35% { opacity: 1; } 55% { opacity: .6; } 70% { opacity: 1; } }
@keyframes power-on { 0%, 100% { opacity: 0; } 30%, 60% { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: .45; } }
@keyframes grid-drift { to { background-position: 56px 56px; } }

@media (max-width: 1000px) and (min-width: 801px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .two-col, .values, .cards { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 124px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  /* On phones the big X fades back and sits behind the headline, up and to the right */
  .hero { padding-top: 188px; }
  .hero-mark { position: absolute; top: -130px; left: 63%; transform: translateX(-50%); width: 300px; max-width: none; opacity: .3; pointer-events: none; }
  .hero-copy { position: relative; z-index: 1; }
  .section { padding: 64px 0; }
  .nav-links { gap: 18px; }
  .nav-links a[href="#about"] { display: none; }
}
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: .95rem; }
  .brand-sub { font-size: .42rem; margin-top: 5px; }
  .nav-links { gap: 14px; }
}

/* Axis24 Digital: cyan buttons on dark need dark text for contrast */
.site-header .btn, .hero .btn:not(.btn-ghost) { color: #05070d; }

/* Services and process */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 10px; }
.service h3 { margin: 0 0 6px; font-size: 1.1rem; }
.service p { margin: 0; color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 0; }
.steps li::before { content: "0" counter(step); display: block; font-family: Michroma, sans-serif; color: var(--accent); font-size: 1.4rem; margin-bottom: 6px; }
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.footer-links-small { font-size: .9rem; }
.legal-note { font-size: .85rem; color: var(--ink-soft); }
/* Phones: logo + Contact only, so the header fits at 360px */
@media (max-width: 520px) { .nav-links a:not(.btn) { display: none; } }
