:root {
  --bg: #f5f8fc;
  --bg-strong: #e9f2fc;
  --surface: #ffffff;
  --surface-blue: #edf6ff;
  --text: #071b33;
  --muted: #53657a;
  --blue: #1677ff;
  --blue-dark: #07449f;
  --cyan: #14c8ff;
  --ink: #051426;
  --ink-soft: #0a203a;
  --blue-soft: #cfe7ff;
  --line: #d9e6f3;
  --shadow: 0 26px 80px rgba(7, 27, 51, 0.14);
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

svg {
  display: block;
}

.section-shell {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 48px));
  min-height: 74px;
  margin: 14px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(217, 230, 243, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(7, 27, 51, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--blue);
  flex: 0 0 auto;
}

.brand-mark rect {
  fill: var(--blue);
}

.brand-mark path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark text {
  fill: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 650px;
  margin-top: 20px;
  padding: 72px 72px 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(5, 20, 38, 0.97) 0%, rgba(8, 32, 58, 0.96) 48%, rgba(7, 58, 111, 0.88) 100%),
    var(--ink);
  box-shadow: 0 34px 90px rgba(7, 27, 51, 0.22);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 900px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  color: #ffffff;
  font-size: clamp(3.1rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero h1 span {
  background: linear-gradient(90deg, #ffffff 0%, #21c7ff 38%, #1677ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-name {
  margin: 28px 0 0;
  color: var(--cyan);
  font-size: 1.22rem;
  font-weight: 800;
}

.hero-text {
  max-width: 640px;
  margin: 12px 0 0;
  color: #bfd0e5;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(18, 119, 255, 0.32);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #005df0;
  box-shadow: 0 20px 42px rgba(18, 111, 255, 0.28);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-left: 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.secondary-button svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: currentColor;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-linkedin {
  margin-left: 0;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-highlights span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #dceaff;
  font-size: 0.82rem;
  font-weight: 800;
}

.text-link {
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 800;
  border-bottom: 2px solid var(--blue-soft);
}

.about {
  padding: 106px 0 92px;
}

.section-heading h2,
.contact-footer h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 850;
}

.section-heading p {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.centered {
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 34px;
  align-items: start;
  margin-top: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.profile-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-blue);
}

.profile-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-grid p {
  margin: 0;
  color: #263d58;
  font-size: 1.08rem;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.services {
  padding: 104px 0;
  background:
    linear-gradient(180deg, rgba(234, 244, 255, 0.64), rgba(255, 255, 255, 0.9)),
    var(--bg-strong);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.service-item {
  min-height: 254px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(8, 54, 104, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 119, 255, 0.34);
  box-shadow: 0 24px 54px rgba(8, 54, 104, 0.12);
}

.service-item svg {
  width: 42px;
  height: 42px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3,
.process-grid h3 {
  margin: 24px 0 10px;
  font-size: 1.12rem;
  line-height: 1.22;
}

.service-item p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.stack {
  padding: 104px 0 20px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.stack-list span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(8, 54, 104, 0.06);
  color: var(--blue-dark);
  font-weight: 800;
}

.projects {
  padding: 82px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(7, 27, 51, 0.09);
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
  background: var(--bg-strong);
}

.project-card div {
  padding: 20px;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.22;
}

.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.process {
  position: relative;
  padding: 106px 0 120px;
}

.process-line {
  width: 80%;
  height: 2px;
  margin: 56px auto -30px;
  background: linear-gradient(90deg, transparent, var(--blue-soft), transparent);
}

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

.process-grid article {
  min-height: 230px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(8, 54, 104, 0.06);
}

.process-grid span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--blue-soft);
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--blue-dark);
  font-weight: 850;
}

.contact-footer {
  padding: 82px 0 26px;
  background: #071b34;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: start;
}

.contact-footer p {
  max-width: 560px;
  margin: 16px 0 28px;
  color: #bfd2ea;
}

.footer-info {
  padding: 8px 0 0;
}

.footer-info p {
  margin: 0 0 15px;
}

.footer-info strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.footer-info a {
  color: #dceaff;
  border-bottom: 1px solid rgba(220, 234, 255, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #93abc7;
  font-size: 0.9rem;
}

.legal-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(22, 119, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #eef5fd 0%, var(--bg) 100%);
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(360px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: var(--container);
  margin-top: 34px;
  margin-bottom: 76px;
  padding: 0;
}

.legal-intro {
  min-height: 360px;
  padding: 42px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(140deg, rgba(5, 20, 38, 0.98), rgba(7, 58, 111, 0.92));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow: var(--shadow);
}

.legal-intro p:not(.legal-kicker) {
  max-width: 310px;
  margin: 18px 0 0;
  color: #bfd0e5;
}

.legal-content {
  padding: 44px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 850;
}

.legal-main h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.15rem, 3.15vw, 3rem);
  line-height: 1.06;
  overflow-wrap: break-word;
  hyphens: none;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
}

.legal-section a {
  color: var(--blue-dark);
  font-weight: 800;
  border-bottom: 1px solid var(--blue-soft);
}

.legal-note {
  margin-top: 14px !important;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #415873 !important;
}

.legal-footer {
  padding: 28px 0;
}

.footer-brand,
.legal-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.legal-links a {
  color: #dceaff;
}

.legal-links a:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 66px 44px 68px;
  }

  .about-grid,
  .service-grid,
  .project-grid,
  .process-grid,
  .footer-grid,
  .legal-main {
    grid-template-columns: 1fr;
  }

  .legal-intro {
    min-height: auto;
  }

  .service-item,
  .process-grid article {
    min-height: auto;
  }

  .process-line {
    display: none;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header {
    width: min(100% - 64px, var(--container));
  }

  .site-header {
    position: static;
  }

  .nav-links {
    width: 100%;
    gap: 10px 16px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 54px 28px 58px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    line-height: 1.08;
  }

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

  .hero-name {
    margin-top: 26px;
  }

  .hero-text {
    font-size: 1.05rem;
  }

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .secondary-button {
    margin-left: 0;
  }

  .about,
  .services,
  .stack,
  .projects,
  .process {
    padding: 66px 0;
  }

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

  .legal-main {
    margin-top: 22px;
    margin-bottom: 48px;
  }

  .legal-intro,
  .legal-content {
    padding: 32px 28px;
  }

  .about-grid {
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .legal-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
