:root {
  --ink: #172033;
  --muted: #637086;
  --line: #dbe5f4;
  --panel: rgba(255, 255, 255, 0.86);
  --soft: #f5f9ff;
  --cyan: #19c2ff;
  --blue: #4169ff;
  --violet: #8b5cf6;
  --mint: #2dd4bf;
  --rose: #ff6b9d;
  --shadow: 0 22px 70px rgba(46, 84, 138, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(25, 194, 255, 0.18), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(139, 92, 246, 0.16), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 46%, #ffffff 100%);
  overflow-x: hidden;
}

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

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

.scroll-progress {
  position: fixed;
  z-index: 100;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(65, 105, 255, 0.16);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  animation: drift 18s linear infinite;
}

.ambient-one {
  top: 14%;
  right: 4%;
}

.ambient-two {
  left: 3%;
  bottom: 7%;
  animation-duration: 24s;
  animation-direction: reverse;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(219, 229, 244, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-weight: 900;
  background: conic-gradient(from 120deg, var(--cyan), var(--blue), var(--violet), var(--mint), var(--cyan));
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 12px 28px rgba(65, 105, 255, 0.25);
}

.brand-mark.large {
  width: 76px;
  height: 76px;
  font-size: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #30405f;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  color: var(--blue);
  background: #eef6ff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 72px);
}

.hero,
.sub-hero,
.contact-page-grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.97fr);
  align-items: center;
  gap: clamp(32px, 6vw, 82px);
}

.hero {
  padding-top: clamp(54px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.04;
  max-width: 880px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text,
.section-heading p,
.contact-intro p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-text {
  max-width: 680px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 34px rgba(65, 105, 255, 0.28);
}

.btn.ghost {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.code-window {
  position: absolute;
  inset: 44px 0 auto 6%;
  max-width: 560px;
  padding: 18px;
  color: #d8fff8;
  background: #10182b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.window-dots span:nth-child(2) {
  background: #ffd166;
}

.window-dots span:nth-child(3) {
  background: var(--mint);
}

pre {
  overflow: hidden;
  margin: 0;
  white-space: pre-wrap;
  font-size: clamp(13px, 2vw, 16px);
  line-height: 1.8;
}

.orbit-ring {
  position: absolute;
  right: 14%;
  bottom: 38px;
  width: 260px;
  height: 260px;
  border: 2px dashed rgba(65, 105, 255, 0.35);
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.tech-chip {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}

.chip-a {
  right: 20px;
  top: 86px;
}

.chip-b {
  left: 4%;
  bottom: 84px;
  animation-delay: -1.2s;
}

.chip-c {
  right: 22%;
  bottom: 10px;
  animation-delay: -2.3s;
}

.floaty {
  animation: bob 5s ease-in-out infinite;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.about-band,
.services-section,
.portfolio-hero {
  background: rgba(255, 255, 255, 0.58);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
}

.about-card,
.stats-panel,
.contact-panel,
.contact-form,
.project-modal,
.reviews-modal {
  background: var(--panel);
  border: 1px solid rgba(219, 229, 244, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.about-card {
  padding: clamp(24px, 4vw, 42px);
}

.about-card p,
.service-card p,
.progress-track p,
.story-step p,
.project-card p,
.project-detail-copy p,
.reviews-list p {
  color: var(--muted);
  line-height: 1.65;
}

.stats-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.stats-panel div {
  padding: 24px;
  background: linear-gradient(135deg, rgba(25, 194, 255, 0.12), rgba(139, 92, 246, 0.10));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-panel strong {
  display: block;
  font-size: 38px;
  color: var(--blue);
}

.stats-panel span {
  color: var(--muted);
  font-weight: 800;
}

.progress-track,
.service-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.progress-track {
  position: relative;
}

.progress-track article,
.service-card,
.project-card {
  position: relative;
  padding: 24px;
  min-height: 218px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(46, 84, 138, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.progress-track article:hover,
.service-card:hover,
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.progress-track span,
.service-card span,
.story-step span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 900;
}

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

.service-card::after,
.project-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  background: conic-gradient(from 90deg, rgba(25, 194, 255, 0.25), rgba(139, 92, 246, 0.22), rgba(45, 212, 191, 0.20));
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.tech-section {
  min-height: 820px;
}

.octagon-wrap {
  display: grid;
  place-items: center;
  min-height: 540px;
}

.octagon-system {
  position: relative;
  width: min(86vw, 560px);
  aspect-ratio: 1;
  animation: spin 36s linear infinite;
}

.octagon {
  position: absolute;
  inset: 19%;
  display: grid;
  place-items: center;
  padding: 38px;
  color: #eaffff;
  background: linear-gradient(145deg, #12213f, #172846);
  box-shadow: 0 30px 90px rgba(65, 105, 255, 0.24);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.typing-code {
  min-height: 130px;
  font-family: Consolas, Monaco, monospace;
  font-size: clamp(12px, 2vw, 15px);
  line-height: 1.65;
  white-space: pre-wrap;
  animation: counter-spin 36s linear infinite;
}

.typing-code::after {
  content: "|";
  color: var(--mint);
  animation: blink 0.8s step-end infinite;
}

.oct-tech {
  position: absolute;
  display: grid;
  place-items: center;
  width: 114px;
  height: 54px;
  color: #20304d;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(46, 84, 138, 0.14);
  animation: counter-spin 36s linear infinite;
}

.t1 { left: 50%; top: 0; transform: translateX(-50%); }
.t2 { right: 5%; top: 14%; }
.t3 { right: 0; top: 50%; transform: translateY(-50%); }
.t4 { right: 5%; bottom: 14%; }
.t5 { left: 50%; bottom: 0; transform: translateX(-50%); }
.t6 { left: 5%; bottom: 14%; }
.t7 { left: 0; top: 50%; transform: translateY(-50%); }
.t8 { left: 5%; top: 14%; }

.contact-strip {
  padding-bottom: 54px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 5vw, 48px);
}

.contact-panel p {
  color: var(--muted);
  max-width: 680px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.socials.left {
  justify-content: flex-start;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.socials a:hover {
  transform: translateY(-4px) rotate(8deg);
}

.reviews-tab {
  position: fixed;
  z-index: 45;
  top: 48%;
  right: 0;
  padding: 13px 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  box-shadow: var(--shadow);
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(18, 28, 48, 0.14);
  backdrop-filter: blur(7px);
}

.reviews-modal,
.project-modal {
  position: fixed;
  z-index: 80;
  inset: 8vh clamp(16px, 8vw, 120px);
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
}

.reviews-modal h2 {
  margin-bottom: 20px;
}

.reviews-list {
  display: grid;
  gap: 14px;
  max-height: calc(84vh - 128px);
  overflow: auto;
  padding-right: 8px;
}

.reviews-list article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reviews-list span {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: var(--ink);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.animated-cluster {
  position: relative;
  min-height: 420px;
}

.animated-cluster span {
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(25, 194, 255, 0.24), rgba(139, 92, 246, 0.24));
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  animation: drift 13s linear infinite;
}

.animated-cluster span:nth-child(1) { left: 8%; top: 4%; }
.animated-cluster span:nth-child(2) { right: 12%; top: 18%; animation-delay: -2s; }
.animated-cluster span:nth-child(3) { left: 24%; bottom: 14%; animation-delay: -5s; }
.animated-cluster span:nth-child(4) { right: 22%; bottom: 0; animation-delay: -7s; }

.story-road {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 0;
}

.road-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(var(--cyan), var(--blue), var(--violet));
  border-radius: 999px;
}

.road-runner {
  position: sticky;
  z-index: 1;
  top: 46vh;
  left: calc(50% - 14px);
  width: 32px;
  height: 32px;
  margin-left: calc(50% - 14px);
  background: var(--rose);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 107, 157, 0.18);
}

.story-step {
  position: relative;
  width: min(430px, 44%);
  margin: 80px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-step:nth-child(odd) {
  margin-left: auto;
}

.portfolio-grid {
  min-height: 560px;
}

.project-card {
  cursor: pointer;
}

.project-thumb {
  height: 190px;
  margin: -24px -24px 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent),
    linear-gradient(135deg, var(--cyan), var(--blue));
}

.project-thumb.restaurant { background: linear-gradient(135deg, #19c2ff, #4169ff); }
.project-thumb.store { background: linear-gradient(135deg, #ff6b9d, #8b5cf6); }
.project-thumb.academy { background: linear-gradient(135deg, #2dd4bf, #4169ff); }
.project-thumb.agency { background: linear-gradient(135deg, #ffd166, #19c2ff); }

.project-modal {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
}

.project-detail-copy {
  max-height: calc(84vh - 90px);
  overflow: auto;
  padding-right: 8px;
}

.project-detail-copy ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.project-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(160px, 1fr);
  gap: 14px;
}

.media-shot,
.media-video {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent),
    linear-gradient(135deg, rgba(25, 194, 255, 0.34), rgba(139, 92, 246, 0.24));
  box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.28);
}

.media-shot.large {
  grid-column: 1 / -1;
}

.media-video {
  position: relative;
  display: grid;
  place-items: center;
}

.media-video span {
  width: 66px;
  height: 66px;
  background: #fff;
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
}

.contact-page-grid {
  align-items: start;
  padding-top: 96px;
}

.contact-intro {
  position: sticky;
  top: 110px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #263653;
  font-weight: 800;
}

.contact-form span {
  color: #e23e63;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(65, 105, 255, 0.12);
}

.phone-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to { rotate: 360deg; }
}

@keyframes counter-spin {
  to { rotate: -360deg; }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(16px, -22px, 0) rotate(180deg); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1020px) {
  .hero,
  .sub-hero,
  .contact-page-grid,
  .about-grid,
  .project-modal {
    grid-template-columns: 1fr;
  }

  .progress-track,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-intro {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open,
  .main-nav.static {
    display: flex;
  }

  .main-nav.static {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }

  h1 {
    font-size: 34px;
  }

  .hero-stage {
    min-height: 410px;
  }

  .code-window {
    left: 0;
  }

  .progress-track,
  .service-grid,
  .portfolio-grid,
  .project-media {
    grid-template-columns: 1fr;
  }

  .octagon-system {
    width: min(calc(100vw - 44px), 430px);
  }

  .oct-tech {
    width: 92px;
    height: 46px;
    font-size: 12px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-step {
    width: calc(100% - 46px);
    margin-left: 46px;
  }

  .story-step:nth-child(odd) {
    margin-left: 46px;
  }

  .road-line {
    left: 18px;
  }

  .road-runner {
    margin-left: 4px;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .reviews-modal,
  .project-modal {
    inset: 5vh 12px;
  }
}
