/* Zetonic Landing Page */

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

:root {
  --bg: #0a0a0b;
  --surface: rgba(0, 0, 0, 0.5);
  --surface-hover: rgba(0, 0, 0, 0.65);
  --text: #fafafa;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: rgba(255, 255, 255, 0.12);
  --accent-strong: rgba(255, 255, 255, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Outfit', -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.95), rgba(10, 10, 11, 0.8));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.nav-gh {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-gh:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(100, 116, 255, 0.15), transparent);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: inline-block;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes bounce {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

/* Sections */
.section {
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Preview */
.preview {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-grid {
  max-width: 900px;
  margin: 0 auto;
}

.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Preview */
.features-preview {
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent-strong);
  transform: translateY(-4px);
}

.fi-icon {
  font-size: 32px;
}

/* Install */
.install {
  max-width: 800px;
  margin: 0 auto;
}

.install-method {
  margin-bottom: 48px;
}

.install-method h3 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.code-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  overflow-x: auto;
}

code {
  font-family: 'JetBrains Mono', monospace;
}

.code-copy {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 16px;
}

.code-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.install-method p {
  font-size: 14px;
  color: var(--text-muted);
}

.install-steps {
  list-style: none;
  padding: 0;
}

.install-steps li {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 15px;
}

.install-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

/* FAQ */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  background: var(--surface);
  transition: background 0.3s ease;
  user-select: none;
}

.faq-item summary:hover {
  background: var(--surface-hover);
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-sub {
  font-size: 12px;
  opacity: 0.8;
}

/* Animations */
.animate-fade {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s ease-out forwards;
}

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

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  display: none;
  animation: toastSlide 0.3s ease-out forwards;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Noise effect */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .nav-logo {
    margin-right: 0;
  }

  .nav-links {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    padding: 40px 20px;
  }

  .section {
    padding: 40px 20px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .code-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .code-copy {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 8px;
  }

  .hero-scroll {
    display: none;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1s !important;
  }
}
