/* CRMLeader — signal aesthetic */

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #6b7a8d;
  --surface: #f4f8fa;
  --white: #ffffff;
  --teal: #00c2a8;
  --teal-deep: #00a896;
  --cyan: #3ad4e8;
  --amber: #ff8a3d;
  --amber-hot: #ff6b1a;
  --line: rgba(26, 35, 50, 0.1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--amber-hot);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(58, 212, 232, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 20%, rgba(0, 194, 168, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(255, 138, 61, 0.14), transparent 50%),
    linear-gradient(165deg, #e8f4f6 0%, #f4f8fa 40%, #eef6f8 100%);
  pointer-events: none;
}

.section-inner {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space);
  background: rgba(244, 248, 250, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 248, 250, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

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

.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Hero — one composition, brand first */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: calc(5.5rem + var(--space)) var(--space) var(--space);
  width: min(100%, calc(var(--max) + 2 * var(--space)));
  margin-inline: auto;
}

.hero__content {
  max-width: 34rem;
  position: relative;
  z-index: 1;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero__logo {
  width: 64px;
  height: 64px;
}

.hero__company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

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

.btn--primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.35);
}

.btn--primary:hover {
  background: var(--amber-hot);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 26, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 35, 50, 0.2);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.hero__art {
  width: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 194, 168, 0.18));
  animation: float-art 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes float-art {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art {
    animation: none;
  }
}

/* Services — asymmetric showcase */

.services {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.services__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 32rem;
}

.services__head .section-lead {
  margin-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.services__list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.services__item {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.85rem;
  isolation: isolate;
  border-radius: 4px 20px 20px 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(26, 35, 50, 0.06);
  border-left: 3px solid var(--item-accent, var(--teal));
  transition:
    transform 0.45s var(--ease),
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.services__item--teal {
  --item-accent: var(--teal);
  --item-wash: rgba(0, 194, 168, 0.1);
}

.services__item--amber {
  --item-accent: var(--amber);
  --item-wash: rgba(255, 138, 61, 0.12);
}

.services__item--ink {
  --item-accent: var(--cyan);
  --item-wash: rgba(58, 212, 232, 0.12);
}

.services__item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(26, 35, 50, 0.1);
  box-shadow: 0 18px 40px rgba(26, 35, 50, 0.08);
}

.services__watermark {
  position: absolute;
  right: -0.1em;
  bottom: -0.25em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 14vw, 7.5rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--item-accent);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.services__item:hover .services__watermark {
  opacity: 0.14;
  transform: translate(-6px, -4px);
}

.services__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.services__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--item-accent);
}

.services__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--item-accent);
  box-shadow: 0 0 0 4px var(--item-wash);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.services__item:hover .services__dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px var(--item-wash);
}

.services__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
}

.services__text {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  max-width: 22rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.services__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--item-accent), transparent);
  transition: width 0.5s var(--ease);
  z-index: 2;
}

.services__item:hover .services__bar,
.services__item:focus-within .services__bar {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .services__item,
  .services__watermark,
  .services__dot,
  .services__bar {
    transition: none;
  }

  .services__item:hover {
    transform: none;
  }
}

/* Contact */

.contact {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(5rem, 12vw, 8rem);
}

.contact__layout {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.contact__intro .section-lead {
  margin-bottom: 1.25rem;
}

.contact__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.contact__hint::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 2px;
}

.contact__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.35rem;
  border-radius: 4px 28px 28px 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(26, 35, 50, 0.07);
  border-left: 3px solid var(--teal);
  box-shadow: 0 20px 50px rgba(26, 35, 50, 0.06);
}

.contact__glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 168, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
  animation: contact-glow 7s ease-in-out infinite;
}

@keyframes contact-glow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-18px, 14px) scale(1.08);
    opacity: 1;
  }
}

.contact__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label action"
    "value action";
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 1.35rem 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-radius: 2px 18px 18px 2px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.contact__row .contact__label,
.contact__row .contact__value,
.contact__row .contact__action {
  pointer-events: none;
}

.contact__row + .contact__row {
  margin-top: 0.15rem;
}

.contact__row--link:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.contact__row--link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contact__row--accent {
  background: rgba(255, 138, 61, 0.08);
}

.contact__row--accent:hover {
  background: rgba(255, 138, 61, 0.14);
}

.contact__label {
  grid-area: label;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact__value {
  grid-area: value;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.3s var(--ease);
}

.contact__value--lg {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact__row--link:hover .contact__value {
  color: var(--teal-deep);
}

.contact__row--accent:hover .contact__value {
  color: var(--amber-hot);
}

.contact__action {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 35, 50, 0.12);
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.contact__row--link:hover .contact__action {
  opacity: 1;
  transform: scale(1.05);
  border-color: var(--teal);
  background: rgba(0, 194, 168, 0.12);
  color: var(--teal-deep);
}

.contact__row--accent:hover .contact__action {
  border-color: var(--amber);
  background: rgba(255, 138, 61, 0.16);
  color: var(--amber-hot);
}

.contact__meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.35rem 0.85rem 0.85rem;
  padding: 1.15rem 0.5rem 0.85rem;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.contact__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.5rem;
}

.contact__meta-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .contact__glow {
    animation: none;
  }

  .contact__row--link:hover {
    transform: none;
  }

  .contact__row--link:hover .contact__action {
    transform: none;
  }
}

/* Footer */

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

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copy,
.site-footer__note {
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__note a {
  color: var(--ink-soft);
  font-weight: 500;
}

/* Reveal animations */

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

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

.reveal-hero[data-delay="1"],
.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal-hero[data-delay="2"],
.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal-hero[data-delay="3"],
.reveal[data-delay="3"] {
  transition-delay: 0.32s;
}

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

/* Desktop layout */

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem 3rem;
    padding-top: calc(4.5rem + var(--space));
  }

  .hero__visual {
    width: min(100%, 560px);
    justify-self: end;
  }

  .hero__logo {
    width: 72px;
    height: 72px;
  }

  .services__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .services__item {
    padding: 2rem 1.65rem 2.15rem;
    min-height: 280px;
  }

  .services__item--amber {
    margin-top: 2rem;
  }

  .services__item--ink {
    margin-top: 4rem;
  }

  .contact__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 3.5rem;
    align-items: center;
  }

  .contact__panel {
    padding: 0.5rem;
  }

  .contact__row {
    padding: 1.5rem 1.6rem 1.55rem;
  }
}

@media (max-width: 599px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero__visual {
    order: -1;
    width: min(100%, 300px);
    margin-bottom: 0.5rem;
  }

  .hero {
    padding-top: calc(4.5rem + var(--space));
    min-height: auto;
    padding-bottom: 3rem;
  }
}
