/* ==========================================================================
   HARMONY PROTOCOL SHOWCASE DESIGN SYSTEM
   Theme: Space Aurora & Tech Minimalist Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-color: #09090b;          /* Charcoal space black */
  --card-bg: rgba(20, 20, 25, 0.4);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --primary: #10b981;           /* Eco Green (Power Saving) */
  --primary-glow: rgba(16, 185, 129, 0.4);
  --cyan: #06b6d4;              /* Quantum Cyan (Logic/Tech) */
  --cyan-glow: rgba(6, 182, 212, 0.4);
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 100%);
  --text-gradient: linear-gradient(to right, #ffffff 30%, var(--cyan) 60%, var(--primary) 100%);
  
  /* Layout */
  --container-width: 1200px;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Ambient Aurora Glow */
.glow-bg {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(160px);
  opacity: 0.12;
}

.glow-green {
  background-color: var(--primary);
  top: -20%;
  right: -10%;
}

.glow-cyan {
  background-color: var(--cyan);
  bottom: -20%;
  left: -10%;
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================================================== */

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

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2-1 {
  grid-template-columns: 1.2fr 0.8fr;
}

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

/* Glassmorphism Card style */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Typography elements */
.text-glow {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-green { color: var(--primary); }
.text-cyan { color: var(--cyan); }
.text-green-glow {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #d4d4d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1rem;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #000;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER STYLE
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 500;
}

nav a:not(.btn):hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding: 8rem 0 6rem 0;
  text-align: center;
  position: relative;
}

.badge-wrapper {
  margin-bottom: 2rem;
}

.badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
  padding: 6rem 0;
}

.stat-card {
  text-align: center;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   SIMULATOR / BENCHMARK SECTION
   ========================================================================== */

.simulator-section {
  padding: 6rem 0;
}

.simulator-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.1rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.simulator-display {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .simulator-display {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bar-track {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0%; /* Dynamic animate via app.js */
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-baseline {
  background: linear-gradient(to right, #52525b, #71717a);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.bar-harmony {
  background: var(--primary-gradient);
  box-shadow: 0 0 15px var(--primary-glow);
}

.bar-value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: right;
}

.benchmark-info {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--cyan);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.benchmark-info h3 {
  font-size: 1.4rem;
}

.benchmark-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.saving-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  width: fit-content;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.saving-value {
  text-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================================================
   THE 6 LAWS SECTION
   ========================================================================== */

.laws-section {
  padding: 6rem 0;
}

.law-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.law-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.law-card:hover::before {
  opacity: 1;
}

.law-num {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.7;
}

.law-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.law-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 6rem 0 8rem 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 2rem;
}

.contact-info h2 {
  font-size: 2.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.summit-highlight {
  display: flex;
  gap: 1.5rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.sh-icon {
  font-size: 2rem;
}

.summit-highlight strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--cyan);
}

.summit-highlight p {
  font-size: 0.95rem;
  margin: 0;
}

/* Contact Form controls */
.contact-card {
  padding: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
  background: rgba(255, 255, 255, 0.05);
}

.form-feedback-visible {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease forwards;
}

.form-feedback-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary);
}

.form-feedback-hidden {
  display: none;
}

/* ==========================================================================
   FOOTER STYLE
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #060608;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

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

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

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
