:root {
  --bg: #020b0d;
  --bg-soft: #071417;
  --panel: rgba(78, 217, 230, 0.08);
  --panel-strong: rgba(78, 217, 230, 0.12);
  --line: rgba(78, 217, 230, 0.22);
  --text: #d8fdff;
  --muted: #88d7dc;
  --accent: #4ed9e6;
  --accent-2: #8bf7ff;
  --shadow: 0 0 20px rgba(78, 217, 230, 0.18);
  --shadow-strong: 0 0 32px rgba(78, 217, 230, 0.28);
  --radius: 22px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, rgba(78, 217, 230, 0.08), transparent 30%), linear-gradient(180deg, #010709 0%, #020b0d 35%, #031114 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

canvas#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(78, 217, 230, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(2, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(139, 247, 255, 0.35);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(78, 217, 230, 0.18), rgba(78, 217, 230, 0.02));
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  flex-shrink: 0;
  color: var(--accent-2);
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(139, 247, 255, 0.45);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(139, 247, 255, 0.4);
  box-shadow: var(--shadow);
}

.hero,
.page-hero {
  position: relative;
  z-index: 2;
  padding: 64px 0 36px;
}

.compact-page-hero { padding-bottom: 10px; }

.flash-shell {
  position: relative;
  z-index: 3;
  padding-top: 18px;
}

.flash-stack {
  display: grid;
  gap: 12px;
}

.flash-message,
.form-errors {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.flash-success {
  background: linear-gradient(180deg, rgba(100, 233, 197, 0.18), rgba(78, 217, 230, 0.08));
  color: var(--text);
}

.form-errors {
  margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(255, 101, 88, 0.18), rgba(78, 217, 230, 0.04));
  border-color: rgba(255, 101, 88, 0.4);
}

.form-errors p {
  margin: 0;
}

.form-errors p + p {
  margin-top: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.hero-copy h1,
.page-title {
  margin: 18px 0;
  font-size: clamp(2.5rem, 5.8vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero-copy h1 .accent {
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(139, 247, 255, 0.35);
}

.hero-copy p,
.post-detail-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}

.hero-actions-tight {
  margin: 16px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(78, 217, 230, 0.07);
  color: var(--text);
  font-weight: 700;
  transition: 0.25s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(78, 217, 230, 0.18), rgba(139, 247, 255, 0.12));
  border-color: rgba(139, 247, 255, 0.45);
  color: var(--accent-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(5, 22, 26, 0.94), rgba(3, 14, 17, 0.9));
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-video-wrap { padding: 16px; }

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  border: 1px solid rgba(139, 247, 255, 0.22);
  background: #000;
  box-shadow: 0 0 34px rgba(78, 217, 230, 0.16);
}

.fallback-video {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(78, 217, 230, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(7, 20, 23, 0.98), rgba(3, 14, 17, 0.96));
}

.fallback-video-copy {
  max-width: 420px;
  text-align: left;
}

.fallback-video-copy h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.fallback-video-copy p {
  margin: 0;
  color: var(--muted);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-dots { display: flex; gap: 8px; }

.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  box-shadow: 0 0 10px rgba(78, 217, 230, 0.5);
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(139, 247, 255, 0.03) 50%, transparent 100%);
  animation: scan 7s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

section {
  position: relative;
  z-index: 2;
  padding: 82px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(78, 217, 230, 0.07), rgba(78, 217, 230, 0.03));
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(180deg, rgba(78, 217, 230, 0.12), rgba(78, 217, 230, 0.04));
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--accent-2);
}

.card p,
.card li { color: var(--muted); }

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.about-panel,
.contact-panel,
.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(78, 217, 230, 0.06), rgba(78, 217, 230, 0.02));
  box-shadow: var(--shadow);
}

.list-clean {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.list-clean div,
.contact-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(78, 217, 230, 0.04);
  color: var(--muted);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(78, 217, 230, 0.05);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-wrap .contact-panel > p,
.compact-page-hero .section-head p {
  font-size: 1.1rem;
}

.contact-items {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.access-note {
  margin-top: 10px;
  color: var(--muted);
}

.contact-item small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

form { display: grid; gap: 14px; }

label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-2);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(139, 247, 255, 0.25);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  font: inherit;
  transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(139, 247, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(78, 217, 230, 0.11);
}

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

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

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 28px 0 50px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-phone {
  color: var(--accent-2);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 247, 255, 0.24);
  background: rgba(78, 217, 230, 0.06);
  box-shadow: var(--shadow);
}

.contact-direct-actions {
  margin: 18px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.floating-ant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(139,247,255,0.25);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(78,217,230,0.22), rgba(78,217,230,0.05) 58%, rgba(2,11,13,0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(78,217,230,0.35), 0 0 44px rgba(78,217,230,0.14);
  z-index: 999;
  animation: floatAnt 4.6s ease-in-out infinite;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.floating-ant:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 26px rgba(139,247,255,0.55), 0 0 56px rgba(78,217,230,0.22);
  border-color: rgba(139,247,255,0.5);
}

.floating-ant-image {
  width: 62%;
  height: 62%;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 8px rgba(139,247,255,0.35));
  object-fit: contain;
}

.floating-ant-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(139,247,255,0.18);
  border-radius: 50%;
  animation: antRing 3.6s linear infinite;
}

.floating-ant-ring-2 {
  inset: -10px;
  opacity: 0.5;
  animation-duration: 5.2s;
  animation-direction: reverse;
}

.floating-ant-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8bf7ff;
  box-shadow: 0 0 10px rgba(139,247,255,0.95);
  z-index: 4;
}

.floating-ant-tooltip {
  position: absolute;
  right: 94px;
  bottom: 50%;
  transform: translateY(50%) translateX(8px);
  background: rgba(2,11,13,0.96);
  color: var(--accent-2);
  border: 1px solid rgba(139,247,255,0.24);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-ant:hover .floating-ant-tooltip,
.floating-ant:focus-visible .floating-ant-tooltip {
  opacity: 1;
  transform: translateY(50%) translateX(0);
}

.ant-assistant-panel {
  position: fixed;
  right: 22px;
  bottom: 112px;
  width: min(420px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid rgba(139,247,255,0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(139,247,255,0.12), transparent 28%),
    linear-gradient(180deg, rgba(5, 22, 26, 0.97), rgba(3, 14, 17, 0.98));
  box-shadow: 0 22px 70px rgba(0,0,0,0.42), 0 0 26px rgba(78,217,230,0.18);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ant-assistant-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ant-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ant-assistant-head h2,
.ant-assistant-head p,
.ant-assistant-response p {
  margin: 0;
}

.ant-assistant-head h2 {
  margin-top: 12px;
  font-size: 1.6rem;
  line-height: 1;
}

.ant-assistant-head p {
  margin-top: 10px;
  color: var(--muted);
}

.ant-assistant-pill {
  padding: 8px 12px;
  font-size: 0.72rem;
}

.ant-assistant-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(78, 217, 230, 0.08);
  color: var(--accent-2);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.ant-assistant-form {
  margin-top: 18px;
}

.ant-assistant-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ant-assistant-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ant-assistant-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(78, 217, 230, 0.06);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.ant-assistant-chip:hover {
  border-color: rgba(139,247,255,0.44);
  color: var(--accent-2);
  box-shadow: var(--shadow);
}

.ant-assistant-response {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(139,247,255,0.16);
  background: rgba(78, 217, 230, 0.05);
  min-height: 122px;
}

.ant-assistant-response h3 {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 1rem;
}

.ant-assistant-response p {
  color: var(--muted);
}

.ant-assistant-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139,247,255,0.28);
  color: var(--accent-2);
  background: rgba(78, 217, 230, 0.08);
  box-shadow: var(--shadow);
}

.ant-assistant-placeholder {
  color: var(--muted);
}

.floating-ant.active-ant {
  box-shadow:
    0 0 25px rgba(78,217,230,0.8),
    0 0 60px rgba(78,217,230,0.5),
    0 0 100px rgba(78,217,230,0.3);
  transform: scale(1.15);
  transition: 0.2s ease;
  border-color: rgba(139,247,255,0.66);
}

.floating-ant.active-ant .floating-ant-dot {
  background: #d8fdff;
  box-shadow: 0 0 12px rgba(216,253,255,1), 0 0 26px rgba(139,247,255,0.9);
}

.floating-ant.active-ant .floating-ant-ring {
  border-color: rgba(139,247,255,0.5);
}

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

@keyframes antRing {
  0% { transform: rotate(0deg) scale(1); opacity: 0.35; }
  50% { opacity: 0.75; }
  100% { transform: rotate(360deg) scale(1.02); opacity: 0.35; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-layout,
  .contact-wrap,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 34px; }
  .hero-grid { min-height: auto; }
}

@media (max-width: 760px) {
  .nav-inner {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links { gap: 14px; }
  .hero-copy h1,
  .page-title { font-size: clamp(2.2rem, 13vw, 3.5rem); }
  .hero-stats { grid-template-columns: 1fr; }
  section { padding: 66px 0; }
  .brand-copy strong { font-size: 1rem; }

  .floating-ant {
    width: 64px;
    height: 64px;
    right: 14px;
    bottom: 14px;
  }

  .ant-assistant-panel {
    right: 14px;
    bottom: 90px;
    width: calc(100vw - 28px);
    padding: 18px;
  }

  .ant-assistant-input-row {
    grid-template-columns: 1fr;
  }

  .floating-ant-tooltip { display: none; }
}
