/* Template 12: Tech - Futuristic cyber aesthetic */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0a0a0f;
  position: relative;
  overflow-x: hidden;
}

/* Cyber Grid Background */
.cyber-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Monospace styling */
.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

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

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #00ffaa;
}

.logo-bracket {
  color: #666;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ffaa;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #00ffaa;
  letter-spacing: 1px;
}

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #00ffaa;
  padding: 10px 20px;
  border: 1px solid #00ffaa;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #00ffaa;
  color: #0a0a0f;
}

/* Data Tags */
.data-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.tag-prefix {
  color: #00ffaa;
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  padding-right: 40px;
}

.glitch-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch-1 0.3s infinite;
  color: #ff0080;
  z-index: -1;
  opacity: 0.8;
}

.glitch-text:hover::after {
  animation: glitch-2 0.3s infinite;
  color: #00ffaa;
  z-index: -2;
  opacity: 0.8;
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
  100% { transform: translate(0); }
}

.hero-description {
  font-size: 16px;
  color: #888;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Price Terminal */
.price-terminal {
  background: rgba(0, 255, 170, 0.05);
  border: 1px solid rgba(0, 255, 170, 0.2);
  margin-bottom: 32px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 255, 170, 0.1);
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

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

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.terminal-dots span:first-child {
  background: #ff5f56;
}

.terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-dots span:last-child {
  background: #27ca3f;
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #666;
}

.terminal-body {
  padding: 20px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 8px 0;
}

.price-label {
  color: #666;
}

.price-value {
  color: #e0e0e0;
}

.price-line.struck .price-value {
  text-decoration: line-through;
  color: #555;
}

.price-line.highlight {
  border-top: 1px dashed rgba(0, 255, 170, 0.3);
  margin-top: 8px;
  padding-top: 16px;
}

.price-line.highlight .price-value {
  color: #00ffaa;
  font-weight: 700;
}

/* Buttons */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: #00ffaa;
  padding: 18px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #00ffaa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-cyber:hover::before {
  left: 100%;
}

.btn-cyber:hover {
  background: #00ffaa;
  color: #0a0a0f;
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
}

.btn-large {
  padding: 22px 48px;
  font-size: 16px;
}

/* Trust Grid */
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #666;
}

.trust-icon {
  color: #00ffaa;
}

/* Gallery */
.hero-gallery {
  position: relative;
}

.gallery-frame {
  position: relative;
  padding: 20px;
  background: rgba(0, 255, 170, 0.02);
  border: 1px solid rgba(0, 255, 170, 0.2);
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #00ffaa;
}

.frame-corner.tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.frame-corner.tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.frame-corner.bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.frame-corner.br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.9);
  transition: filter 0.3s ease;
}

.main-image:hover {
  filter: saturate(1);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to bottom, rgba(0, 255, 170, 0.3), transparent);
  animation: scan 3s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.thumb {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  background: none;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.thumb:hover {
  border-color: rgba(0, 255, 170, 0.5);
}

.thumb.active {
  border-color: #00ffaa;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.thumb.active img,
.thumb:hover img {
  opacity: 1;
}

.thumb-index {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00ffaa;
  background: rgba(10, 10, 15, 0.8);
  padding: 2px 6px;
}

/* Features Section */
.features {
  padding: 100px 0;
  border-top: 1px solid rgba(0, 255, 170, 0.1);
}

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

.section-header h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 8px;
}

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

.feature-card {
  background: rgba(0, 255, 170, 0.02);
  border: 1px solid rgba(0, 255, 170, 0.1);
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 255, 170, 0.3);
  background: rgba(0, 255, 170, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #00ffaa;
}

.card-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 255, 170, 0.2);
}

.feature-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
}

/* CTA Section */
.cta {
  padding: 100px 0;
}

.cta-terminal {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0, 255, 170, 0.02);
  border: 1px solid rgba(0, 255, 170, 0.2);
}

.cta-body {
  text-align: center;
  padding: 48px 32px;
}

.cta-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #00ffaa;
  margin-bottom: 24px;
}

.prompt-symbol {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cta-body h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(0, 255, 170, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #00ffaa;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    padding-right: 0;
  }

  .glitch-text {
    font-size: 36px;
  }

  .nav-status {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 80px;
  }

  .glitch-text {
    font-size: 28px;
  }

  .btn-cyber {
    width: 100%;
  }

  .trust-grid {
    flex-direction: column;
    gap: 16px;
  }

  .features {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .cta-body h2 {
    font-size: 24px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
