:root {
  --bg0: #040b1a;
  --bg1: #0a1b34;
  --bg2: #0f2d49;
  --text: #e8f1ff;
  --muted: #a8bdd8;
  --brand: #00d4ff;
  --brand2: #00f5a0;
  --card: rgba(11, 27, 50, 0.76);
  --line: rgba(103, 170, 238, 0.3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 212, 255, 0.15), transparent 32%),
    radial-gradient(circle at 82% 6%, rgba(0, 245, 160, 0.1), transparent 28%),
    linear-gradient(145deg, var(--bg0), var(--bg1) 45%, var(--bg2));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(144, 193, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(144, 193, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 18, 35, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: var(--brand2);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.nav nav { display: flex; gap: 18px; }
.nav nav a {
  text-decoration: none;
  color: #d4e4ff;
  font-weight: 600;
}
.lang-switch button {
  border: 1px solid #2f4f76;
  background: transparent;
  color: #dbebff;
  padding: 6px 10px;
  margin-left: 6px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch .active {
  background: linear-gradient(130deg, #0369a1, #0891b2);
  border-color: #22d3ee;
}
main { max-width: 1120px; margin: 0 auto; padding: 12px 20px 90px; }
.hero {
  min-height: 74vh;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}
.eyebrow {
  color: var(--brand2);
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: 8px 0 12px; }
.hero p { color: var(--muted); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  display: inline-block;
}
.btn.primary {
  color: #032638;
  background: linear-gradient(120deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}
.btn.ghost {
  border-color: #3a5f8a;
  color: #d9ecff;
  background: rgba(12, 29, 57, 0.7);
}
.hero-stats { display: grid; gap: 10px; }
.hero-stats article {
  background: linear-gradient(160deg, rgba(12, 28, 54, 0.9), rgba(8, 20, 39, 0.9));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-stats article:hover { transform: translateY(-3px); border-color: #40d6ff; }
.hero-stats strong { font-size: 1.6rem; color: #8ef4ff; }
.section { margin-top: 64px; }
.section h2 { font-size: 1.8rem; margin-bottom: 14px; }
.section p { color: var(--muted); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips span {
  background: rgba(3, 105, 161, 0.24);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #d5f3ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform .18s ease;
}
.chips span:hover { transform: translateY(-2px) scale(1.02); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease;
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.project img { width: 100%; height: 170px; object-fit: cover; display: block; }
.project .content { padding: 14px; }
.project h3 { margin: 0 0 8px; font-size: 1.05rem; }
.project p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.project a { color: #86e8ff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: #c7f5ff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .78rem;
}
.chat-open {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  color: #032638;
  font-weight: 800;
  background: linear-gradient(120deg, #67e8f9, #34d399);
}
.chatbot {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: min(400px, calc(100vw - 36px));
  background: #081a33;
  border: 1px solid #2b557d;
  border-radius: 14px;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  height: 520px;
}
.hidden { display: none; }
.chatbot header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #0f2b53;
}
.chatbot header button { border: 0; background: transparent; color: #d9eeff; font-size: 1.2rem; cursor: pointer; }
.chat-log { padding: 10px; overflow: auto; background: #061426; }
.msg { margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; max-width: 92%; line-height: 1.35; }
.user { margin-left: auto; background: #0f3b69; color: #e7f4ff; }
.bot { background: #0f2b44; color: #d7f9ff; border: 1px solid #1f4c6a; }
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #1f3f63;
  background: #081a33;
}
.chat-suggestions button {
  border: 1px solid #2d5d89;
  background: #0d284a;
  color: #d6eaff;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 5px 8px;
  cursor: pointer;
}
#chatForm { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #1f3f63; }
#chatInput { flex: 1; border: 1px solid #2b5784; color: #e8f4ff; background: #0b2341; border-radius: 8px; padding: 8px; }
#chatForm button { border: 0; border-radius: 8px; padding: 8px 10px; background: #1cc9f3; color: #032638; font-weight: 700; }
.reveal { opacity: 0; transform: translateY(18px); animation: up .7s ease forwards; }
.delay1 { animation-delay: .15s; }
@keyframes up { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .nav { padding: 10px 14px; }
  .nav nav { gap: 10px; font-size: .9rem; }
}
