:root {
  color-scheme: dark;
  --bg: #020613;
  --accent: #7b5bff;
  --accent-2: #19c3fb;
  --text: #f5f7ff;
  --muted: #8f9bb3;
  --glass: rgba(8, 13, 33, 0.7);
  --outline: rgba(255, 255, 255, 0.12);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% -10%, rgba(123, 91, 255, 0.4), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(25, 195, 251, 0.4), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 40%);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

.glow-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(123, 91, 255, 0.35), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(25, 195, 251, 0.18), transparent 45%);
  filter: blur(80px);
  z-index: -2;
}

.hero {
  padding: 3rem clamp(1.5rem, 4vw, 5rem) 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.hero-text span {
  color: var(--accent-2);
}

.tag {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.intro {
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060f;
  box-shadow: 0 15px 35px rgba(16, 136, 216, 0.3);
}

.ghost-btn {
  border-color: var(--outline);
  color: var(--text);
  background: transparent;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.hero-card {
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid var(--outline);
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(5, 6, 15, 0.6);
}

.location {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1.5rem;
  font-weight: 600;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38ff9c;
  box-shadow: 0 0 10px #38ff9c, 0 0 25px rgba(56, 255, 156, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats span {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-2);
}

main {
  padding: 2rem clamp(1.5rem, 4vw, 5rem) 5rem;
}

.panel {
  margin-bottom: 4rem;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  inset: -2rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.section-header {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-size: 0.75rem;
}

.panel h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border-radius: 28px;
  padding: 1.75rem;
  border: 1px solid var(--outline);
  background: rgba(4, 8, 22, 0.8);
  backdrop-filter: blur(50px);
  box-shadow: 0 20px 50px rgba(4, 8, 22, 0.6);
}

.card.glass {
  background: var(--glass);
}

.card.neon {
  border-color: rgba(123, 91, 255, 0.4);
  background: rgba(5, 8, 30, 0.9);
  box-shadow: 0 0 50px rgba(123, 91, 255, 0.15);
}

.card.outline {
  background: transparent;
  border-style: dashed;
}

.card.highlight {
  background: linear-gradient(135deg, rgba(123, 91, 255, 0.2), rgba(25, 195, 251, 0.2));
  border-color: transparent;
}

.card h3,
.card h4 {
  margin-top: 0;
}

.card ul {
  padding-left: 1.1rem;
  color: var(--muted);
}

.card li {
  margin-bottom: 0.6rem;
}

.insights span {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-2);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline article {
  margin-left: 2.5rem;
  position: relative;
}

.timeline article::before {
  content: '';
  position: absolute;
  left: -2.7rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  background: var(--bg);
  box-shadow: 0 0 10px var(--accent-2);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.role {
  font-size: 1.25rem;
  font-weight: 600;
}

.place {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.domain {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .panel::before {
    inset: -1rem;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline article {
    margin-left: 1.5rem;
  }

  .timeline article::before {
    left: -1.6rem;
  }
}

/* AI Chat Bot Popup Styles */
.ai-chat-bot-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #05060f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(123, 91, 255, 0.4),
    0 0 20px rgba(25, 195, 251, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

.ai-chat-bot-button svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.ai-chat-bot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(123, 91, 255, 0.5),
    0 0 30px rgba(25, 195, 251, 0.4);
}

.ai-chat-bot-button:active {
  transform: scale(0.95);
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff4757;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: bounce 1s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(123, 91, 255, 0.4),
      0 0 20px rgba(25, 195, 251, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(123, 91, 255, 0.6),
      0 0 30px rgba(25, 195, 251, 0.5);
  }
}

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

.ai-chat-bot-popup {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  width: 400px;
  max-width: calc(100vw - 4rem);
  height: 600px;
  max-height: calc(100vh - 120px);
  border-radius: 24px;
  border: 1px solid var(--outline);
  background: var(--glass);
  backdrop-filter: blur(50px);
  box-shadow: 0 40px 80px rgba(5, 6, 15, 0.8),
    0 0 40px rgba(123, 91, 255, 0.3);
  overflow: hidden;
  z-index: 999;
  display: none;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.ai-chat-bot-popup.active {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chat-popup-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--outline);
  background: rgba(8, 13, 33, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 5px 15px rgba(123, 91, 255, 0.3);
  color: #05060f;
}

.chat-header-avatar svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.chat-popup-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-status {
  margin: 0;
  font-size: 0.85rem;
  color: #38ff9c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38ff9c;
  box-shadow: 0 0 10px #38ff9c;
  animation: pulse 1.8s infinite;
}

.chat-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: rgba(8, 13, 33, 0.6);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.ai-chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(4, 8, 22, 0.5);
  min-height: 0;
}

.ai-chat-window::-webkit-scrollbar {
  width: 8px;
}

.ai-chat-window::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ai-chat-window::-webkit-scrollbar-thumb {
  background: rgba(123, 91, 255, 0.5);
  border-radius: 10px;
}

.ai-chat-window::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 91, 255, 0.7);
}

.chat-message {
  display: flex;
  gap: 1rem;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 5px 15px rgba(123, 91, 255, 0.3);
  color: #05060f;
}

.message-avatar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.message-content {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  background: rgba(8, 13, 33, 0.6);
  border: 1px solid rgba(123, 91, 255, 0.2);
  max-width: 75%;
}

.user-message .message-content {
  background: linear-gradient(135deg, rgba(123, 91, 255, 0.2), rgba(25, 195, 251, 0.2));
  border-color: rgba(123, 91, 255, 0.4);
}

.message-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.message-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.suggestion-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 91, 255, 0.4);
  background: rgba(123, 91, 255, 0.1);
  color: var(--accent-2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-btn:hover {
  background: rgba(123, 91, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.chat-input-container {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--outline);
  background: rgba(4, 8, 22, 0.8);
}

.chat-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: rgba(8, 13, 33, 0.8);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(123, 91, 255, 0.3);
}

.chat-input::placeholder {
  color: var(--muted);
}

.send-btn {
  padding: 0.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060f;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(123, 91, 255, 0.3);
  flex-shrink: 0;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(123, 91, 255, 0.4);
}

.send-btn:active {
  transform: translateY(0);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.typing-indicator {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .ai-chat-bot-popup {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 90px;
    height: calc(100vh - 110px);
    max-height: calc(100vh - 110px);
  }

  .ai-chat-bot-button {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
  }

  .ai-chat-window {
    padding: 1rem;
  }

  .message-content {
    max-width: 85%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .panel::before {
    display: none;
  }

  .ai-chat-window {
    height: 350px;
    padding: 1rem;
  }

  .message-content {
    max-width: 90%;
    padding: 0.75rem 1rem;
  }
}

