:root {
  --red: #e31c23;
  --red-dark: #c41018;
  --purple: #4b1a6b;
  --purple-deep: #2a0d42;
  --purple-mid: #3d1558;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --bg: #f4f4f4;
  --white: #ffffff;
  --lilac: #f3eef8;
  --wrap: min(1180px, calc(100% - 2rem));
  --font: "Manrope", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(227, 28, 35, 0.28);
}

.btn--red:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn--lg {
  padding: 1rem 1.7rem;
  font-size: 1rem;
}

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.masthead__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo img {
  height: 32px;
  width: auto;
}

.masthead__badge {
  margin: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
}

.masthead__meta a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.masthead__meta a:hover {
  text-decoration: underline;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.masthead__phone {
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.masthead__phone:hover {
  color: var(--red);
}

.nav-bar {
  background: var(--purple);
}

.nav-bar__in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  padding: 0.85rem 0;
}

.nav-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.92;
}

.nav-bar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  position: relative;
  background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__star {
  font-size: 0.55em;
  vertical-align: super;
}

.hero__lead {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: #888;
  max-width: 42ch;
  line-height: 1.45;
}

.hero__expertise {
  padding: 0.5rem 0 0 1.5rem;
  border-left: 1px solid #ddd;
}

.hero__expertise-title {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.rank-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.rank-list strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ink);
}

.rank-list__brand {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rank-list__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__all {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.hero__all:hover {
  text-decoration: underline;
}

.hero__slash {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(42vw, 520px);
  background: linear-gradient(135deg, transparent 0%, transparent 38%, #e8e8e8 38.2%, #e0e0e0 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

.seo-band {
  position: relative;
  background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-deep) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.seo-band__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 48px;
  background: #efefef;
  clip-path: ellipse(70% 100% at 50% 0%);
}

.seo-band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  text-align: center;
}

.seo-band__lead {
  margin: 0 auto 2.5rem;
  max-width: 48ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.seo-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.seo-col {
  text-align: center;
}

.seo-col__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(167, 98, 220, 0.25);
  color: #d4a8ff;
  font-size: 1.25rem;
}

.seo-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.seo-band__cta {
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.seo-band__cta p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  padding: 4.25rem 0;
  background: var(--white);
}

.section--soft {
  background: var(--bg);
}

.section--lilac {
  background: var(--lilac);
}

.section--purple {
  background: var(--purple-deep);
  color: #fff;
}

.section__head {
  margin-bottom: 2rem;
}

.section__head--center {
  text-align: center;
}

.section__head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.section__head--center p {
  margin-inline: auto;
}

.section--purple .section__head p,
.section--purple blockquote {
  color: rgba(255, 255, 255, 0.78);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proc {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.proc:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.proc span {
  display: block;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.proc h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.proc ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.dev-grid,
.adv-grid,
.price-grid,
.award-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dev-card,
.adv,
.price-card,
.award,
.case {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.case:hover .case__media img {
  transform: scale(1.04);
}

.case__body {
  padding: 1.05rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dev-card:hover,
.adv:hover,
.price-card:hover,
.award:hover,
.case:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(75, 26, 107, 0.1);
  border-color: rgba(75, 26, 107, 0.25);
}

.dev-card h3,
.adv h3,
.price-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.dev-card p,
.adv p,
.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin: 1rem 0 1rem !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}

.award {
  text-align: center;
}

.award strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.award p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about__grid h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 2rem;
}

.about__grid blockquote {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.45;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

.about__role {
  margin: 0;
  font-weight: 700;
  color: #d4a8ff;
}

.about__team p {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.about__team ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.case__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}

.case__top span {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.case a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.case a:hover {
  text-decoration: underline;
}

.lead-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.lead-grid h2,
.contact-grid h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.85rem;
}

.lead-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  text-align: center;
  box-sizing: border-box;
  padding: 2.25rem 1.75rem;
  height: 100%;
  min-height: 100%;
  background:
    radial-gradient(ellipse 80% 70% at 50% 20%, rgba(227, 28, 35, 0.12), transparent 62%),
    linear-gradient(160deg, #f7f3fb 0%, #fff 55%, #f3eef8 100%);
  border: 1px solid var(--line);
}

.lead-intro__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.lead-intro h2 {
  margin: 0 0 0.85rem;
}

.lead-intro__text {
  margin: 0 0 1.25rem;
  max-width: 22rem;
  color: var(--muted);
  line-height: 1.45;
}

.lead-intro__text a {
  color: var(--ink);
  font-weight: 600;
}

.lead-phone {
  margin: 0 0 0.85rem;
}

.lead-phone a {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.lead-phone a:hover {
  text-decoration: underline;
}

.lead-intro__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem;
}

.lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid rgba(227, 28, 35, 0.35);
  border-color: var(--red);
}

.form-msg {
  margin: 0;
  font-size: 0.9rem;
}

.section-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1.25rem;
}

.section-links a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.section-links a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #1a1a1a;
  color: #9a9a9a;
  padding: 0.85rem 0;
  font-size: 0.82rem;
}

.site-footer__in p {
  margin: 0;
  line-height: 1.45;
}

.site-footer a {
  color: #c9c9c9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .hero__grid,
  .seo-cols,
  .process-grid,
  .dev-grid,
  .adv-grid,
  .price-grid,
  .award-grid,
  .case-grid,
  .about__grid,
  .lead-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__slash {
    opacity: 0.45;
  }

  .masthead__meta {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero__grid,
  .seo-cols,
  .process-grid,
  .dev-grid,
  .adv-grid,
  .price-grid,
  .award-grid,
  .case-grid,
  .about__grid,
  .lead-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .masthead__badge {
    display: none;
  }

  .hero__expertise {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .nav-bar__in {
    gap: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .proc:hover,
  .dev-card:hover,
  .adv:hover,
  .price-card:hover,
  .award:hover,
  .case:hover {
    transform: none;
  }
}

/* Privacy consent */
.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0.15rem 0 0.35rem;
}
.consent input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: currentColor;
}
.consent a { text-decoration: underline; }
.form-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.9;
}
.form-note a { text-decoration: underline; }
@media (max-width: 720px) {
  .site-footer {
    padding: 0.75rem 0;
  }
  .site-footer__in p {
    font-size: 0.78rem;
  }
  .lead-intro {
    padding: 1.75rem 1.25rem;
    min-height: auto;
  }
  .section-links {
    grid-template-columns: 1fr;
  }
}
.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.legal-page h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.legal-page h2 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}
.legal-page p, .legal-page li {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  font-size: 0.95rem;
}
.legal-page ul { padding-left: 1.2rem; margin: 0 0 0.75rem; }
.legal-page .back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.9rem; }

/* Legal pages */
.legal-page {
  width: min(760px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
  line-height: 1.55;
}
.legal-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.legal-page h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.15rem;
}
.legal-page p,
.legal-page li {
  color: inherit;
  opacity: 0.9;
}
.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 0.75rem;
}
.legal-page .back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Consent checkbox */
.consent {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  line-height: 1.4;
}
.consent input[type="checkbox"] {
  width: 1.1rem !important;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex: none;
}
.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === MOBILE HARDENING === */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
}
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}
.wrap {
  width: min(1180px, calc(100% - 1.5rem));
}
input,
textarea,
select,
button {
  max-width: 100%;
  font-size: 16px; /* avoid iOS zoom */
}
.form input,
.form textarea,
.form select {
  width: 100%;
  box-sizing: border-box;
}
.cookie-bar {
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
}

@media (max-width: 720px) {
  .nav {
    display: none !important;
  }
  h1 {
    font-size: clamp(1.65rem, 8vw, 2.35rem) !important;
    max-width: none !important;
  }
  h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
  }
  .section,
  section.section {
    padding-left: 0;
    padding-right: 0;
  }
  .hero,
  .section {
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }
}

@media (max-width: 720px) {
  .masthead__in {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .masthead__meta {
    display: none;
  }
  .masthead__actions {
    margin-left: auto;
  }
  .nav-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-bar__in {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 0.75rem 1.1rem;
    padding-bottom: 0.15rem;
  }
  .nav-bar a {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .hero__grid,
  .seo-cols,
  .process-grid,
  .dev-grid,
  .adv-grid,
  .price-grid,
  .award-grid,
  .case-grid,
  .about__grid,
  .lead-grid,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr !important;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .process-step,
  .price-card,
  .award,
  .case {
    min-width: 0;
  }
}

