:root {
  --bg: #030712;
  --blue: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.32);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --card: rgba(15, 23, 42, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at top, black 0%, transparent 75%);
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.2), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, 0.12), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(14, 165, 233, 0.1), transparent 32%);
}

.scan-line {
  position: fixed;
  left: 0;
  right: 0;
  top: -120px;
  height: 90px;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(56, 189, 248, 0.075),
    transparent
  );
  animation: pageScan 8s linear infinite;
}

@keyframes pageScan {
  0% {
    transform: translateY(-140px);
  }
  100% {
    transform: translateY(120vh);
  }
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.72);
  border-radius: 12px;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 70px auto 90px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

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

.hero-description,
.section-text,
.contact-section p,
.card p,
.project-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-description {
  max-width: 660px;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.button.primary {
  color: #00111d;
  background: var(--blue);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.24);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.52);
}

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

.hero-panel {
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(3, 7, 18, 0.9)),
    rgba(3, 7, 18, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  padding: 28px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  pointer-events: none;
  mask-image: linear-gradient(135deg, black 0%, transparent 55%);
}

.scan-frame {
  height: 420px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    rgba(2, 6, 23, 0.92);
  background-size: 26px 26px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.scan-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(3, 7, 18, 0.15) 72%);
  pointer-events: none;
}

.eye-target {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.eye-svg {
  width: 190px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.16));
}

.eye-outline {
  fill: none;
  stroke: rgba(56, 189, 248, 0.95);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-iris {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(56, 189, 248, 0.72);
  stroke-width: 2;
}

.eye-pupil {
  fill: rgba(56, 189, 248, 0.98);
}

.horizontal-scan {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
  animation: innerScan 3.8s ease-in-out infinite;
  z-index: 2;
}

@keyframes innerScan {
  0%,
  100% {
    transform: translateY(-120px);
    opacity: 0.32;
  }

  50% {
    transform: translateY(120px);
    opacity: 1;
  }
}

.corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(226, 232, 240, 0.92);
  z-index: 2;
}

.top-left {
  top: 24px;
  left: 24px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.top-right {
  top: 24px;
  right: 24px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bottom-left {
  bottom: 24px;
  left: 24px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.bottom-right {
  bottom: 24px;
  right: 24px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(56, 189, 248, 0.24);
  pointer-events: none;
}

.card:hover,
.project-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.08);
}

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.project-visual {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.05), transparent 40%),
    rgba(2, 6, 23, 0.74);
}

.mini-scan {
  height: 190px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    rgba(2, 6, 23, 0.96);
  background-size: 22px 22px;
}

.mini-eye {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.mini-eye-svg {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.14));
}

.mini-eye-svg .eye-outline {
  fill: none;
  stroke: rgba(56, 189, 248, 0.92);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-eye-svg .eye-iris {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(56, 189, 248, 0.72);
  stroke-width: 2;
}

.mini-eye-svg .eye-pupil {
  fill: rgba(56, 189, 248, 0.98);
}

.mini-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(226, 232, 240, 0.88);
}

.mini-corner.top-left {
  top: 14px;
  left: 14px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.mini-corner.top-right {
  top: 14px;
  right: 14px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.mini-corner.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.mini-corner.bottom-right {
  bottom: 14px;
  right: 14px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.project-content {
  padding: 22px;
}

.project-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 12px;
}

.project-tags {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.06);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-section {
  text-align: center;
  max-width: 760px;
}

.contact-link {
  margin-top: 18px;
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-link:hover {
  text-decoration: underline;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 980px) {
  .project-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .scan-frame {
    height: 320px;
  }

  .eye-svg {
    width: 150px;
  }

  .horizontal-scan {
    left: 12%;
    right: 12%;
  }
}
