/*
Theme Name: InferenceLab TECH v1.8
Theme URI: https://inferencelab.tech
Author: Krzysztof Wachowicz
Author URI: https://inferencelab.tech
Description: Produkcyjny motyw strony InferenceLab TECH release v1.8.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: inferencelab-tech
*/

:root {
  --bg: #f4f7fb;
  --bg-alt: #ebf0f8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-dark: #0d1624;
  --text: #111827;
  --muted: #536276;
  --accent: #1273ea;
  --accent-strong: #0b57c5;
  --accent-soft: rgba(18, 115, 234, 0.14);
  --line: rgba(17, 24, 39, 0.12);
  --line-strong: rgba(17, 24, 39, 0.2);
  --success: #0f9f6e;
  --danger: #d14343;
  --shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1240px;
  --content-narrow: 980px;
}

body[data-theme="dark"] {
  --bg: #07111f;
  --bg-alt: #0d1625;
  --surface: rgba(8, 17, 31, 0.72);
  --surface-strong: rgba(11, 21, 36, 0.92);
  --surface-dark: #0d1624;
  --text: #edf3ff;
  --muted: #94a4bb;
  --accent: #67b0ff;
  --accent-strong: #8ec4ff;
  --accent-soft: rgba(103, 176, 255, 0.14);
  --line: rgba(148, 164, 187, 0.16);
  --line-strong: rgba(148, 164, 187, 0.28);
  --shadow: 0 30px 80px rgba(2, 6, 23, 0.52);
  --shadow-soft: 0 18px 50px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(18, 115, 234, 0.2), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(97, 210, 185, 0.16), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 56%, var(--bg) 100%);
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
  opacity: 0.25;
}

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

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(9, 18, 32, 0.92), rgba(9, 18, 32, 0.82)),
    rgba(9, 18, 32, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .topbar {
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.88)),
    rgba(7, 17, 31, 0.9);
}

.topbar__inner,
.hero,
.section,
.footer,
.cta-band {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.brand__logo-frame,
.footer__logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand__logo {
  display: block;
  width: 250px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.menu-toggle__line {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle__line:nth-child(1) {
  top: 18px;
}

.menu-toggle__line:nth-child(2) {
  top: 24px;
}

.menu-toggle__line:nth-child(3) {
  top: 30px;
}

body.menu-open .menu-toggle__line:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle__line:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

.hero h1,
.section h2,
.footer h2 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav a {
  color: rgba(220, 232, 247, 0.84);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar__utilities {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.topbar__cta {
  flex: 0 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 115, 234, 0.18);
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.footer h2 {
  margin: 0;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  max-width: 11ch;
}

.hero__lead,
.section-heading p,
.service-card p,
.case-card p,
.trust-card p,
.pricing-card p,
.footer__text,
.contact-card li,
.faq-item p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero__meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button--primary {
  color: #f6fbff;
  background: linear-gradient(135deg, var(--accent), #35b6f2);
}

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

.button--small {
  min-height: 46px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.button--full {
  width: 100%;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.language-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(220, 232, 247, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-switch__option:hover,
.language-switch__option:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch__option.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(18, 115, 234, 0.96), rgba(53, 182, 242, 0.92));
  box-shadow: 0 10px 22px rgba(18, 115, 234, 0.22);
}

.language-switch__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(220, 232, 247, 0.78);
  cursor: pointer;
}

.theme-toggle__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #62cdbf);
  box-shadow: 0 0 0 6px rgba(18, 115, 234, 0.12);
}

.hero__visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
}

.hero__glow--one {
  width: 300px;
  height: 300px;
  top: 36px;
  left: 30px;
  background: rgba(18, 115, 234, 0.2);
}

.hero__glow--two {
  width: 220px;
  height: 220px;
  bottom: 64px;
  right: 18px;
  background: rgba(83, 219, 184, 0.2);
}

.device-cluster {
  position: relative;
  width: min(100%, 620px);
  height: 620px;
}

.device {
  position: absolute;
  border-radius: 34px;
  background: rgba(8, 16, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
}

.device__camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.device__screen {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(103, 176, 255, 0.28), transparent 28%),
    linear-gradient(180deg, #101e32, #0b1323 60%, #08101b 100%);
}

.device--phone {
  width: 246px;
  height: 510px;
  left: 28px;
  top: 66px;
  transform: rotate(-9deg);
  animation: float-phone 6s ease-in-out infinite;
}

.device--android {
  width: 250px;
  height: 524px;
  left: 208px;
  top: 24px;
  transform: rotate(4deg);
  z-index: 2;
  animation: float-android 7s ease-in-out infinite;
}

.device--tablet {
  width: 330px;
  height: 448px;
  right: 8px;
  bottom: 28px;
  border-radius: 30px;
  transform: rotate(10deg);
  animation: float-tablet 8s ease-in-out infinite;
}

.screen-card,
.screen-chart,
.screen-list,
.screen-badge,
.tablet-grid div,
.mini-ui {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.screen-card {
  padding: 18px;
  border-radius: 22px;
}

.screen-card__tag,
.case-card__tag,
.pricing-card__label,
.footer__kicker {
  display: inline-block;
  color: #d7e8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-card strong,
.case-card h3,
.pricing-card h3,
.trust-card h3,
.service-card h3,
.tech-card h3,
.timeline__item h3,
.contact-card h3,
.form-card h3,
.footer h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.screen-card strong,
.screen-chart strong {
  display: block;
  margin: 8px 0 4px;
  color: #f5fbff;
  font-size: 1.2rem;
}

.screen-card p,
.tablet-copy {
  margin: 0;
  color: rgba(220, 233, 255, 0.82);
  line-height: 1.5;
}

.screen-chart {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  color: rgba(220, 233, 255, 0.86);
}

.screen-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  color: #f5fbff;
}

.screen-list div,
.tablet-grid div,
.mini-ui {
  height: 58px;
  border-radius: 16px;
}

.screen-badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #c4f7ea;
}

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tablet-copy {
  margin-top: 16px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  position: relative;
}

.section--alt::before {
  content: "";
  position: absolute;
  inset: 26px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.section-heading {
  width: min(100%, var(--content-narrow));
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  margin-bottom: 14px;
}

.trusted {
  padding-top: 8px;
}

.logo-cloud,
.pill-list,
.contact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-cloud span,
.pill-list span,
.contact-card__meta span {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.logo-cloud--outlined span {
  background: transparent;
  border-style: dashed;
}

.service-grid,
.advantage-grid,
.benchmark-grid,
.case-grid,
.tech-grid,
.trust-grid,
.pricing-grid,
.contact-grid,
.footer__grid {
  display: grid;
  gap: 20px;
}

.service-grid,
.tech-grid,
.pricing-grid,
.footer__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benchmark-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.case-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.advantage-card,
.benchmark-card,
.case-card,
.tech-card,
.trust-card,
.pricing-card,
.contact-card,
.form-card,
.timeline__item,
.cta-band,
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.service-card,
.tech-card,
.trust-card,
.contact-card,
.form-card,
.pricing-card,
.case-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.advantage-card,
.benchmark-card,
.timeline__item,
.faq-item {
  border-radius: var(--radius-md);
  padding: 22px;
}

.advantage-card strong {
  font-size: 1rem;
  text-transform: capitalize;
}

.benchmark-card strong {
  display: block;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.benchmark-card span {
  color: var(--muted);
}

.case-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  overflow: hidden;
}

.case-card__visual {
  position: relative;
  min-height: 340px;
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
}

.case-card__visual--dark {
  background: linear-gradient(180deg, #09101c, #0e1b2d 55%, #07111f);
}

.case-card__visual--light {
  background: linear-gradient(180deg, #f9fbff, #e8f0fb 55%, #dbe7f7);
}

.case-card__modes {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card__visual--light .case-card__modes {
  color: #4f6b8e;
}

.case-card__screen {
  display: grid;
  gap: 12px;
  width: 74%;
  margin: 24px auto 0;
  padding: 22px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(22px);
  transform: perspective(1200px) rotateX(10deg);
}

.case-card__visual--light .case-card__screen {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(17, 24, 39, 0.08);
}

.mini-ui--top {
  height: 46px;
}

.mini-ui--middle {
  height: 108px;
}

.mini-ui--bottom {
  height: 76px;
}

.case-card__play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.case-card__content h3 {
  margin: 10px 0 18px;
  font-size: 1.5rem;
}

.case-card__content p {
  margin: 0 0 12px;
}

.section--timeline .timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline__item {
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}

.timeline__index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #62cdbf);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(18, 115, 234, 0.24);
}

.timeline__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline__visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 84px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(103, 176, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.timeline__visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.timeline__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 92px;
  filter: drop-shadow(0 12px 24px rgba(8, 20, 42, 0.22));
}

.timeline__visual--discovery,
.timeline__visual--build {
  background:
    radial-gradient(circle at 85% 25%, rgba(103, 176, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.timeline__visual--analysis,
.timeline__visual--qa {
  background:
    radial-gradient(circle at 82% 24%, rgba(98, 205, 191, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.timeline__visual--design,
.timeline__visual--support {
  background:
    radial-gradient(circle at 24% 22%, rgba(103, 176, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.timeline__visual--mvp,
.timeline__visual--release {
  background:
    radial-gradient(circle at 18% 24%, rgba(98, 205, 191, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.timeline__svg path[fill],
.timeline__svg rect[fill],
.timeline__svg circle[fill] {
  filter: drop-shadow(0 8px 18px rgba(18, 115, 234, 0.18));
}

.timeline__content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.timeline__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.pricing-card__list,
.feature-list,
.footer__links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card__list li,
.feature-list li,
.footer__links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 14px 0 0;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-radius: var(--radius-xl);
  padding: 34px;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 10px;
}

.contact-card,
.form-card {
  min-height: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field,
.checkbox-field {
  display: grid;
  gap: 10px;
}

.field--full {
  grid-column: 1 / -1;
}

.field span,
.checkbox-field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  overflow: hidden;
}

.file-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.file-field__text {
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.turnstile-field {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  overflow-x: auto;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(18, 115, 234, 0.25);
  border-color: rgba(18, 115, 234, 0.38);
}

.file-field:focus-within {
  outline: 2px solid rgba(18, 115, 234, 0.25);
  border-color: rgba(18, 115, 234, 0.38);
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-field input {
  margin-top: 4px;
}

.status-message {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 700;
}

.status-message--success {
  background: rgba(15, 159, 110, 0.12);
  color: var(--success);
  border: 1px solid rgba(15, 159, 110, 0.2);
}

.status-message--error {
  background: rgba(209, 67, 67, 0.1);
  color: var(--danger);
  border: 1px solid rgba(209, 67, 67, 0.2);
}

.footer {
  padding: 56px 0 34px;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(18, 115, 234, 0.1), transparent 30%),
    radial-gradient(circle at left center, rgba(97, 210, 185, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 245, 252, 0.98));
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.footer__grid {
  align-items: start;
}

.footer__text {
  max-width: 48ch;
  color: var(--muted);
}

.footer__logo-frame {
  margin-bottom: 18px;
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 176, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(10, 22, 38, 0.96));
  box-shadow: 0 18px 34px rgba(8, 17, 31, 0.16);
}

.footer__logo {
  display: block;
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

.footer h2,
.footer h3 {
  color: var(--text);
}

.footer__links li {
  border-bottom-color: var(--line);
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer__bottom a {
  color: var(--accent-strong);
  font-weight: 700;
}

body[data-theme="dark"] .footer {
  color: #e8f1ff;
  background:
    radial-gradient(circle at top right, rgba(18, 115, 234, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(10, 22, 38, 1));
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body[data-theme="dark"] .footer__text {
  color: rgba(223, 234, 249, 0.78);
}

body[data-theme="dark"] .footer__logo-frame {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-theme="dark"] .footer h2,
body[data-theme="dark"] .footer h3 {
  color: #f7fbff;
}

body[data-theme="dark"] .footer__links li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(223, 234, 249, 0.78);
}

body[data-theme="dark"] .footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: rgba(223, 234, 249, 0.72);
}

body[data-theme="dark"] .footer__bottom a {
  color: #f7fbff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes float-phone {
  0%,
  100% {
    transform: rotate(-9deg) translateY(0);
  }

  50% {
    transform: rotate(-7deg) translateY(-12px);
  }
}

@keyframes float-android {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }

  50% {
    transform: rotate(6deg) translateY(-16px);
  }
}

@keyframes float-tablet {
  0%,
  100% {
    transform: rotate(10deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(-10px);
  }
}

@media (max-width: 1180px) {
  .hero,
  .case-grid,
  .contact-grid,
  .service-grid,
  .tech-grid,
  .pricing-grid,
  .trust-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 26px;
  }

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

  .benchmark-grid,
  .section--timeline .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-cluster {
    height: 560px;
    transform: scale(0.92);
  }
}

@media (max-width: 900px) {
  .hero__actions,
  .cta-band,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__inner {
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
    column-gap: 8px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin-left: 0;
    border-radius: 14px;
  }

  .nav,
  .topbar__cta {
    display: none;
    width: 100%;
    order: 4;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 18, 32, 0.88);
    padding: 12px;
    backdrop-filter: blur(18px);
  }

  .brand {
    align-items: center;
    flex-direction: row;
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand__logo {
    width: min(48vw, 188px);
  }

  body.menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  body.menu-open .topbar__cta {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .topbar__cta.button--small {
    width: 100%;
    justify-content: center;
  }

  .topbar__utilities {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .language-switch {
    padding: 3px;
  }

  .language-switch__option {
    min-width: 38px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .theme-toggle {
    min-height: 40px;
    padding: 0 12px;
    gap: 8px;
  }

  .theme-toggle__label {
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
    max-width: 10ch;
    line-height: 1.02;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 24px;
  }

  .hero__visual {
    min-height: 390px;
  }

  .device-cluster {
    height: 360px;
    transform: scale(0.6);
    transform-origin: center top;
  }

  .form-grid,
  .benchmark-grid,
  .advantage-grid,
  .section--timeline .timeline {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    column-gap: 6px;
  }

  .brand__logo {
    width: min(42vw, 164px);
  }

  .topbar__utilities {
    gap: 6px;
  }

  .language-switch__option {
    min-width: 34px;
    min-height: 30px;
    padding: 0 8px;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0 10px;
  }

  .theme-toggle__label {
    display: none;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-toggle__line:nth-child(1) {
    top: 14px;
  }

  .menu-toggle__line:nth-child(2) {
    top: 20px;
  }

  .menu-toggle__line:nth-child(3) {
    top: 26px;
  }

  body.menu-open .menu-toggle__line:nth-child(1),
  body.menu-open .menu-toggle__line:nth-child(3) {
    top: 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .hero__visual {
    min-height: 330px;
  }

  .device-cluster {
    height: 310px;
    transform: scale(0.5);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
