/* ============================================
   Gecko Alpha Lab — Official Website Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0f1629;
  --bg-card: #141b2d;
  --bg-card-hover: #1a2340;
  --border: #1e2a45;
  --border-light: #2a3a5c;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --cyan: #06b6d4;
  --cyan-dim: #0891b2;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --green: #22c55e;
  --green-dim: #16a34a;
  --red: #ef4444;
  --yellow: #eab308;
  --gradient: linear-gradient(135deg, #06b6d4, #22c55e);
  --gradient-text: linear-gradient(135deg, #06b6d4 0%, #22c55e 50%, #06b6d4 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 26, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(30, 42, 69, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  margin-left: 8px;
}

.lang-switcher-mobile {
  display: none;
}

.lang-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--cyan);
  color: #0a0f1a;
}

.nav-right-mobile {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: rgba(6, 182, 212, 0.08);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #0a0f1a;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.about-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-glow);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--cyan);
}

.about-icon svg {
  width: 24px;
  height: 24px;
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* --- Product Showcase --- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.product-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-info > p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  margin-bottom: 32px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.product-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

/* Terminal */
.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.terminal-line {
  white-space: pre;
}

.t-gray { color: var(--text-muted); }
.t-cyan { color: var(--cyan); }
.t-green { color: var(--green); }
.t-white { color: var(--text-primary); }
.t-red { color: var(--red); }

/* Product reverse layout */
.product-reverse {
  margin-top: 80px;
}

.product-reverse .product-info {
  order: 2;
}

.product-reverse .product-visual {
  order: 1;
}

.product-badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

/* Disclaimer */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  padding: 20px 24px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  color: var(--red);
}

.disclaimer-icon svg {
  width: 20px;
  height: 20px;
}

.disclaimer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.disclaimer-text strong {
  color: var(--text-primary);
}

/* --- Tech Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.tech-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.tech-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact --- */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  display: block;
}

.contact-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-glow);
  border-radius: 10px;
  margin: 0 auto 16px;
  color: var(--cyan);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  text-align: center;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 968px) {
  .about-grid,
  .services-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-visual {
    order: -1;
  }

  .product-reverse {
    margin-top: 56px;
  }

  .product-reverse .product-info {
    order: 0;
  }

  .product-reverse .product-visual {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .container {
    padding: 0 16px;
  }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 16px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .lang-switcher {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-right-mobile {
    display: flex;
  }

  .lang-switcher-mobile {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .logo {
    font-size: 0.9375rem;
    gap: 8px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: var(--nav-height);
  }

  .hero-content {
    padding: 48px 0 64px;
  }

  .hero-badge {
    font-size: 0.6875rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 0.9375rem;
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 40px;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 0;
    justify-content: space-around;
    width: 100%;
  }

  .stat-value {
    font-size: 1.125rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .stat-divider {
    width: 1px;
    height: 32px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .section-desc {
    font-size: 0.9375rem;
  }

  /* Grids → single column */
  .about-grid,
  .services-grid,
  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card,
  .service-card,
  .tech-card {
    padding: 24px 20px;
  }

  .service-number {
    font-size: 1.5rem;
  }

  /* Tech grid: 2 columns on mobile */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-card {
    padding: 20px 16px;
  }

  .tech-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .tech-card h4 {
    font-size: 0.875rem;
    margin-bottom: 6px;
  }

  .tech-card p {
    font-size: 0.8125rem;
  }

  /* Products */
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-reverse {
    margin-top: 48px;
  }

  .product-info h3 {
    font-size: 1.5rem;
  }

  .product-info > p {
    font-size: 0.9375rem;
  }

  .product-features li {
    font-size: 0.875rem;
    padding: 6px 0;
  }

  .product-features {
    margin-bottom: 24px;
  }

  /* Terminal: allow horizontal scroll */
  .terminal-body {
    padding: 16px;
    font-size: 0.6875rem;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-header {
    padding: 10px 14px;
  }

  .terminal-title {
    font-size: 0.625rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 20px;
  }

  /* Disclaimer */
  .disclaimer {
    padding: 16px;
    gap: 12px;
    margin-top: 32px;
  }

  .disclaimer-icon {
    width: 36px;
    height: 36px;
  }

  .disclaimer-text {
    font-size: 0.8125rem;
  }

  /* Footer */
  .footer {
    padding: 32px 0 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-links a {
    font-size: 0.8125rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .lang-btn {
    padding: 4px 7px;
    font-size: 0.6875rem;
  }

  .hero-stats {
    gap: 0;
  }

  .stat-value {
    font-size: 1rem;
  }
}
