/*
Theme Name: Parcel Proof Theme
Description: A premium, dark-mode custom theme for Parcel Proof.
Author: BloomBasket LTD
Version: 1.0.0
*/

:root {
  --primary: #A8CE45;
  --bg-dark: #111507;
  
  --tint-10: #B1D358;
  --tint-20: #B9D86A;
  --tint-30: #C2DD7D;
  --tint-90: #F6FAEC;
  
  --shade-10: #97B93E;
  --shade-20: #86A537;
  --shade-50: #546723;
  --shade-80: #22290E;

  --text-light: #F6FAEC;
  --text-muted: #C2DD7D;
  
  --header-bg: rgba(17, 21, 7, 0.8);
  --callout-bg: rgba(17, 21, 7, 0.85);
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  --card-shadow: 0 4px 12px rgba(0,0,0,0);
  --card-shadow-hover: 0 12px 30px rgba(0,0,0,0.4);
}

body.light-theme {
  --bg-dark: #F6FAEC;
  --text-light: #111507;
  --text-muted: #546723;
  --shade-80: #e0e8cd; /* For feature card backgrounds */
  --header-bg: rgba(246, 250, 236, 0.8);
  --callout-bg: rgba(246, 250, 236, 0.85);
  
  --card-shadow: 0 4px 12px rgba(84, 103, 35, 0.03);
  --card-shadow-hover: 0 15px 35px rgba(84, 103, 35, 0.15);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--tint-20);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--shade-80);
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
}

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

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  background: var(--shade-80);
  color: var(--primary);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--tint-10);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 206, 69, 0.3);
}

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

.btn-outline:hover {
  background-color: rgba(168, 206, 69, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0 8rem;
  background: radial-gradient(circle at top, var(--shade-80) 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-visual {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
}

#hero-canvas-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 12px;
}

#ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#callout-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.callout-line {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.callout-dot {
  fill: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 6px var(--primary));
}

.callout-dot.active {
  opacity: 1;
}

.callout-label {
  position: absolute;
  background: var(--callout-bg);
  border: 1px solid var(--primary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.callout-label.metadata {
  text-align: center;
}

.callout-label.metadata .shape-text {
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.callout-label.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.callout-line.active {
  stroke-dashoffset: 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.subheadline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 0 3rem 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--bg-dark);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--text-light);
}

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

.feature-card {
  background: var(--shade-80);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(168, 206, 69, 0.1);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(168, 206, 69, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Partnership Pitch Section */
.pitch {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--shade-80) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--shade-50);
  border-bottom: 1px solid var(--shade-50);
}

.pitch-content {
  max-width: 800px;
  margin: 0 auto;
}

.pitch h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.pitch p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.pitch ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pitch li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.125rem;
}

.pitch li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background-color: var(--bg-dark);
  text-align: center;
  border-top: 1px solid var(--shade-80);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--shade-80);
  color: var(--shade-20);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-split { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-text { margin-bottom: 2rem; }
  .hero p.subheadline { margin: 0 auto 2rem; }
  
  .hero-buttons { justify-content: center; flex-direction: column; width: 100%; gap: 1rem; }
  .hero-buttons .btn { width: 100%; text-align: center; box-sizing: border-box; }
  
  .hero h1 { font-size: 2.2rem; }
  
  .header-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .logo img { height: 32px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.9rem; }
  
  .pitch h2 { font-size: 2rem; }
  
  .callout-label { padding: 0.35rem 0.5rem; font-size: 0.75rem; border-radius: 4px; }
  .callout-label.metadata .shape-text { font-size: 0.65rem; }
}
