﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --background: #0c0c0c;
  --panel: rgba(20, 20, 20, 0.9);
  --panel-solid: #141414;
  --text: #e6e6e6;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #1f1f1f;
  --accent: #00ff99;
  --accent-hover: #00cc7a;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.tech-grid {
  position: relative;
  min-height: 100vh;
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.35) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .tech-grid { padding: 3rem 1.5rem; background-size: 15px 15px; }
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.7;
}

.glow.one {
  width: 320px;
  height: 320px;
  background: rgba(0, 255, 153, 0.15);
  top: -40px;
  right: -60px;
}

.glow.two {
  width: 240px;
  height: 240px;
  background: rgba(0, 255, 153, 0.08);
  bottom: 20px;
  left: 0;
}

main {
  position: relative;
  width: min(100%, 1100px);
  z-index: 1;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .logo {
    width: 80px;
  }
  .logo-container {
    margin-bottom: 1.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  border: 1px solid rgba(0, 255, 153, 0.3);
  background: rgba(20, 20, 20, 0.7);
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin: 1rem 0 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: border 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(0, 255, 153, 0.5);
  box-shadow: 0 0 24px rgba(0, 255, 153, 0.15);
  transform: translateY(-3px);
}

.card small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.panel {
  border-radius: 2rem;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.panel-text {
  flex: 1 1 240px;
}

.panel-text span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.panel-text h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.panel-text p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta a {
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #010101;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta a:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta small {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .panel { border-radius: 1.5rem; }
  .badge { font-size: 0.7rem; letter-spacing: 0.15em; }
  .cta a { font-size: 0.8rem; letter-spacing: 0.15em; }
}

/* Screenshots carousel */
.screenshots {
  margin: 4rem 0;
  text-align: center;
}

.screenshots h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--text);
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.screenshot-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.screenshot-img {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.screenshot-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 255, 153, 0.15);
}

.screenshot-caption {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 153, 0.2);
  border: 1px solid rgba(0, 255, 153, 0.4);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 255, 153, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .screenshot-img {
    max-width: 100%;
  }
  
  .screenshot-caption {
    font-size: 0.75rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  max-width: 95%;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 153, 0.3);
  box-shadow: 0 0 50px rgba(0, 255, 153, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { 
    transform: scale(0.8);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--text);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  z-index: 10000;
}

.modal-close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 153, 0.15);
  border: 1px solid rgba(0, 255, 153, 0.4);
  color: var(--accent);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  line-height: 1;
}

.modal-nav:hover {
  background: rgba(0, 255, 153, 0.25);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.5);
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
  }
  
  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  
  .modal-prev {
    left: 1rem;
  }
  
  .modal-next {
    right: 1rem;
  }
}
