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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

a:hover {
  color: var(--accent);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background: #e06000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}

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

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.navbar-brand img {
  height: 32px;
  width: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  text-decoration: none;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

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

.navbar-links a.active {
  color: var(--accent);
}

.navbar-links a.active::after {
  width: 100%;
}

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

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

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

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

.hero-aurora {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 30%;
  left: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(80px);
  animation: aurora 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blob 15s ease-in-out infinite;
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -5%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 50%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blob2 18s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  animation: float 6s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Products Section */
.products {
  background: var(--bg-secondary);
}

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

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

.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--glass-hover);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  width: fit-content;
}

.product-badge.available {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.product-badge.public-beta {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.product-badge.planned {
  background: rgba(100, 100, 255, 0.15);
  color: #8888ff;
  border: 1px solid rgba(100, 100, 255, 0.3);
}

.product-badge.in-progress {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

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

.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 24px;
}

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

.product-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.product-progress {
  margin: 16px 0 24px;
}

.product-progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.product-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: progressPulse 2s ease-in-out infinite;
}

.product-status-note {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-actions .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Why Fynix */
.why-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.why-card:hover .why-icon {
  transform: scale(1.1);
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Gallery */
.gallery {
  background: var(--bg-card);
}

.hub-gallery {
  --hub-item-height: 130px;
}

.hub-gallery .gallery-item {
  aspect-ratio: 16 / 9;
  height: var(--hub-item-height);
}

.hub-gallery .gallery-grid {
  max-width: none;
  justify-content: center;
  overflow-x: visible;
}

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

.gallery-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 8px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: all var(--transition);
  aspect-ratio: 9 / 19;
  height: 420px;
  flex: 0 0 auto;
  width: auto;
  scroll-snap-align: start;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform var(--transition);
  cursor: default;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

/* Roadmap */
.roadmap {
  background: var(--bg-secondary);
}

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

.roadmap-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.roadmap-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-secondary);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-left: 21px;
}

.roadmap-dot.completed {
  background: #4caf50;
}

.roadmap-dot.in-progress {
  background: var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

.roadmap-dot.planned {
  background: rgba(255, 255, 255, 0.2);
}

.roadmap-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* GitHub Section */
.github-header {
  text-align: center;
  margin-bottom: 64px;
}

.github-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.github-stat {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.github-stat:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  transform: translateY(-4px);
}

.github-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.github-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.github-info {
  text-align: center;
  margin-top: 40px;
}

.github-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.github-info .latest-commit {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Support Section */
.support {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.support-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.support-content .section-title {
  color: var(--accent);
}

.support-content .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
  margin-top: 16px;
}

.support-btn:hover {
  background: #e06000;
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.5);
}

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

.support-btn svg {
  width: 24px;
  height: 24px;
}

/* Disclaimer */
.disclaimer {
  background: var(--bg-card);
  padding: 60px 0;
}

.disclaimer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.disclaimer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand img {
  height: 24px;
  width: 24px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

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

.footer-links svg {
  width: 20px;
  height: 20px;
}
