:root {
  color-scheme: dark;
  --ink: #f6f8fb;
  --muted: #9ca9b8;
  --paper: #030507;
  --surface: #0b1118;
  --surface-strong: #111923;
  --line: rgba(157, 181, 204, 0.22);
  --blue: #00aeff;
  --blue-deep: #006dff;
  --cyan: #21d8ff;
  --steel: #6f8498;
  --chrome: #dce5ef;
  --shadow: rgba(0, 174, 255, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 109, 255, 0.38), transparent 23rem),
    radial-gradient(circle at 84% 10%, rgba(33, 216, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 62% 54%, rgba(111, 132, 152, 0.18), transparent 30rem),
    radial-gradient(circle at 20% 78%, rgba(0, 174, 255, 0.2), transparent 26rem),
    linear-gradient(180deg, #101722 0%, #06101c 42%, #020304 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(0, 174, 255, 0.08) 18% 19%, transparent 19% 48%, rgba(33, 216, 255, 0.06) 48% 49%, transparent 49%),
    linear-gradient(245deg, transparent 0 62%, rgba(220, 229, 239, 0.05) 62% 63%, transparent 63%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(5, 7, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 136px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 18px rgba(0, 174, 255, 0.35));
}

nav {
  display: flex;
  gap: 18px;
  color: var(--chrome);
  font-size: 0.95rem;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
}

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

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 56px 0 48px;
}

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

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 760px;
  background: linear-gradient(90deg, #ffffff, var(--chrome), #72ceff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(0, 174, 255, 0.08);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--chrome);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero p,
.section > p,
.contact p,
.work-section p,
.service-card p,
article p {
  color: var(--muted);
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  box-shadow: 0 0 28px rgba(0, 174, 255, 0.34);
}

.button.primary:hover {
  filter: brightness(1.12);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--chrome);
}

.hero-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 44%),
    radial-gradient(circle at 18% 20%, rgba(33, 216, 255, 0.16), transparent 13rem),
    radial-gradient(circle at 50% 65%, rgba(0, 174, 255, 0.28), transparent 16rem),
    var(--surface);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42), 0 0 52px rgba(0, 174, 255, 0.14);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 12% 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 18px var(--blue);
}

.hero-panel::after {
  inset: auto 26% 84px;
  opacity: 0.55;
}

.hero-panel > img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
}

.preview-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  padding: 24px 28px 30px;
}

.preview-body strong {
  font-size: clamp(1.45rem, 3.4vw, 2.25rem);
  color: var(--chrome);
}

.preview-body p {
  max-width: 320px;
  color: var(--blue);
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 72px);
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

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

.work-section {
  align-items: start;
}

.work-showcase {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 92% 18%, rgba(25, 231, 255, 0.12), transparent 9rem),
    linear-gradient(120deg, rgba(0, 174, 255, 0.12), transparent 46%),
    var(--surface-strong);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work-showcase.is-expanded {
  position: fixed;
  inset: 14px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  border-color: rgba(0, 174, 255, 0.72);
  box-shadow: 0 30px 140px rgba(0, 0, 0, 0.72), 0 0 46px rgba(0, 174, 255, 0.24);
}

.work-showcase.is-minimized iframe {
  height: 0;
}

.browser-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(2, 7, 13, 0.88);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(0, 174, 255, 0.68);
}

.browser-bar span:nth-child(2) {
  background: var(--cyan);
}

.browser-bar span:nth-child(3) {
  background: var(--silver);
}

.browser-bar strong {
  overflow: hidden;
  margin-left: 8px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.preview-controls button {
  min-height: 30px;
  border: 1px solid rgba(0, 174, 255, 0.34);
  border-radius: 5px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--chrome);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-controls button:hover,
.preview-controls button:focus-visible {
  border-color: rgba(0, 174, 255, 0.78);
  color: #ffffff;
  outline: none;
}

.work-showcase iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #090909;
}

.work-showcase.is-expanded iframe {
  height: 100%;
}

.service-card,
article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 174, 255, 0.12), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card {
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(0, 174, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 34px rgba(0, 174, 255, 0.18);
  outline: none;
  transform: translateY(-2px);
}

article span {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card span {
  display: block;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact {
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 12px;
}

.contact-actions .button {
  min-width: 120px;
}

.social-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--chrome);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.social-link:hover {
  border-color: rgba(0, 174, 255, 0.72);
  color: #ffffff;
}

.social-link span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  font-size: 0.72rem;
}

.contact .button {
  justify-self: end;
}

footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 8, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(0, 174, 255, 0.42);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 90% 8%, rgba(33, 216, 255, 0.18), transparent 13rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #070d14;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58), 0 0 48px rgba(0, 174, 255, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--chrome);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.modal-close:hover {
  border-color: rgba(0, 174, 255, 0.72);
  color: #ffffff;
}

.modal-panel form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.modal-panel label {
  display: grid;
  gap: 8px;
  color: var(--chrome);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-panel input,
.modal-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.modal-panel textarea {
  resize: vertical;
}

.modal-panel input:focus,
.modal-panel textarea:focus {
  border-color: rgba(0, 174, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.14);
  outline: none;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero {
    min-height: auto;
  }

  .contact-actions,
  .contact .button {
    justify-self: start;
  }

  .work-showcase iframe {
    height: 520px;
  }

  .work-showcase.is-expanded {
    inset: 8px;
  }

  .browser-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .preview-controls {
    width: 100%;
    margin-left: 0;
  }
}
