:root {
  --navy: #04234d;
  --navy-2: #071b36;
  --slate: #586c90;
  --accent: #6f8cff;
  --accent-2: #8d7cff;
  --cyan: #57d8ff;
  --bg: #f6f9fd;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-solid: #ffffff;
  --text: #0b1930;
  --muted: #65738a;
  --border: rgba(4, 35, 77, 0.1);
  --shadow: 0 24px 70px rgba(4, 35, 77, 0.12);
  --shadow-soft: 0 12px 35px rgba(4, 35, 77, 0.09);
  --radius: 24px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #06101f;
  --surface: rgba(10, 25, 45, 0.68);
  --surface-solid: #0b1a30;
  --text: #f1f6ff;
  --muted: #9eacc0;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section {
  padding: 105px 0;
  position: relative;
  z-index: 2;
}
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob,
.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.blob {
  width: 420px;
  height: 420px;
  opacity: 0.16;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  filter: blur(45px);
}
.blob-one {
  top: 3%;
  right: -140px;
}
.blob-two {
  bottom: 7%;
  left: -170px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.blur-circle {
  width: 520px;
  height: 520px;
  background: rgba(111, 140, 255, 0.14);
  filter: blur(75px);
}
.circle-one {
  top: 120px;
  right: 20%;
}
.circle-two {
  top: 52%;
  left: 20%;
  width: 360px;
  height: 360px;
  background: rgba(87, 216, 255, 0.08);
}
.grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(88, 108, 144, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 108, 144, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.dot-field {
  position: absolute;
  width: 280px;
  height: 280px;
  left: 4%;
  top: 18%;
  opacity: 0.5;
  background-image: radial-gradient(var(--slate) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, black 0 30%, transparent 70%);
}
.line {
  position: absolute;
  width: 500px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 140, 255, 0.35),
    transparent
  );
  transform: rotate(-28deg);
}
.line-one {
  top: 33%;
  right: -130px;
}
.line-two {
  bottom: 28%;
  left: -150px;
  transform: rotate(25deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--slate));
  box-shadow: 0 8px 22px rgba(4, 35, 77, 0.22);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links > a {
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  transition: 0.25s ease;
}
.nav-links > a:hover {
  color: var(--text);
  background: rgba(88, 108, 144, 0.09);
  transform: translateY(-1px);
}
.nav-links .nav-cta {
  color: white;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(4, 35, 77, 0.18);
}
.nav-links .nav-cta:hover {
  background: #07356f;
  color: white;
}
.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 13px;
  transition: 0.25s ease;
}
.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.menu-toggle {
  display: none;
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding-top: 85px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.eyebrow > span {
  width: 27px;
  height: 2px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.hero h1 {
  margin-top: 19px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.15;
  letter-spacing: -2.8px;
  max-width: 720px;
}
.hero h1 span,
h2 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(
    110deg,
    var(--navy),
    var(--accent),
    var(--accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-text {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border 0.25s ease;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), #16467e);
  color: white;
  box-shadow: 0 14px 30px rgba(4, 35, 77, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(4, 35, 77, 0.28);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.btn-ghost:hover {
  border-color: rgba(88, 108, 144, 0.25);
}
.btn-light {
  background: white;
  color: var(--navy);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 11px;
}
.hero-proof span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.hero-proof i {
  color: var(--accent);
}

.hero-visual {
  min-height: 510px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(88, 108, 144, 0.22),
    rgba(111, 140, 255, 0.08) 45%,
    transparent 70%
  );
  filter: blur(12px);
  animation: pulse 5s ease-in-out infinite;
}
.hero-card {
  position: relative;
  width: min(440px, 90%);
  min-height: 355px;
  overflow: hidden;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.78),
    rgba(236, 243, 252, 0.42)
  );
  box-shadow: 0 35px 90px rgba(4, 35, 77, 0.2);
  backdrop-filter: blur(22px);
  transform: rotate(-3deg);
  transition: 0.45s ease;
}
.hero-card:hover {
  transform: rotate(0) translateY(-6px) scale(1.015);
}
[data-theme="dark"] .hero-card {
  background: linear-gradient(
    145deg,
    rgba(24, 48, 79, 0.76),
    rgba(10, 26, 47, 0.58)
  );
}
.window-bar {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.5;
}
.window-bar small {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 9px;
  direction: ltr;
}
.mockup-content {
  padding: 38px;
}
.mockup-avatar {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 12px 30px rgba(4, 35, 77, 0.25);
}
.mockup-lines {
  margin-top: 23px;
  display: grid;
  gap: 9px;
}
.mockup-lines span {
  display: block;
  height: 9px;
  width: 62%;
  border-radius: 20px;
  background: rgba(88, 108, 144, 0.22);
}
.mockup-lines .wide {
  width: 84%;
  height: 16px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  opacity: 0.82;
}
.mockup-lines .short {
  width: 42%;
}
.mockup-pill {
  display: inline-flex;
  gap: 7px;
  margin-top: 23px;
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 9px;
  color: var(--navy);
  background: rgba(111, 140, 255, 0.12);
}
.mockup-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 62px;
  margin-top: 20px;
}
.mockup-chart i {
  width: 14%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, var(--navy), var(--accent));
  opacity: 0.75;
}
.mockup-chart i:nth-child(1) {
  height: 30%;
}
.mockup-chart i:nth-child(2) {
  height: 45%;
}
.mockup-chart i:nth-child(3) {
  height: 38%;
}
.mockup-chart i:nth-child(4) {
  height: 62%;
}
.mockup-chart i:nth-child(5) {
  height: 52%;
}
.mockup-chart i:nth-child(6) {
  height: 78%;
}
.mockup-chart i:nth-child(7) {
  height: 95%;
}
.floating-chip {
  position: absolute;
  z-index: 4;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  font-size: 10px;
  color: var(--text);
  animation: float 4s ease-in-out infinite;
}
.chip-one {
  top: 11%;
  right: 1%;
}
.chip-two {
  bottom: 12%;
  left: 0;
  animation-delay: -1.5s;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(88, 108, 144, 0.17);
  border-radius: 50%;
}
.orbit-a {
  width: 510px;
  height: 510px;
}
.orbit-b {
  width: 620px;
  height: 310px;
  transform: rotate(-30deg);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.35;
  letter-spacing: -1.3px;
}
.section-heading p,
.intro-copy p {
  color: var(--muted);
  font-size: 14px;
  max-width: 670px;
}
.intro-copy {
  border-right: 1px solid var(--border);
  padding-right: 30px;
}
.intro-copy p + p {
  margin-top: 16px;
}

.centered {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.centered .eyebrow {
  justify-content: center;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-top: 55px;
}
.service-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(111, 140, 255, 0.13),
    transparent 42%
  );
  opacity: 0;
  transition: 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(88, 108, 144, 0.23);
  box-shadow: var(--shadow);
}
.service-card:hover::before {
  opacity: 1;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(
    135deg,
    rgba(111, 140, 255, 0.18),
    rgba(87, 216, 255, 0.13)
  );
  font-size: 18px;
}
.service-card h3 {
  margin-top: 23px;
  font-size: 17px;
}
.service-card p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  min-height: 70px;
}
.service-card a {
  display: inline-flex;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-top: 18px;
  transition: 0.25s;
}
.service-card a:hover {
  gap: 11px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  margin-top: 50px;
}
.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
}
.work-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.work-large {
  grid-row: span 2;
}
.work-image {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: 0.5s ease;
}
.work-large .work-image {
  min-height: 530px;
}
.work-card:hover .work-image {
  transform: scale(1.015);
}
.gradient-a {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(87, 216, 255, 0.35),
      transparent 25%
    ),
    linear-gradient(135deg, #062958, #536a94 52%, #1d3970);
}
.gradient-b {
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(141, 124, 255, 0.42),
      transparent 28%
    ),
    linear-gradient(135deg, #091c35, #244a78);
}
.gradient-c {
  background:
    radial-gradient(
      circle at 25% 75%,
      rgba(87, 216, 255, 0.4),
      transparent 30%
    ),
    linear-gradient(135deg, #061b36, #5c7094);
}
.work-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 35, 77, 0.28);
  color: white;
  opacity: 0;
  transition: 0.3s;
}
.work-card:hover .work-overlay {
  opacity: 1;
}
.mini-window {
  width: 68%;
  height: 64%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  padding: 28px;
  color: white;
  transform: rotate(-4deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}
.mini-title {
  font-size: 26px;
  font-weight: 800;
}
.mini-subtitle {
  font-size: 10px;
  opacity: 0.72;
  margin-top: 5px;
  direction: ltr;
  text-align: right;
}
.mini-button {
  width: 100px;
  height: 32px;
  border-radius: 9px;
  margin-top: 35px;
  background: linear-gradient(90deg, #7c9cff, #59d7ff);
}
.abstract-profile {
  width: 150px;
  height: 190px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.06)
  );
  position: relative;
  transform: rotate(8deg);
}
.abstract-profile span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.abstract-profile span:nth-child(1) {
  width: 65px;
  height: 65px;
  top: 24px;
  left: 42px;
}
.abstract-profile span:nth-child(2) {
  width: 105px;
  height: 55px;
  bottom: 25px;
  left: 22px;
  border-radius: 50% 50% 30% 30%;
}
.abstract-profile span:nth-child(3) {
  width: 180px;
  height: 25px;
  top: -18px;
  left: -15px;
  transform: rotate(-25deg);
}
.abstract-grid {
  width: 72%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: skewY(-5deg);
}
.work-info {
  padding: 18px 21px 22px;
}
.work-info span {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}
.work-info h3 {
  font-size: 15px;
  margin-top: 5px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 50px;
}
.process-step {
  position: relative;
  padding: 28px 22px;
  border-top: 1px solid var(--border);
  transition: 0.3s;
}
.process-step:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
}
.process-step b {
  color: rgba(88, 108, 144, 0.4);
  font-size: 12px;
}
.process-step i {
  display: block;
  color: var(--accent);
  font-size: 22px;
  margin: 25px 0 14px;
}
.process-step h3 {
  font-size: 16px;
}
.process-step p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 55px 60px;
  border-radius: 32px;
  color: white;
  background: linear-gradient(120deg, #031b3d, #174477 55%, #5b6f95);
  box-shadow: 0 30px 70px rgba(4, 35, 77, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-card .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}
.cta-card h2 {
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.35;
  margin-top: 14px;
}
.cta-card h2 em {
  background: linear-gradient(90deg, #fff, #83ddff);
  -webkit-background-clip: text;
  background-clip: text;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-top: 10px;
}
.cta-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  right: -100px;
  top: -170px;
  background: rgba(87, 216, 255, 0.15);
  filter: blur(20px);
}

.lead-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.lead-copy {
  padding-top: 25px;
}
.lead-copy h2 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.35;
  margin-top: 15px;
}
.lead-copy h2 em {
  font-style: normal;
}
.lead-copy > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  max-width: 470px;
}
.lead-points {
  display: grid;
  gap: 11px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
.lead-points span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lead-points i {
  color: var(--accent);
}
.lead-form {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.form-header {
  display: flex;
  justify-content: space-between;
  color: var(--slate);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 25px;
}
.form-header i {
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid label {
  display: grid;
  gap: 7px;
}
.form-grid label.full {
  grid-column: 1/-1;
}
.form-grid label > span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  padding: 13px 14px;
  transition: 0.25s;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: rgba(0, 0, 0, 0.12);
}
input::placeholder,
textarea::placeholder {
  color: #9aa6b8;
  font-size: 11px;
}
input:focus,
textarea:focus {
  border-color: rgba(111, 140, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(111, 140, 255, 0.1);
}
textarea {
  resize: vertical;
  min-height: 125px;
}
.submit-btn {
  width: 100%;
  margin-top: 19px;
}
.form-status {
  min-height: 24px;
  margin-top: 12px;
  font-size: 11px;
  text-align: center;
}
.form-status.success {
  color: #17834b;
}
.form-status.error {
  color: #c33b4b;
}
.form-note {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  margin-top: 8px;
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  color: var(--muted);
  font-size: 10px;
}
.back-top {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: 0.25s;
}
.back-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.93);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 65px;
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-text {
    max-width: 750px;
  }
  .hero-visual {
    min-height: 460px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col,
  .lead-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .intro-copy {
    border-right: 0;
    padding-right: 0;
  }
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-large {
    grid-row: auto;
    grid-column: 1/-1;
  }
  .work-large .work-image {
    min-height: 400px;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }
  .section {
    padding: 75px 0;
  }
  .navbar {
    min-height: 68px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    padding: 12px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links > a {
    text-align: center;
  }
  .nav-links .theme-toggle {
    align-self: center;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }
  .hero-visual {
    min-height: 400px;
  }
  .hero-card {
    width: 92%;
    min-height: 320px;
  }
  .orbit-a {
    width: 390px;
    height: 390px;
  }
  .orbit-b {
    width: 450px;
    height: 240px;
  }
  .chip-one {
    right: -4px;
    top: 8%;
  }
  .chip-two {
    left: -4px;
    bottom: 8%;
  }
  .service-grid,
  .work-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .work-large {
    grid-column: auto;
  }
  .work-large .work-image {
    min-height: 300px;
  }
  .form-grid label.full {
    grid-column: auto;
  }
  .cta-card {
    padding: 38px 28px;
    border-radius: 25px;
  }
  .lead-form {
    padding: 21px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer p {
    order: 3;
    width: 100%;
  }
}

/* =========================================================
   Mobile overflow + responsive stability patch
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

*,
*::before,
*::after {
  min-width: 0;
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
    max-width: 100%;
  }

  .section {
    width: 100%;
    overflow: clip;
  }

  /* Header */
  .navbar {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .brand strong,
  .brand small {
    white-space: nowrap;
  }

  .nav-links {
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Hero: never let decorative elements create a horizontal page width */
  .hero {
    min-height: auto;
    width: 100%;
    gap: 22px;
    padding-top: 48px;
    padding-bottom: 25px;
    overflow: clip;
  }

  .hero-copy,
  .hero-text,
  .hero h1 {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 43px);
    line-height: 1.35;
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-text {
    font-size: 14px;
    line-height: 2;
    overflow-wrap: anywhere;
  }

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

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

  .hero-proof {
    width: 100%;
    justify-content: center;
    gap: 10px 16px;
  }

  .hero-proof span {
    max-width: 100%;
  }

  /* Hero visual */
  .hero-visual {
    width: 100%;
    min-height: 370px;
    overflow: clip;
    isolation: isolate;
  }

  .hero-visual::before {
    width: min(440px, 115vw);
    height: min(440px, 115vw);
    max-width: 100%;
    max-height: 100%;
  }

  .hero-card {
    width: min(92%, 420px);
    max-width: calc(100% - 18px);
    min-height: 300px;
    transform: rotate(-1.5deg);
  }

  .mockup-content {
    padding: 26px;
  }

  .mockup-lines span,
  .mockup-lines .wide,
  .mockup-lines .short {
    max-width: 100%;
  }

  .floating-chip {
    max-width: 42%;
    padding: 9px 10px;
    font-size: 9px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .chip-one {
    right: 0;
    top: 7%;
  }

  .chip-two {
    left: 0;
    bottom: 7%;
  }

  .orbit-a {
    width: min(390px, 96vw);
    height: min(390px, 96vw);
  }

  .orbit-b {
    width: min(450px, 112vw);
    height: min(240px, 60vw);
  }

  /* Text blocks */
  .section-heading,
  .section-heading h2,
  .section-heading p,
  .intro-copy,
  .intro-copy p,
  .lead-copy,
  .lead-copy h2,
  .lead-copy > p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section-heading h2,
  .lead-copy h2 {
    font-size: clamp(29px, 8vw, 39px);
    line-height: 1.45;
    letter-spacing: -0.8px;
  }

  .two-col,
  .lead-layout,
  .service-grid,
  .work-grid,
  .process-grid,
  .form-grid {
    width: 100%;
    min-width: 0;
  }

  /* Cards */
  .service-card,
  .work-card,
  .process-step,
  .lead-form,
  .cta-card {
    min-width: 0;
    max-width: 100%;
  }

  .service-card p,
  .work-info h3,
  .process-step p,
  .cta-card p,
  .lead-copy > p {
    overflow-wrap: anywhere;
  }

  .work-image {
    width: 100%;
    max-width: 100%;
  }

  .work-large .work-image {
    min-height: 280px;
  }

  .mini-window {
    width: 76%;
    max-width: 76%;
    padding: 20px;
  }

  .mini-title {
    font-size: clamp(19px, 6vw, 26px);
    overflow-wrap: anywhere;
  }

  .abstract-grid {
    max-width: 78%;
  }

  /* CTA */
  .cta-card {
    width: 100%;
    padding: 34px 22px;
    gap: 24px;
  }

  .cta-card h2 {
    font-size: clamp(28px, 8vw, 38px);
    overflow-wrap: anywhere;
  }

  .cta-card .btn {
    width: 100%;
  }

  .cta-glow {
    right: -170px;
    width: 330px;
    height: 330px;
  }

  /* Form */
  .lead-form {
    width: 100%;
    padding: 18px;
  }

  .form-header {
    gap: 10px;
    flex-wrap: wrap;
  }

  .form-grid {
    gap: 14px;
  }

  input,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  /* Footer */
  .footer-inner {
    width: 100%;
    min-width: 0;
  }

  .footer p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 22px);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual {
    min-height: 335px;
  }

  .hero-card {
    min-height: 275px;
  }

  .mockup-content {
    padding: 20px;
  }

  .mockup-avatar {
    width: 58px;
    height: 58px;
  }

  .floating-chip {
    max-width: 39%;
    font-size: 8px;
  }

  .chip-one {
    right: -2px;
  }

  .chip-two {
    left: -2px;
  }

  .cta-card {
    padding: 30px 18px;
  }
}
