/* ==========================================================================
   ColorAlchemy — Official Website & AdMob Verification Stylesheet
   Design: Dark Glassmorphism, Liquid Color Glows, Modern Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #070a12;
  --bg-card: rgba(18, 24, 43, 0.75);
  --bg-card-hover: rgba(26, 35, 62, 0.85);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(124, 58, 237, 0.4);

  /* Brand Accents */
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-bright: #ffffff;

  /* Shadows */
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --shadow-neon-purple: 0 0 30px rgba(139, 92, 246, 0.4);
  --shadow-neon-cyan: 0 0 30px rgba(6, 182, 212, 0.4);
}

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

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

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

/* Dynamic Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--accent-purple);
  top: -100px;
  left: 10%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 40%;
  right: -50px;
  animation-delay: -6s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--accent-pink);
  bottom: -50px;
  left: 20%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.9); }
}

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

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 10, 18, 0.8);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-bright);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(2deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.btn-ads-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-ads-badge:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Hero Section */
.hero-section {
  padding: 70px 0 60px;
  text-align: center;
}

.hero-icon-wrapper {
  margin-bottom: 28px;
  display: inline-block;
  position: relative;
}

.hero-app-icon {
  width: 130px;
  height: 130px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5), 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.25);
  animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(2deg); }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-purple), #6366f1);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-neon-purple);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-bright);
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

/* AdMob Verification Section */
.admob-section {
  margin: 60px 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.admob-card {
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.admob-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan), var(--accent-emerald));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.pub-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pub-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.pub-meta h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.pub-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Code Snippet Box */
.code-box {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.code-content {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.98rem;
  color: #67e8f9;
  word-break: break-all;
  user-select: all;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #d8b4fe;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-copy:hover {
  background: rgba(139, 92, 246, 0.35);
  color: #ffffff;
}

/* Verification Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Interactive Mini-Demo Section */
.demo-section {
  margin: 80px 0;
}

.game-board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.tubes-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  padding: 30px 20px;
  min-height: 240px;
}

/* Tube Styling */
.tube {
  width: 54px;
  height: 170px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column-reverse;
  padding: 4px;
  gap: 3px;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05), 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tube:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.6);
}

.tube.selected {
  transform: translateY(-16px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), inset 0 0 15px rgba(6, 182, 212, 0.2);
}

.liquid-layer {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.liquid-layer:first-child {
  border-radius: 6px 6px 20px 20px;
}

.color-purple { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.color-cyan   { background: linear-gradient(180deg, #67e8f9, #0891b2); }
.color-emerald{ background: linear-gradient(180deg, #6ee7b7, #059669); }
.color-pink   { background: linear-gradient(180deg, #f472b6, #db2777); }

.demo-controls {
  display: flex;
  gap: 16px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin: 60px 0;
}

.feature-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.icon-purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.icon-cyan   { background: rgba(6, 182, 212, 0.15);   color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-emerald{ background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-amber  { background: rgba(245, 158, 11, 0.15); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-pink   { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.icon-blue   { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Accordion (Privacy Policy / Terms) */
.legal-section {
  margin: 80px 0;
}

.accordion-item {
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}

.accordion-header {
  width: 100%;
  padding: 20px 28px;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chevron {
  transition: transform 0.3s ease;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 10px 28px 28px;
}

.accordion-content p {
  margin-bottom: 14px;
}

.accordion-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  margin-top: 80px;
  background: rgba(5, 8, 16, 0.8);
}

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

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
  .code-box {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-copy {
    justify-content: center;
  }
}
