:root {
  --bg: #07111f;
  --bg-deep: #040a13;
  --surface: rgba(13, 28, 47, .76);
  --surface-solid: #0d1c2f;
  --surface-soft: #11243a;
  --surface-hover: #162d47;
  --text: #f5f8fc;
  --muted: #9eb0c5;
  --muted-strong: #c3cfdd;
  --line: rgba(157, 181, 209, .16);
  --line-strong: rgba(119, 226, 255, .28);
  --primary: #46d7f4;
  --primary-strong: #18b8dc;
  --secondary: #8a7dff;
  --accent: #4ee6a8;
  --danger: #ff7e8b;
  --shadow: 0 24px 80px rgba(0, 0, 0, .36);
  --shadow-soft: 0 16px 48px rgba(0, 0, 0, .22);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 82px;
  --transition: 180ms ease;
}

:root[data-theme="light"] {
  --bg: #f4f8fc;
  --bg-deep: #eaf1f8;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-soft: #eef5fb;
  --surface-hover: #e6f0f8;
  --text: #102338;
  --muted: #526980;
  --muted-strong: #334d66;
  --line: rgba(25, 64, 101, .13);
  --line-strong: rgba(8, 151, 183, .24);
  --primary: #078eae;
  --primary-strong: #007a98;
  --secondary: #6356db;
  --accent: #0f9f70;
  --danger: #c73549;
  --shadow: 0 24px 70px rgba(26, 62, 95, .16);
  --shadow-soft: 0 14px 40px rgba(26, 62, 95, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(70, 215, 244, .09), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(138, 125, 255, .10), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
  display: block;
}

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

button {
  color: inherit;
}

::selection {
  color: #06111a;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 80%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #06111a;
  background: var(--primary);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .12;
}

.ambient-one {
  top: 20%;
  left: -280px;
  background: var(--primary);
}

.ambient-two {
  right: -260px;
  bottom: 10%;
  background: var(--secondary);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .10);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 42px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(70, 215, 244, .12), rgba(138, 125, 255, .09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 900;
  letter-spacing: -2px;
}

.brand-mark span {
  color: var(--primary);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: .96rem;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

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

.desktop-nav a {
  position: relative;
  color: var(--muted-strong);
  font-size: .91rem;
  font-weight: 650;
  transition: color var(--transition);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--primary);
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle,
.back-to-top {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.icon-button:hover,
.menu-toggle:hover,
.back-to-top:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.theme-icon {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon {
  display: none;
}

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

[data-theme="light"] .theme-icon-moon {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  color: #06111a;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 68%, var(--accent)));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.button-primary:hover {
  box-shadow: 0 16px 38px color-mix(in srgb, var(--primary) 30%, transparent);
}

.button-ghost {
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

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

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: 12px;
  font-size: .88rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
  border-radius: 10px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 99;
  top: var(--header-height);
  right: 0;
  left: 0;
  padding: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.mobile-menu:not([hidden]) {
  display: grid;
  gap: 4px;
}

.mobile-menu > a:not(.button) {
  padding: 13px 10px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-menu .button {
  margin-top: 12px;
}

.hero {
  position: relative;
  min-height: 820px;
  padding: 160px 0 96px;
  display: grid;
  align-items: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 90px;
  left: 50%;
  width: min(1100px, 92vw);
  height: 700px;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 0, transparent 70%);
  transform: translateX(-50%);
  opacity: .33;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
  align-items: center;
  gap: 78px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 12px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .025em;
}

.availability span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 11%, transparent), 0 0 18px var(--accent);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px transparent, 0 0 22px var(--accent); }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(3.3rem, 6.1vw, 5.8rem);
}

.hero h1 span,
.section-heading h2 span,
.about-copy h2 span,
.contact-copy h2 span {
  color: transparent;
  background: linear-gradient(115deg, var(--primary), color-mix(in srgb, var(--secondary) 74%, white));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: 1.13rem;
  line-height: 1.85;
}

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

.hero-actions {
  margin-top: 34px;
}

.trust-row {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.trust-row > div {
  display: flex;
  flex-direction: column;
}

.trust-row strong {
  color: var(--text);
  font-size: 1.36rem;
  letter-spacing: -.035em;
}

.trust-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .79rem;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: 340px;
  height: 340px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent), transparent 68%);
  border-radius: 50%;
  filter: blur(18px);
}

.orbit {
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 50%;
  animation: spin 26s linear infinite;
}

.orbit::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--primary);
}

.orbit-one {
  width: 490px;
  height: 490px;
}

.orbit-two {
  width: 390px;
  height: 390px;
  border-color: color-mix(in srgb, var(--secondary) 22%, transparent);
  animation-direction: reverse;
  animation-duration: 18s;
}

.orbit-two::after {
  background: var(--secondary);
  box-shadow: 0 0 18px var(--secondary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 72%, transparent);
}

.window-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-bar > span:nth-child(1) { background: #ff6874; }
.window-bar > span:nth-child(2) { background: #f3c14b; }
.window-bar > span:nth-child(3) { background: #4bd38b; }

.window-bar p {
  margin: 0 0 0 9px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .73rem;
}

.code-body {
  padding: 28px 28px 24px;
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(.75rem, 1.12vw, .91rem);
  line-height: 1.95;
}

.code-purple { color: #bd94ff; }
.code-blue { color: #65cffa; }
.code-yellow { color: #ffd36c; }
.code-green { color: #6ce5aa; }
.indent { padding-left: 24px; }
.indent-two { padding-left: 48px; }

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .71rem;
}

.terminal-line > span,
.terminal-line strong {
  color: var(--accent);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
  box-shadow: var(--shadow-soft);
  font-size: .75rem;
  font-weight: 750;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.floating-chip span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #06111a;
  background: var(--primary);
  border-radius: 9px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.chip-one {
  top: 58px;
  right: -20px;
  animation: float 5s ease-in-out infinite;
}

.chip-two {
  bottom: 45px;
  left: -28px;
  animation: float 5s 1s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

.logo-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  min-height: 84px;
}

.logo-strip span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

.section {
  position: relative;
  padding: 124px 0;
}

.section-muted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 58%, transparent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .58fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 54px;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  max-width: 760px;
  font-size: clamp(2.35rem, 4.5vw, 4.1rem);
}

.section-heading > p,
.section-heading.centered > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-heading.centered {
  display: flex;
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.section-heading.centered h2 {
  margin-inline: auto;
}

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

.service-card {
  position: relative;
  min-height: 460px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface-solid) 90%, transparent), color-mix(in srgb, var(--surface) 65%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  content: "";
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 13%, transparent), transparent 68%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-featured {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 8%, var(--surface-solid)), color-mix(in srgb, var(--secondary) 5%, var(--surface-solid)));
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 42px;
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.service-number {
  position: absolute;
  top: 34px;
  right: 34px;
  color: var(--line-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 900;
}

.service-card h3,
.project-content h3,
.process-grid h3,
.form-heading h3 {
  margin: 0;
  letter-spacing: -.025em;
}

.service-card h3 {
  font-size: 1.55rem;
}

.service-card > p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: .92rem;
}

.service-card li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 60%, transparent);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-5px);
}

.project-card-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.18fr .82fr;
}

.project-media {
  min-height: 290px;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-card-wide .project-media {
  min-height: 430px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
}

.project-content {
  padding: 30px;
}

.project-card-wide .project-content {
  display: flex;
  justify-content: center;
  padding: 44px;
  flex-direction: column;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-topline span:last-child {
  color: var(--muted);
}

.project-content h3 {
  font-size: 1.75rem;
}

.project-card-wide .project-content h3 {
  font-size: 2.25rem;
}

.project-content > p {
  margin: 13px 0 22px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.tag-list span {
  padding: 5px 9px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 68%, transparent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .68rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.text-link span {
  color: var(--primary);
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid::before {
  position: absolute;
  z-index: -1;
  top: 35px;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.process-grid article {
  position: relative;
  padding: 22px 18px 24px;
  text-align: center;
}

.process-grid article > span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 0 0 9px var(--bg), var(--shadow-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.process-grid h3 {
  font-size: 1.1rem;
}

.process-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.section-about {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 28%),
    color-mix(in srgb, var(--bg-deep) 45%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 90px;
}

.about-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.about-visual::before,
.about-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.about-visual::before {
  width: 390px;
  height: 390px;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--primary) 8%, transparent);
}

.about-visual::after {
  width: 290px;
  height: 290px;
  border: 1px dashed color-mix(in srgb, var(--secondary) 32%, transparent);
  animation: spin 26s linear infinite;
}

.about-monogram {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  color: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 64px;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  box-shadow: var(--shadow);
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -.12em;
  transform: rotate(-4deg);
}

.about-card {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 25px;
  width: 285px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.about-card span {
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .7rem;
}

.about-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.about-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.about-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted-strong);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.about-facts > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 56%, transparent);
}

.about-facts span,
.about-facts strong {
  display: block;
}

.about-facts span {
  color: var(--muted);
  font-size: .72rem;
}

.about-facts strong {
  margin-top: 3px;
  font-size: .9rem;
}

.about-actions {
  margin-top: 34px;
}

.contact-section {
  padding-bottom: 140px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(450px, 1.16fr);
  gap: 70px;
  padding: 64px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--primary) 6%, var(--surface-solid)), color-mix(in srgb, var(--secondary) 4%, var(--surface-solid)));
  box-shadow: var(--shadow);
}

.contact-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted-strong);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color var(--transition), background var(--transition);
}

.contact-links a:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
}

.contact-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.contact-links small,
.contact-links strong {
  display: block;
}

.contact-links small {
  color: var(--muted);
  font-size: .7rem;
}

.contact-links strong {
  margin-top: 2px;
  font-size: .89rem;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
}

.form-heading {
  margin-bottom: 26px;
}

.form-heading h3 {
  font-size: 1.45rem;
}

.form-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

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

.contact-form label:not(.consent) {
  display: block;
  margin-bottom: 15px;
  color: var(--muted-strong);
  font-size: .78rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--surface-solid);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input,
select {
  height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 145px;
  padding: 13px 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  color: var(--danger);
  font-size: .69rem;
  font-weight: 650;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .73rem;
  cursor: pointer;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.consent a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent-error {
  margin: 4px 0 10px 27px;
}

.form-actions {
  margin-top: 20px;
}

.form-actions .button {
  flex: 1 1 180px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent);
  font-size: .78rem;
  text-align: center;
}

.site-footer {
  padding: 70px 0 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, .7fr);
  gap: 54px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 330px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.footer-grid h3 {
  margin: 0 0 18px;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid > div:not(.footer-brand) a {
  margin: 4px 0;
  color: var(--muted);
  font-size: .83rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-grid > div:not(.footer-brand) a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .76rem;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 12px;
  color: #111;
  background: #ffd36c;
  border-radius: 10px;
  font-size: .82rem;
  text-align: center;
}

[data-reveal] {
  transition: opacity 650ms ease, transform 650ms ease;
}

.js-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Yasal sayfalar */
.legal-page {
  min-height: 100vh;
  padding: 140px 0 90px;
}

.legal-shell {
  max-width: 880px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-shell h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.legal-shell .legal-updated {
  margin: 14px 0 34px;
  color: var(--muted);
  font-size: .82rem;
}

.legal-shell h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted-strong);
}

.legal-shell a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-shell .button {
  color: #06111a;
  text-decoration: none;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.08em;
}

.error-page h1 {
  margin: 34px 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-page p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
    gap: 42px;
  }

  .chip-one { right: 0; }
  .chip-two { left: 0; }

  .contact-shell {
    gap: 40px;
    padding: 44px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .desktop-nav,
  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-grid,
  .about-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 15px auto 0;
  }

  .logo-strip-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 0;
    padding: 24px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .project-card-wide .project-media {
    min-height: 360px;
  }

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

  .process-grid::before {
    display: none;
  }

  .about-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .contact-copy {
    max-width: 680px;
  }

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

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

  .brand-copy {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding: 118px 0 70px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions .button,
  .about-actions .button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .trust-row > div:last-child {
    grid-column: 1 / -1;
  }

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

  .orbit-one {
    width: 390px;
    height: 390px;
  }

  .orbit-two {
    width: 310px;
    height: 310px;
  }

  .code-window {
    border-radius: 18px;
    transform: none;
  }

  .code-body {
    padding: 22px 16px;
    font-size: .7rem;
  }

  .chip-one {
    top: 25px;
  }

  .chip-two {
    bottom: 18px;
  }

  .floating-chip {
    padding: 8px 10px;
    font-size: .65rem;
  }

  .floating-chip span {
    width: 26px;
    height: 26px;
  }

  .logo-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 86px 0;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .service-grid,
  .project-grid,
  .process-grid,
  .about-facts,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 27px;
  }

  .project-card-wide .project-media,
  .project-media {
    min-height: 250px;
  }

  .project-card-wide .project-content,
  .project-content {
    padding: 26px;
  }

  .project-card-wide .project-content h3 {
    font-size: 1.75rem;
  }

  .process-grid article {
    padding: 8px 16px 24px;
  }

  .about-grid {
    gap: 50px;
  }

  .about-visual {
    min-height: 420px;
  }

  .about-visual::before {
    width: 320px;
    height: 320px;
  }

  .about-visual::after {
    width: 250px;
    height: 250px;
  }

  .about-monogram {
    width: 180px;
    height: 180px;
    border-radius: 48px;
    font-size: 4rem;
  }

  .about-card {
    right: 0;
    bottom: 0;
    width: 250px;
  }

  .contact-shell {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js-ready [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}

/* Son görünüm incelemesi sonrası taşma düzeltmeleri */
.brand-mark {
  width: 66px;
  white-space: nowrap;
  font-size: .86rem;
  letter-spacing: -1.4px;
}

.hero-copy,
.hero-visual,
.section-heading > *,
.about-copy,
.contact-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 5.25vw, 4.75rem);
}

@media (max-width: 640px) {
  .brand-mark {
    width: 58px;
    height: 42px;
    font-size: .78rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10.3vw, 2.8rem);
    overflow-wrap: normal;
  }
}

html {
  overflow-x: hidden;
}
