:root {
  --accent: #f0780d;
  --accent-strong: #fe8e02;
  --accent-soft: rgba(240, 120, 13, 0.12);
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6a6a6a;
  --border: #e6e6e3;
  --header: rgba(255, 255, 255, 0.86);
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
  --shadow-lg: 0 24px 50px rgba(20, 20, 20, 0.12);
  --laptop: #d8dce2;
  --laptop-dark: #c2c7cf;
  --phone: #1b1c22;
  --radius: 12px;
  --header-h: 84px;
  --container: 1360px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-alt: #181818;
  --bg-card: #1e1e1e;
  --text: #f3f3f3;
  --text-muted: #a8a8a8;
  --border: #2d2d2d;
  --header: rgba(18, 18, 18, 0.88);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.4);
  --laptop: #3a3d44;
  --laptop-dark: #2a2d33;
  --phone: #0d0e12;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  flex: 0 0 auto;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-dark {
  display: none;
}

html[data-theme="dark"] .logo-light {
  display: none;
}

html[data-theme="dark"] .logo-dark {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] .icon-sun,
html[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 120, 13, 0.25);
}

.btn-primary:hover {
  background: #dc6a08;
}

.btn-outline {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text);
}

html[data-theme="dark"] .btn-outline {
  border-color: #f3f3f3;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.arrow {
  font-size: 1.05em;
  line-height: 1;
}

.landing {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  height: calc(100dvh - var(--header-h));
  height: calc(100svh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow: hidden;
  box-sizing: border-box;
}

.hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 0 12px;
  overflow: hidden;
}

.hero > .container {
  width: min(calc(100% - 40px), var(--container));
  max-width: var(--container);
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}

.hero-scroll:hover {
  color: var(--accent);
}

.hero-scroll-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }

  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: 0.55;
  }
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

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

.hero-copy p {
  max-width: 52ch;
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-devices {
  position: relative;
}

.hero-devices .device--iphone {
  position: relative;
  z-index: 2;
  width: min(260px, 30vh);
  margin-left: auto;
  margin-right: 0;
}

.hero-devices .device--macbook {
  position: absolute;
  left: 0;
  right: 20%;
  bottom: 2%;
  z-index: 1;
  width: auto;
  opacity: 0.96;
}

.device--iphone {
  container-type: inline-size;
}

.device--iphone .device__frame {
  position: relative;
  width: 100%;
  padding: 10px;
  padding: 3.7cqi;
  overflow: hidden;
  border-radius: 42px;
  border-radius: 15.5cqi;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), var(--shadow-lg);
}

.device--iphone .device__island {
  position: absolute;
  top: 16px;
  top: 5.9cqi;
  left: 50%;
  z-index: 2;
  width: 88px;
  width: 32.6cqi;
  height: 24px;
  height: 8.9cqi;
  transform: translateX(-50%);
  border-radius: 20px;
  border-radius: 7.4cqi;
  background: #0d0d0d;
}

.device--iphone .device__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 34px;
  border-radius: 12.6cqi;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.device--iphone .device__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.device--macbook .device__lid {
  position: relative;
  padding: 14px 14px 10px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #3a3a3c 0%, #1d1d1f 100%);
  box-shadow: var(--shadow-lg);
}

.device--macbook .device__camera {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2a2a2c;
  box-shadow: inset 0 0 0 1px #444;
}

.device--macbook .device__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 16 / 10;
}

.device--macbook .device__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top center;
}

.device--macbook .device__base {
  height: 14px;
  margin: 0 8%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #c8c8ca 0%, #a1a1a3 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.device--macbook .device__base::before {
  content: "";
  display: block;
  width: 18%;
  height: 4px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: #8e8e90;
  transform: translateY(-2px);
}

.trust {
  background: var(--bg-alt);
  padding: 16px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.trust-icon svg,
.service-icon svg,
.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item h2 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-lg);
}

.service-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.approach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.approach-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.approach-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: none;
  position: relative;
}

.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
}

.process-num {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-group {
  margin-top: 48px;
}

.project-group:first-of-type {
  margin-top: 8px;
}

.project-group + .project-group {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.project-group-title {
  margin: 0 0 22px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.project--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.project--reverse .project-body {
  order: -1;
}

.project-devices {
  position: relative;
  min-height: 440px;
}

.project-devices .device--iphone {
  position: relative;
  z-index: 2;
  width: min(100%, 230px);
  margin-left: auto;
  margin-right: 0.35rem;
}

.project-devices .device--macbook {
  position: absolute;
  left: 0;
  bottom: 8px;
  z-index: 1;
  width: 78%;
  opacity: 0.96;
}

.project-devices--mac {
  min-height: 0;
}

.project-devices--mac .device--macbook {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  opacity: 1;
}

.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.project-body h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.project-url {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.project-body p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.checks {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.about-contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-block h2,
.contact-block h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.about-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.about-photo {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
}

.about-block .lead {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.about-block p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
}

.contact-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.contact-lines {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-lines a,
.contact-lines span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.contact-lines a:hover {
  color: var(--accent);
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 22px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner .logo-img {
  height: 32px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
}

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

  .landing .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 24px;
  }

  .project-body {
    order: -1;
  }

  .project-devices {
    max-width: 520px;
    min-height: 260px;
    position: relative;
  }

  .contact-block {
    padding: 28px 24px;
  }

  .project-devices .device--iphone {
    width: min(42%, 150px);
    margin-left: auto;
    margin-right: 0;
  }

  .project-devices .device--macbook {
    position: absolute;
    left: 0;
    right: 20%;
    bottom: 4px;
    width: auto;
    opacity: 0.96;
  }

  .project-devices--mac {
    min-height: 0;
    max-width: 640px;
  }

  .project-devices--mac .device--macbook {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 480px);
    opacity: 1;
  }

  .trust-grid,
  .services-grid,
  .approach,
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body {
    padding-top: var(--header-h);
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: auto;
    left: auto;
    z-index: 60;
    width: min(86vw, 360px);
    height: calc(100dvh - var(--header-h));
    height: calc(100svh - var(--header-h));
    overflow-y: auto;
    background: #ffffff;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 16px;
  }

  .menu-toggle {
    display: grid;
  }

  .landing {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .hero {
    padding-top: 12px;
    min-height: calc(100dvh - var(--header-h) - 3.5rem);
    min-height: calc(100svh - var(--header-h) - 3.5rem);
  }

  .hero-scroll {
    order: 1;
  }

  .trust {
    order: 2;
    padding: 28px 0 36px;
  }

  .hero-devices {
    display: none;
  }

  .landing .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-grid,
  .services-grid,
  .approach,
  .process,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
    text-align: left;
  }

  .landing .hero-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .landing .hero-copy p {
    margin-bottom: 16px;
    font-size: 0.92rem;
  }

  .logo-img {
    height: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
