:root {
  --bg: #fffdf6;
  --surface: #ffffff;
  --ink: #3d3252;
  --muted: #645a79;
  --line: #eadff4;
  --brand: #ffd86b;
  --brand-deep: #f5b84f;
  --accent: #66d8cf;
  --rose: #f7a8c6;
  --shadow: 0 20px 48px rgba(98, 68, 126, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, #fff3b8 0, rgba(255, 243, 184, 0) 42%),
    radial-gradient(circle at 8% 92%, #c9f5ef 0, rgba(201, 245, 239, 0) 42%),
    radial-gradient(circle at 50% 40%, #ffe1ec 0, rgba(255, 225, 236, 0) 45%),
    var(--bg);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 252, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Arial Rounded MT Bold", "Arial", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 36px;
  overflow: hidden;
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  height: 36px;
}

.brand-main {
  display: inline-block;
  font-family: "Arial Rounded MT Bold", "Arial", sans-serif;
  font-size: 1.25rem;
  text-transform: lowercase;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.brand-main.is-exit {
  transform: translateX(-70px);
  opacity: 0;
}

.brand-typing {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Arial Unicode MS", "Arial", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
  opacity: 0;
  white-space: nowrap;
}

.brand-typing.is-active {
  opacity: 1;
}

.brand-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  background: currentColor;
  animation: brand-caret 0.8s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes brand-caret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent), #88e1da);
  color: #fff;
  padding: 0.62rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(102, 216, 207, 0.35);
  filter: saturate(1.08);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.hero {
  padding: 5.8rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: 1fr;
}

h1,
h2,
h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-top: 0.8rem;
}

.lead {
  margin-top: 1rem;
  max-width: 59ch;
  color: var(--muted);
}

.actions {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.76rem 1.12rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(145deg, #ffe588, #f7a8c6);
  color: #3d3252;
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
}

.hero-card {
  background: var(--surface);
  border: 1px solid #f0f3f7;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-top {
  padding: 1.2rem 1.2rem 0.8rem;
  border-bottom: 1px solid #eff4fb;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 1.2rem 1.2rem;
}

.kpi {
  border: 1px solid #eaf0f8;
  border-radius: 14px;
  padding: 0.8rem;
  background: #fbfdff;
}

.kpi strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.kpi span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 3.4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e8eef6;
  padding: 1.1rem;
}

.card h3 {
  font-size: 1.08rem;
}

.card p {
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 0.95fr 1.05fr;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.42rem;
  font-weight: 800;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.step {
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e8eef6;
}

.step small {
  color: #8a95a5;
  font-weight: 700;
}

.page-hero {
  padding: 4.4rem 0 2rem;
}

.page-hero p {
  max-width: 70ch;
  margin-top: 0.7rem;
  color: var(--muted);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case {
  border-radius: 18px;
  border: 1px solid #e7ecf6;
  background: #fff;
  overflow: hidden;
}

.case-banner {
  height: 120px;
  background: linear-gradient(130deg, #111827, #1f2937 35%, #334155 100%);
}

.case-body {
  padding: 1rem;
}

.metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.metrics span {
  border-radius: 999px;
  background: #f1f5fb;
  border: 1px solid #dde6f3;
  padding: 0.24rem 0.58rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-card,
.form-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e7ecf6;
  padding: 1rem;
}

.field {
  margin-bottom: 0.7rem;
}

.field label {
  display: block;
  margin-bottom: 0.26rem;
  font-weight: 600;
  color: #354154;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fbfcff;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #dbe4ef;
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

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

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #dce5f1;
    padding: 0.8rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open {
    display: flex;
  }

  .cards,
  .portfolio,
  .process,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.7rem;
  }
}
