@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #edf2fb;
  --bg-deep: #dfe8f8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-muted: rgba(246, 250, 255, 0.92);
  --ink: #0d1b34;
  --ink-soft: #3c4f72;
  --ink-faint: #6a7a98;
  --accent: #1f66ff;
  --accent-strong: #1143b0;
  --accent-alt: #ffc83a;
  --accent-alt-strong: #a67400;
  --line: rgba(13, 27, 52, 0.16);
  --line-strong: rgba(13, 27, 52, 0.3);
  --shadow-soft: 0 14px 28px rgba(21, 33, 62, 0.11);
  --shadow-card: 10px 10px 0 rgba(13, 27, 52, 0.08);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 15% -10%, rgba(31, 102, 255, 0.25), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(255, 200, 58, 0.28), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(31, 102, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 102, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.42;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 0.74rem;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.2rem 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(135deg, rgba(31, 102, 255, 0.07) 0 10px, rgba(255, 255, 255, 0.12) 10px 20px);
}

.eyebrow {
  margin: 0 0 0.74rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow small {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.22rem;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #4e84ff);
  box-shadow: 0 8px 0 rgba(17, 67, 176, 0.34);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 rgba(17, 67, 176, 0.38);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 200, 58, 0.2);
  border-color: var(--accent-alt-strong);
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 2px solid var(--line);
  background: rgba(245, 249, 255, 0.92);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  flex-shrink: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--line-strong);
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.82rem;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.42rem 0.56rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(31, 102, 255, 0.14);
}

.nav-cta {
  margin-left: 0.54rem;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
}

.hero {
  position: relative;
  padding: 6.8rem 0 5.2rem;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: 60px;
  border-radius: 28px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(31, 102, 255, 0.22), rgba(255, 200, 58, 0.2));
  border: 2px solid rgba(13, 27, 52, 0.08);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.9fr);
  gap: 1.14rem;
  align-items: stretch;
}

.hero-copy {
  animation: slide-rise 0.64s ease both;
}

.hero-copy h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 5.2vw, 4.28rem);
}

.hero-copy p {
  max-width: 60ch;
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-panel {
  position: relative;
  border-radius: 16px;
  border: 2px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 255, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
  animation: slide-rise 0.64s ease 0.16s both;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 74px;
  height: 74px;
  border-top: 5px solid var(--accent-alt);
  border-left: 5px solid var(--accent-alt);
  border-radius: 14px 0 0 0;
}

.hero-panel h2 {
  font-size: 1.24rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--ink-soft);
}

.hero-panel li + li {
  margin-top: 0.55rem;
}

.section-head {
  max-width: 74ch;
  margin-bottom: 1.85rem;
}

.section-head p {
  margin-top: 0.64rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1.02rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 rgba(13, 27, 52, 0.12);
}

.icon {
  width: 2.3rem;
  height: 2.3rem;
  margin-bottom: 0.86rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(31, 102, 255, 0.16), rgba(255, 200, 58, 0.22));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.3rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.66rem;
}

.check-list li {
  position: relative;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-soft);
  padding: 0.75rem 0.82rem 0.75rem 2.18rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0.76rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 102, 255, 0.2);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
  margin: 0 auto;
}

.case-card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.case-card summary {
  display: inline-block;
  margin-top: 0.86rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: rgba(31, 102, 255, 0.12);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.case-card summary::-webkit-details-marker {
  display: none;
}

.case-card summary:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.case-card details[open] summary {
  margin-bottom: 0.1rem;
}

.shot {
  margin-bottom: 0.84rem;
  border-radius: 10px;
  border: 2px dashed rgba(17, 67, 176, 0.45);
  background: linear-gradient(135deg, rgba(31, 102, 255, 0.16), rgba(255, 200, 58, 0.2));
  color: var(--accent-strong);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.92rem;
}

.meta {
  margin-top: 0.72rem;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-feedback {
  margin-top: 2rem;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  padding: 1rem;
}

blockquote cite {
  display: block;
  margin-top: 0.82rem;
  color: var(--ink-faint);
  font-style: normal;
}

blockquote cite a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}

blockquote cite a:hover,
blockquote cite a:focus-visible {
  color: var(--accent-strong);
}

.stars {
  margin-bottom: 0.6rem;
  color: #ffb400;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.logo-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
}

.logo-row span {
  border-radius: 999px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 0.42rem 0.84rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.blog-card h3 {
  font-size: 1.1rem;
}

.blog-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.8rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.blog-card a:hover {
  color: var(--ink);
}

.cta-band {
  padding: 4.2rem 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(132deg, rgba(31, 102, 255, 0.22), rgba(255, 200, 58, 0.24)),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.48) 0 14px, rgba(255, 255, 255, 0.2) 14px 28px);
}

.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  border-radius: 14px;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font: inherit;
  padding: 0.73rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 102, 255, 0.2);
}

.site-footer {
  border-top: 2px solid var(--line);
  padding: 1rem 0 1.4rem;
}

.theme-picker {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  background: rgba(247, 251, 255, 0.96);
  box-shadow: var(--shadow-soft);
  min-width: 182px;
  padding: 0.62rem;
}

.theme-picker__label {
  margin: 0 0 0.44rem;
  color: var(--ink-faint);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  font-weight: 700;
  text-transform: uppercase;
}

.theme-picker__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.theme-choice {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.42rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.theme-choice:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.theme-choice.is-active {
  border-color: var(--accent-strong);
  background: linear-gradient(135deg, var(--accent), #4e84ff);
  color: #ffffff;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-wrap nav a {
  color: var(--ink-faint);
  font-weight: 600;
}

.footer-wrap nav a:hover {
  color: var(--accent-strong);
}

.legal-page main {
  padding: 4.6rem 0 3.1rem;
}

.legal-card {
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 1.6rem);
  animation: slide-rise 0.6s ease both;
}

.legal-content h1 {
  margin-bottom: 0.42rem;
  font-size: clamp(1.85rem, 3.7vw, 2.62rem);
}

.legal-content h2 {
  margin-top: 1.35rem;
  margin-bottom: 0.54rem;
  font-size: 1.12rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content p + p {
  margin-top: 0.68rem;
}

.legal-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 0.42rem;
}

.legal-meta {
  margin-bottom: 0.8rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-actions {
  margin-top: 1.38rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.cards-grid .card,
.case-grid .case-card,
.blog-grid .blog-card {
  opacity: 0;
  transform: translateY(14px);
  animation: slide-rise 0.54s ease forwards;
}

.cards-grid .card:nth-child(1),
.case-grid .case-card:nth-child(1),
.blog-grid .blog-card:nth-child(1) {
  animation-delay: 0.08s;
}

.cards-grid .card:nth-child(2),
.blog-grid .blog-card:nth-child(2) {
  animation-delay: 0.14s;
}

.cards-grid .card:nth-child(3),
.blog-grid .blog-card:nth-child(3) {
  animation-delay: 0.2s;
}

.cards-grid .card:nth-child(4),
.blog-grid .blog-card:nth-child(4) {
  animation-delay: 0.26s;
}

.blog-grid .blog-card:nth-child(5) {
  animation-delay: 0.32s;
}

.blog-grid .blog-card:nth-child(6) {
  animation-delay: 0.38s;
}

@keyframes slide-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .cards-grid,
  .case-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .menu-toggle + .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 5;
    border: 2px solid var(--line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-soft);
    background: rgba(245, 250, 255, 0.98);
    padding: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.52rem;
  }

  .menu-toggle + .main-nav.open {
    display: flex;
  }

  .menu-toggle + .main-nav a {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 5.9rem;
  }

  .hero-grid,
  .split,
  .feedback-grid,
  .cta-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .cards-grid,
  .case-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page main {
    padding-top: 3.7rem;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4.2rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .theme-picker {
    left: 0.8rem;
    right: 0.8rem;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .cards-grid .card,
  .case-grid .case-card,
  .blog-grid .blog-card {
    opacity: 1;
    transform: none;
  }
}
