/* ============================================
   PONDSTACK SOFTWARE – Main Stylesheet
   Colors derived from logo: dark navy, cyan, purple
   ============================================ */

/* Global utility */
.hidden { display: none !important; }

/* --- CSS Variables --- */
:root {
  --bg-primary: #060b18;
  --bg-secondary: #0c1225;
  --bg-card: #111827;
  --bg-card-hover: #1a2340;
  --color-cyan: #00d4ff;
  --color-cyan-light: #4fc3f7;
  --color-purple: #8b5cf6;
  --color-purple-light: #a78bfa;
  --color-pink: #c084fc;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-white: #ffffff;
  --gradient-main: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #c084fc 100%);
  --gradient-card: linear-gradient(145deg, rgba(0,212,255,0.08), rgba(139,92,246,0.08));
  --shadow-glow: 0 0 30px rgba(0,212,255,0.15), 0 0 60px rgba(139,92,246,0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1280px;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--color-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-cyan-light); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.badge-live { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-beta { background: rgba(0,212,255,0.15); color: var(--color-cyan); border: 1px solid rgba(0,212,255,0.3); }
.badge-alpha { background: rgba(139,92,246,0.15); color: var(--color-purple-light); border: 1px solid rgba(139,92,246,0.3); }

/* --- Animated Background Waves --- */
#wave-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6,11,24,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.scrolled {
  background: rgba(6,11,24,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-toggle button.active {
  background: var(--gradient-main);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0; bottom: 0;
  background: rgba(6,11,24,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 500;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  text-align: center;
}
.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}
.hero-logo {
  width: 600px;
  height: 600px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 80px rgba(0,212,255,0.4)) drop-shadow(0 0 120px rgba(139,92,246,0.2));
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,212,255,0.3);
  color: var(--color-white);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; stroke: var(--color-text-muted); }

/* --- Product Carousel Section --- */
.carousel-section {
  position: relative;
  z-index: 1;
  padding: 40px 0 100px;
}
.carousel-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 60px;
}
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  padding: 0 24px;
}
.carousel-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 48px;
  transition: var(--transition);
  cursor: pointer;
}
.carousel-card:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.carousel-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  aspect-ratio: 16/10;
}
.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.carousel-card:hover .carousel-img img { transform: scale(1.03); }

.carousel-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.carousel-info .product-tagline {
  font-size: 1rem;
  color: var(--color-cyan);
  margin-bottom: 16px;
  font-weight: 500;
}
.carousel-info p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.carousel-info .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 50px;
  color: var(--color-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
.carousel-info .btn-outline:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--color-cyan);
  transform: translateX(4px);
}

/* Carousel Nav */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(17,24,39,0.8);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.carousel-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
  transform: scale(1.2);
}

/* --- About Section --- */
.about-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.founders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.founder-card:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: 0 0 30px rgba(0,212,255,0.1);
  transform: translateY(-2px);
}
.founder-card-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0,212,255,0.25);
}
.founder-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}
.founder-text .alias {
  color: var(--color-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.founder-text p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Products Grid Section --- */
.products-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.products-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 60px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: rgba(0,212,255,0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
  color: inherit;
}
.product-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.product-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.product-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* --- Product Detail Page --- */
.product-hero {
  position: relative;
  z-index: 1;
  padding: 140px 24px 80px;
  text-align: center;
}
.product-hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.product-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.product-hero .tagline {
  font-size: 1.15rem;
  color: var(--color-cyan);
  margin-bottom: 24px;
}
.product-hero .description {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.product-screenshot {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.product-screenshot img { width: 100%; display: block; }

.features-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}
.features-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-item {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}
.feature-item:hover {
  border-color: rgba(0,212,255,0.15);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}
.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Feature category headers */
.feature-category {
  margin-top: 48px;
  margin-bottom: 24px;
  text-align: center;
}
.feature-category:first-child { margin-top: 0; }
.feature-category h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.feature-category h3 .cat-icon {
  font-size: 1.4rem;
}

/* Product CTA */
.product-cta-section {
  position: relative;
  z-index: 1;
  padding: 60px 0 100px;
  text-align: center;
}
.product-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-main);
  color: var(--color-white);
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.product-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,212,255,0.35);
  color: var(--color-white);
}

/* --- Legal Pages --- */
.legal-page {
  position: relative;
  z-index: 1;
  padding: 140px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 32px 0 12px;
}
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 20px 0 8px;
}
.legal-page p, .legal-page li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 24px 32px;
  background: rgba(6,11,24,0.8);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
}
.footer h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer ul a:hover { color: var(--color-cyan); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Intersection Observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .carousel-card { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 100px 24px 40px; }
  .hero-logo { width: 360px; height: 360px; }
  .carousel-wrapper { padding: 0 16px; }
  .carousel-card { padding: 24px; }
  .carousel-btn { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .lang-toggle { position: absolute; right: 60px; }
}

@media (max-width: 480px) {
  .carousel-card { padding: 20px; }
  .carousel-info h3 { font-size: 1.2rem; }
}
