:root {
  --bg: #06080d;
  --bg-elevated: #0c1018;
  --bg-soft: #10151f;
  --fg: #eef1f7;
  --muted: #939bb0;
  --accent: #5ec4c0;
  --accent-deep: #3a8fbf;
  --line: rgba(238, 241, 247, 0.08);
  --glow: color-mix(in srgb, var(--accent) 28%, transparent);
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa;
    --bg-elevated: #ffffff;
    --bg-soft: #eef2f7;
    --fg: #12151c;
    --muted: #5c6578;
    --accent: #0f8f8a;
    --accent-deep: #1f6ea5;
    --line: rgba(18, 21, 28, 0.1);
    --glow: color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

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

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* —— Atmosphere (hero only, not sticky over whole page) —— */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg .mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 12% 78%, color-mix(in srgb, var(--accent-deep) 40%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.hero-bg .beam {
  position: absolute;
  width: 120%;
  height: 1px;
  left: -10%;
  top: 42%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  animation: beam 8s ease-in-out infinite;
}

@keyframes mesh-drift {
  to {
    transform: translate(-3%, 2%) scale(1.06);
  }
}

@keyframes beam {
  0%,
  100% {
    opacity: 0.15;
    transform: translateY(-12px);
  }
  50% {
    opacity: 0.45;
    transform: translateY(18px);
  }
}

/* —— Header / scroll progress —— */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(18px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #061018;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

@media (prefers-color-scheme: light) {
  .mark {
    color: #fff;
  }
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--fg);
  outline: none;
}

.nav a:focus-visible {
  box-shadow: 0 0 0 2px var(--glow);
}

.nav a.is-active {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* —— Layout —— */
main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(64px, 10vw, 112px) clamp(18px, 4vw, 40px);
}

.section-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

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

.section-elevated {
  background: var(--bg-elevated);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker .num {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 1.6rem;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--fg);
  letter-spacing: 0.04em;
  font-size: 11px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  max-width: 12ch;
}

h1 .grad {
  background: linear-gradient(105deg, var(--accent), var(--accent-deep) 55%, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s linear infinite;
}

@keyframes sheen {
  to {
    background-position: -200% 0;
  }
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lead,
.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 58ch;
}

.lead {
  margin: 22px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.section p {
  margin: 0 0 14px;
}

.section p:last-child {
  margin-bottom: 0;
}

a.inline {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 3px;
}

a.inline:hover,
a.inline:focus-visible {
  color: var(--accent);
  outline: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 40px) 88px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-brand .mark {
  width: 42px;
  height: 42px;
  font-size: 20px;
  animation: pulse-glow 4.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 28px 2px var(--glow);
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--glow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #041016;
}

@media (prefers-color-scheme: light) {
  .btn-primary {
    color: #fff;
  }
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--fg);
  opacity: 1;
  outline: none;
}

.scroll-cue .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 70%, transparent);
  border-radius: 12px;
  position: relative;
}

.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* —— Side dots (desktop) —— */
.section-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: none;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 1100px) {
  .section-dots {
    display: flex;
  }
}

.section-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-dots a.is-active,
.section-dots a:hover,
.section-dots a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
  outline: none;
}

/* —— Services —— */
.service-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-grid li {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}

.service-grid .idx {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-grid h3 {
  margin-bottom: 8px;
}

.service-grid p {
  margin: 0;
  font-size: 0.95rem;
}

/* —— Product —— */
.product-panel {
  margin-top: 8px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%),
    var(--bg);
}

.product-panel h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  margin-bottom: 8px;
}

.product-meta {
  margin: 0 0 16px !important;
  font-size: 0.92rem !important;
}

/* —— Company / contact —— */
.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
  }
}

.dl {
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.dl > div {
  display: grid;
  grid-template-columns: minmax(110px, 160px) 1fr;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dl dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.dl a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.dl a:hover,
.dl a:focus-visible {
  color: var(--accent);
  outline: none;
}

.contact-box {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.contact-box h3 {
  margin-bottom: 10px;
}

.contact-box .btn {
  margin-top: 18px;
}

/* —— Motion entrance —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.05s;
}
.reveal.d2 {
  transition-delay: 0.15s;
}
.reveal.d3 {
  transition-delay: 0.25s;
}
.reveal.d4 {
  transition-delay: 0.35s;
}

/* —— Footer —— */
.site-footer {
  padding: 28px clamp(18px, 4vw, 40px) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.7;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fg);
  outline: none;
}

@media (max-width: 640px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
  }

  .nav a {
    padding: 7px 10px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 88px;
  }

  .dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg .mesh,
  .hero-bg .beam,
  .hero-brand .mark,
  h1 .grad,
  .scroll-cue .mouse::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}
