:root {
  --bg: #080c10;
  --bg-2: #0d141b;
  --text: #e2e8f0;
  --muted: rgba(226, 232, 240, 0.62);
  --faint: rgba(226, 232, 240, 0.32);
  --line: rgba(0, 255, 128, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --green: #00ff80;
  --green-soft: rgba(0, 255, 128, 0.08);
  --blue: #36a2ff;
  --warning: #ffc64d;
  --danger: #ff5a5a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 6%, rgba(0, 255, 128, 0.08), transparent 32rem),
    radial-gradient(circle at 6% 74%, rgba(54, 162, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, #080c10 0%, #0b1117 100%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 150, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 150, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0, 0, 0, 0.055) 2px, rgba(0, 0, 0, 0.055) 4px);
  pointer-events: none;
  z-index: -1;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 128, 0.75); }
  50% { transform: scale(0.72); box-shadow: 0 0 34px rgba(0, 255, 128, 0.35); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes scan-sweep {
  0% { transform: translateY(-120%); opacity: 0; }
  18% { opacity: 0.5; }
  100% { transform: translateY(220%); opacity: 0; }
}

@keyframes caret-blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

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

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.82);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(0, 255, 128, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { color: var(--green); }

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  color: var(--bg) !important;
}

.nav-toggle { display: none; }

.nav-toggle[aria-expanded="true"] {
  color: var(--green);
  border-color: rgba(0, 255, 128, 0.48);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(0, 255, 128, 0.45); }

.btn-primary { background: var(--green); color: var(--bg); border-color: var(--green); }

.btn-secondary { background: rgba(255, 255, 255, 0.025); color: var(--text); }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 22px;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 58px;
  padding-top: 78px;
}

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

h1 {
  max-width: 790px;
  font-family: var(--mono);
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.animated-headline {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

.word-rotator {
  position: relative;
  display: inline-grid;
  color: var(--green);
  min-height: 1.08em;
  text-shadow: 0 0 28px rgba(0, 255, 128, 0.18);
}

.word-rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.28em);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.word-rotator span:first-child,
.word-rotator span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.word-rotator.is-running span {
  opacity: 0;
  transform: translateY(0.28em);
}

.word-rotator.is-running span.is-active {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  font-family: var(--mono);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.75;
  max-width: 680px;
  margin-top: 28px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.tag {
  border: 1px solid var(--line);
  background: var(--green-soft);
  color: rgba(0, 255, 128, 0.8);
  border-radius: 4px;
  padding: 7px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
  animation: hero-float 7s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 128, 0.16), transparent);
  transform: translateY(-120%);
  animation: scan-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-visual img { aspect-ratio: 1.18 / 1; object-fit: cover; }

.terminal-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(8, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.terminal-strip strong { color: var(--green); }

.terminal-strip strong::after {
  content: "_";
  display: inline-block;
  margin-left: 2px;
  animation: caret-blink 1.05s steps(1) infinite;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.section-intro {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 22px;
  max-width: 640px;
}

.service-grid, .project-grid, .testimonial-grid {
  display: grid;
  gap: 18px;
}

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

.card, .service-card, .testimonial, .form-panel {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.17);
}

.service-card { padding: 24px; }

.service-card, .process-step, .contact-tile, .form-panel {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover, .process-step:hover, .contact-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 128, 0.34);
  background: rgba(255, 255, 255, 0.052);
}

.service-card p, .testimonial p, .project-card p { color: var(--muted); line-height: 1.65; margin-top: 12px; }

.service-num {
  display: inline-block;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 22px;
}

.price-line {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 16px;
}

.detail-list {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 20px;
  padding-left: 20px;
}

.detail-list li { margin-bottom: 10px; }

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.faq-item p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.proof-item {
  padding: 20px;
  border-left: 2px solid var(--green);
  background: rgba(255, 255, 255, 0.032);
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
  margin-bottom: 8px;
}

.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 255, 128, 0.055), rgba(54, 162, 255, 0.035));
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.process-step {
  padding: 20px;
  border-left: 2px solid var(--green);
  background: rgba(255, 255, 255, 0.032);
  min-height: 154px;
}

.process-step span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.process-step h3 { margin-top: 18px; }

.process-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin-top: 10px; }

.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 38px; }

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 128, 0.35); }

.project-card img { aspect-ratio: 1.42 / 1; object-fit: cover; }

.project-body { padding: 22px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  border: 1px solid var(--line-soft);
  padding: 5px 8px;
  border-radius: 4px;
}

.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }

.testimonial { padding: 24px; }

.quote-mark {
  color: var(--green);
  font-family: var(--mono);
  font-size: 32px;
  line-height: 1;
}

.person { margin-top: 20px; font-family: var(--mono); color: var(--text); font-size: 12px; }

.page-hero {
  padding-top: 112px;
  padding-bottom: 54px;
}

.page-hero h1 { max-width: 930px; }

.form-panel {
  padding: 28px;
  margin-top: 36px;
}

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

.field { display: flex; flex-direction: column; gap: 8px; }

.field.full { grid-column: 1 / -1; }

label {
  font-family: var(--mono);
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  min-height: 46px;
  padding: 12px 14px;
  font: 500 14px var(--sans);
  outline: none;
}

textarea { min-height: 150px; resize: vertical; }

input:focus, select:focus, textarea:focus { border-color: rgba(0, 255, 128, 0.48); }

select option { background: #101820; color: var(--text); }

.form-note {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-top: 18px;
}

.insight-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 34px;
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.category-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.category-link:hover,
.category-link.is-active {
  color: var(--green);
  border-color: rgba(0, 255, 128, 0.38);
  background: var(--green-soft);
}

.cms-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cms-row:last-child { border-bottom: 0; }

.cms-row p {
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
}

.article-layout {
  max-width: 920px;
}

.article-layout h1 {
  margin-top: 24px;
}

.article-image {
  width: 100%;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ai-summary {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(0, 255, 128, 0.28);
  border-radius: 8px;
  background: var(--green-soft);
}

.ai-summary h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.ai-summary p {
  color: var(--text);
  line-height: 1.75;
  margin-top: 14px;
}

.article-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.article-content {
  margin-top: 42px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.82;
}

.article-content h2,
.article-content h3 {
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.article-content p,
.article-content ul {
  margin: 0 0 22px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content strong {
  color: var(--text);
  font-weight: 800;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.contact-tile { padding: 26px; }

.contact-tile p { color: var(--muted); line-height: 1.6; margin-top: 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links { display: flex; gap: 16px; }

.footer-credit a {
  color: var(--green);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: grid-drift 28s linear infinite; }

  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
  }

  .motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 70ms; }
  .reveal:nth-child(3) { transition-delay: 120ms; }
}

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

  .word-rotator span { opacity: 0; }
  .word-rotator span:first-child { opacity: 1; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 6px;
    min-height: 40px;
    padding: 0 12px;
    font-family: var(--mono);
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #080c10;
    z-index: 120;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-links .btn { margin-top: 8px; }
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; gap: 36px; }
  .service-grid, .project-grid, .testimonial-grid, .process, .contact-tiles { grid-template-columns: 1fr; }
  .section { padding: 72px 18px; }
  .page-hero { padding-top: 94px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cms-row { flex-direction: column; align-items: flex-start; }
  .insight-tools { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions, .btn { width: 100%; }
  .terminal-strip { position: static; margin: 12px; }
  h1 { font-size: clamp(2.25rem, 14vw, 4.2rem); }
  .form-panel { padding: 20px; }
}
