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

:root {
  --primary: #00E676; /* Vibrant Emerald Green */
  --primary-glow: rgba(0, 230, 118, 0.4);
  --primary-hover: #00C853;
  --bg-dark: #050505;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --text-main: #F5F5F5;
  --text-muted: #9CA3AF;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 230, 118, 0.3);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

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

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

.highlight {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

/* Utility Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

@media (min-width: 768px) {
  .section { padding: var(--spacing-xl) 0; }
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 230, 118, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 230, 118, 0.2);
  margin-bottom: 1.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.45);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-border {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-border:hover {
  background: rgba(0, 230, 118, 0.05);
  transform: translateY(-2px);
}

/* Glassmorphism Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 0;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Selector styling */
.lang-selector {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-selector:focus {
  border-color: var(--primary);
}

.lang-selector option {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* Mobile Hamburger Menu */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  padding: 0.5rem;
}

@media (min-width: 992px) {
  .navbar-toggle { display: none; }
}

.hamburger-bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

.navbar-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-overlay a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding-top: var(--spacing-xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at bottom right, rgba(0, 230, 118, 0.04) 0%, transparent 60%);
}

.hero-visual-frame {
  position: relative;
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-visual-frame:hover {
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.02);
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

@media(min-width: 992px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat-item h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.2rem;
}

.hero-stat-item p {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  height: 100%;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.08);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Product Catalogue Section */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: center;
}

@media (min-width: 992px) {
  .product-showcase {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Table styling in GreenWeek Premium style */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--glass-border);
}

th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(0, 230, 118, 0.02);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: white;
}

/* Interactive SAFE Simulator */
.safe-calculator {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.safe-calculator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #00C853);
}

.slider-container {
  margin: 2rem 0;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

input[type=range] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.calc-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin-top: 2rem;
}

@media(min-width: 768px) {
  .calc-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-metric-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.calc-metric-card:hover {
  border-color: var(--primary);
  background: rgba(0, 230, 118, 0.02);
}

.calc-metric-card .num {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.2rem;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.calc-metric-card .lbl {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-equivalence-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Carbon Counter section */
.carbon-counter-box {
  background: radial-gradient(circle at center, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.carbon-counter-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00C853, var(--primary));
}

.counter-num {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
  margin: 1.5rem 0;
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.3);
}

/* Document Grid */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: 2rem;
}

@media(min-width: 768px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: var(--transition-smooth);
}

.doc-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.doc-header {
  margin-bottom: 1.5rem;
}

.doc-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.status-public {
  background: rgba(0, 230, 118, 0.1);
  color: var(--primary);
}

.status-gated {
  background: rgba(255, 179, 0, 0.1);
  color: #FFB300;
}

.doc-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Gated Modal popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d0d0d;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--primary);
}

/* Glass Form styling */
.glass-form-group {
  margin-bottom: 1.5rem;
}

.glass-form-group label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.glass-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: white;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}

.glass-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.glass-checkbox {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.glass-checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

/* Footer styling */
footer {
  padding: var(--spacing-lg) 0;
  background: #020202;
  border-top: 1px solid var(--glass-border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

@media(min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-disclaimer {
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-disclaimer p {
  margin-bottom: 1rem;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
