/* Kaizen Technologies — design system */

:root {
  --ink: #071412;
  --ink-elevated: #0c2420;
  --ink-soft: #12332d;
  --surface: #0f2a25;
  --line: rgba(61, 255, 181, 0.14);
  --line-strong: rgba(61, 255, 181, 0.28);
  --text: #e8f5f1;
  --text-muted: rgba(232, 245, 241, 0.68);
  --text-faint: rgba(232, 245, 241, 0.42);
  --accent: #3dffb5;
  --accent-deep: #1ed996;
  --accent-soft: rgba(61, 255, 181, 0.12);
  --warning-soft: #ffd166;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  --container: 1120px;
  --radius: 0.75rem;
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-cta: 0 0 0 1px rgba(61, 255, 181, 0.35), 0 12px 40px rgba(61, 255, 181, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(61, 255, 181, 0.08), transparent 55%),
    radial-gradient(900px 500px at 0% 40%, rgba(30, 217, 150, 0.05), transparent 50%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 20, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 20, 18, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  flex-shrink: 0;
  border-radius: 0.55rem;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-thin {
  font-weight: 600;
  color: var(--text-muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 18, 0.96);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(232, 245, 241, 0.06);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  justify-content: center;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #04201a;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  color: #04201a;
  background: #6fffc8;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 5.5rem;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: atmosphere-in 1.6s var(--ease-out) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 18, 0.92) 0%, rgba(7, 20, 18, 0.72) 42%, rgba(7, 20, 18, 0.28) 72%, rgba(7, 20, 18, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 20, 18, 0.2) 0%, rgba(7, 20, 18, 0.55) 55%, rgba(7, 20, 18, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  margin-left: max(1.25rem, calc((100% - var(--container)) / 2));
}

.brand-hero {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}

.hero-title {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes atmosphere-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Sections */

.section {
  padding: var(--space-9) 0;
}

.section-tight {
  padding: var(--space-8) 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: var(--space-7);
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: end;
}

.split-copy h2 {
  max-width: 14ch;
}

.split-text {
  margin: 0;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-8);
  }
}

/* Services */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.25s var(--ease-out), padding 0.25s var(--ease-out);
}

.service-item p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-muted);
}

.service-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}

@media (min-width: 720px) {
  .service-item {
    grid-template-columns: 4rem 1fr;
    gap: 2rem;
    padding: 1.9rem 0.5rem;
  }

  .service-item:hover {
    background: rgba(61, 255, 181, 0.04);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Approach */

.section-approach {
  background:
    linear-gradient(180deg, transparent, rgba(61, 255, 181, 0.03) 40%, transparent),
    var(--ink);
  border-block: 1px solid var(--line);
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.process-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28ch;
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

  .process-step {
    padding-top: 1.75rem;
  }
}

/* About */

.about-grid {
  display: grid;
  gap: var(--space-7);
}

.about-copy {
  max-width: 40rem;
}

.about-copy p {
  margin: 1.15rem 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.about-copy em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.about-aside {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.about-aside-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.about-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-aside li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text);
  font-weight: 500;
}

.about-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: var(--space-8);
    align-items: start;
  }

  .about-aside {
    padding: 0 0 0 2rem;
    border-top: none;
    border-left: 1px solid var(--line);
  }
}

/* Closing CTA */

.cta-section {
  padding-top: var(--space-7);
}

.cta-panel {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(61, 255, 181, 0.16), transparent 55%),
    linear-gradient(160deg, #0e2a25 0%, #071412 70%);
}

.cta-panel h2 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.cta-panel p {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand img {
  border-radius: 0.45rem;
}

.footer-mail {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-mail:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
  }
}

/* Reveal motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-delay: 0s;
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-atmosphere img {
    animation: none;
    transform: none;
  }
}
