@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #090c14;
  --surface: rgba(18, 22, 35, 0.78);
  --surface-hover: rgba(25, 31, 48, 0.95);
  --text: #f5f7fb;
  --muted: #9ca4b7;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2798dc;
  --blue-light: #70c8ff;
  --purple: #676188;
  --orange: #f26922;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(55, 87, 142, 0.14), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.page-glow--one {
  top: 14rem;
  left: -12rem;
  background: var(--blue);
}

.page-glow--two {
  top: 44rem;
  right: -13rem;
  background: var(--purple);
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 150px;
  height: 58px;
  object-fit: contain;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce2ee;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.header-contact:hover {
  color: var(--blue-light);
}

.header-contact svg,
.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  max-width: 850px;
  padding: 120px 0 128px;
}

.eyebrow,
.section-label,
.section-heading > p {
  color: var(--blue-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eyebrow span {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin-top: 22px;
  font-size: clamp(4.2rem, 9.4vw, 7.2rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-copy {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.93rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button--primary {
  background: var(--blue);
  color: #07121b;
}

.button--primary:hover {
  background: var(--blue-light);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button--secondary:hover {
  border-color: rgba(112, 200, 255, 0.38);
  background: rgba(112, 200, 255, 0.07);
}

.projects {
  padding: 92px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-heading > p {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.04em;
}

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

.project-card {
  display: flex;
  min-height: 385px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 50%),
    var(--surface);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(112, 200, 255, 0.32);
  background: var(--surface-hover);
}

.project-card--featured {
  background:
    radial-gradient(circle at 0 0, rgba(39, 152, 220, 0.15), transparent 60%),
    var(--surface);
}

.project-card--shop {
  background:
    radial-gradient(circle at 0 0, rgba(242, 105, 34, 0.12), transparent 60%),
    var(--surface);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 6, 12, 0.35);
}

.card-icon img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.card-icon--line svg {
  width: 40px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.arrow {
  color: #70798e;
  font-size: 1.45rem;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-card:hover .arrow {
  color: var(--blue-light);
  transform: translate(2px, -2px);
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-card--shop .tag {
  color: #ff9c69;
}

.project-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.project-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.connect .section-label {
  margin: 0 0 18px;
}

.connect h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.connect-links {
  border-top: 1px solid var(--line);
}

.connect-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  color: #dbe1ec;
  font-size: 0.96rem;
  transition:
    color 180ms ease,
    padding 180ms ease;
}

.connect-links a:hover {
  padding-right: 0;
  padding-left: 12px;
  color: var(--blue-light);
}

.connect-links a span:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connect-links svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  border-top: 1px solid var(--line);
  color: #687084;
  font-size: 0.78rem;
}

footer img {
  width: 105px;
  height: 48px;
  object-fit: contain;
  opacity: 0.7;
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

@media (max-width: 820px) {
  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-bottom: 14px;
  }

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

  .project-card {
    min-height: 315px;
  }

  .connect {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 540px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-header {
    height: 82px;
  }

  .brand img {
    width: 122px;
    height: 48px;
  }

  .header-contact span {
    display: none;
  }

  .hero {
    padding: 90px 0;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 5rem);
  }

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

  .projects,
  .connect {
    padding: 76px 0;
  }

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

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p:nth-child(2) {
    display: none;
  }
}

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