:root {
  --ink: #111116;
  --muted: #646675;
  --soft: #f5f5f7;
  --paper: #ffffff;
  --line: #e0e0e6;
  --blue: #dbeafe;
  --blue-strong: #1967ff;
  --lilac: #eee6ff;
  --mint: #ddf8ef;
  --citrus: #fff0aa;
  --peach: #ffe3d8;
  --dark-card: #17171f;
  --radius: 28px;
  --shadow: 0 30px 90px rgba(17, 17, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 8%, rgba(219, 234, 254, 0.9), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 240, 170, 0.75), transparent 24%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #ffffff 100%);
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(17, 17, 22, 0.06),
    0 18px 55px rgba(17, 17, 22, 0.13);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #33343c;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header nav a.home-link {
  width: 40px;
  padding: 0;
}

.site-header nav a svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: #fff;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  margin: 0 auto;
  padding: 132px 0 88px;
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-copy p:not(.eyebrow),
.intro-panel p,
.contact-card p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-strong);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(17, 17, 22, 0.18);
}

.secondary-link {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-3px);
}

.hero-stage {
  position: relative;
  min-height: 680px;
  perspective: 1400px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: saturate(1.05);
}

.ambient-one {
  inset: 34px auto auto 50px;
  width: 270px;
  height: 270px;
  background: var(--citrus);
}

.ambient-two {
  right: 10px;
  bottom: 70px;
  width: 320px;
  height: 320px;
  background: var(--blue);
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(17, 17, 22, 0.08);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 500ms cubic-bezier(0.2, 1, 0.2, 1);
}

.hero-stage:hover .browser-card {
  transform: rotateX(6deg) rotateY(-8deg) translateY(-8px);
}

.hero-stage:hover .phone-card {
  transform: rotate(-5deg) translateY(-16px);
}

.hero-stage:hover .note-card {
  transform: rotate(2deg) translateY(-10px);
}

.browser-card {
  top: 72px;
  right: 0;
  width: min(92%, 620px);
  min-height: 430px;
  overflow: hidden;
  transform: rotateX(7deg) rotateY(-10deg);
  transform-origin: center;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}

.browser-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff6257;
}

.browser-top span:nth-child(2) {
  background: #ffbd2e;
}

.browser-top span:nth-child(3) {
  background: #28c840;
}

.browser-top small {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 750;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  padding: 20px;
}

.dash-hero,
.dash-stat,
.dash-line {
  border-radius: 24px;
  background: var(--soft);
}

.dash-hero {
  min-height: 190px;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(25, 103, 255, 0.16), transparent 48%),
    var(--blue);
}

.dash-hero b {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.dash-hero span,
.dash-stat span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.dash-stat {
  min-height: 92px;
  padding: 18px;
}

.dash-stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.dash-line {
  height: 72px;
}

.dash-line.short {
  height: 72px;
  background: var(--lilac);
}

.phone-card {
  left: 20px;
  bottom: 48px;
  width: 214px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-8deg);
}

.phone-card img {
  width: 100%;
  filter: drop-shadow(0 24px 42px rgba(17, 17, 22, 0.18));
}

.note-card {
  right: 38px;
  bottom: 26px;
  width: 250px;
  padding: 24px;
  background: var(--dark-card);
  color: #fff;
  transform: rotate(4deg);
}

.note-card span {
  color: #b9ffdc;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.note-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro-panel {
  width: min(1040px, calc(100vw - 32px));
  margin: 0 auto 32px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 38px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.intro-panel p {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.055em;
}

.section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(78px, 11vw, 150px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

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

.service-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 22, 0.06);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.service-card:nth-child(1) {
  background: var(--blue);
}

.service-card:nth-child(2) {
  background: var(--citrus);
}

.service-card:nth-child(3) {
  background: var(--mint);
}

.service-card:nth-child(4) {
  background: var(--lilac);
}

.service-card:nth-child(5) {
  background: var(--dark-card);
  color: #fff;
}

.service-card:nth-child(5) p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card:nth-child(6) {
  background: var(--peach);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(17, 17, 22, 0.14);
}

.service-icon {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 22, 0.08);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
}

.ios-icon::before {
  inset: 13px 21px;
  border: 4px solid var(--ink);
  border-radius: 14px;
}

.web-icon::before {
  inset: 18px 12px;
  border: 4px solid var(--ink);
  border-radius: 10px;
}

.web-icon::after {
  left: 18px;
  right: 18px;
  top: 30px;
  height: 4px;
  background: var(--ink);
}

.shop-icon::before {
  left: 17px;
  top: 22px;
  width: 44px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 7px;
}

.shop-icon::after {
  left: 25px;
  top: 14px;
  width: 24px;
  height: 20px;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.auto-icon::before {
  inset: 15px;
  border: 4px solid var(--ink);
  border-radius: 999px;
}

.auto-icon::after {
  left: 35px;
  top: 8px;
  width: 8px;
  height: 60px;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(45deg);
}

.ops-icon::before {
  inset: 18px;
  border-radius: 999px;
  background: #fff;
}

.ops-icon::after {
  left: 20px;
  top: 34px;
  width: 38px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
}

.brand-icon::before {
  inset: 16px;
  border-radius: 18px;
  border: 4px solid var(--ink);
  transform: rotate(8deg);
}

.brand-icon::after {
  left: 31px;
  top: 31px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
}

.service-card h3 {
  margin: 42px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.45;
}

.work-section {
  width: min(1280px, calc(100vw - 32px));
}

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

.work-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 36px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 22, 0.06);
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.work-shot {
  width: min(270px, 76%);
  max-height: 360px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 26px 42px rgba(17, 17, 22, 0.14));
}

.work-shot-wide {
  width: min(470px, 96%);
  max-height: 330px;
}

.work-type {
  margin: 0 0 10px;
  color: var(--blue-strong);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.84rem;
}

.work-card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.work-card p:last-child {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
}

.client-card {
  grid-column: 1 / -1;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 240, 170, 0.2), transparent 26%),
    radial-gradient(circle at 12% 12%, rgba(25, 103, 255, 0.34), transparent 28%),
    var(--dark-card);
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.client-copy h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.client-copy p:last-child {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.5;
}

.flag-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 260px;
}

.flag-circle {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  margin-left: -16px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 3.1rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.contact-section {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 70px 0 28px;
}

.contact-card {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 240, 170, 0.2), transparent 24%),
    radial-gradient(circle at 18% 10%, rgba(25, 103, 255, 0.24), transparent 30%),
    var(--dark-card);
  overflow: hidden;
}

.contact-card .eyebrow {
  color: #9fc2ff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.contact-option {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.contact-option:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
}

.contact-option span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-option strong {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.email-option {
  grid-column: span 2;
  min-height: 160px;
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.email-option:hover {
  background: #fff;
  border-color: #fff;
}

.email-option span {
  color: var(--blue-strong);
}

.email-option strong {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 1, 0.2, 1);
}

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

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

  .hero-stage {
    min-height: 620px;
  }

  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

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

  .flag-row {
    justify-content: flex-start;
  }

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

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    padding: 5px;
  }

  .site-header nav a {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .site-header nav a.home-link {
    width: 36px;
  }

  .hero {
    width: min(100% - 22px, 1180px);
    padding-top: 112px;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-card h2 {
    font-size: clamp(3rem, 13vw, 5rem);
    letter-spacing: -0.065em;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .email-option {
    grid-column: span 1;
  }

  .hero-stage {
    min-height: 560px;
  }

  .browser-card {
    top: 36px;
    width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dash-hero {
    min-height: 150px;
  }

  .phone-card {
    left: 8px;
    bottom: 44px;
    width: 168px;
  }

  .note-card {
    right: 8px;
    width: 190px;
  }

  .intro-panel,
  .section,
  .contact-section,
  .work-section {
    width: min(100% - 22px, 1180px);
  }

  .service-card {
    min-height: 300px;
  }

  .work-card {
    min-height: auto;
  }

  .work-shot,
  .work-shot-wide {
    width: min(270px, 92%);
    max-height: 310px;
  }

  .flag-row {
    min-width: 0;
  }

  .flag-circle {
    width: 74px;
    height: 74px;
    font-size: 2.35rem;
  }

  .contact-card {
    min-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
