/* transactology.net - Opulent Grand Botanical Transaction Mapping */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Playfair Display (headings), Inter (body) */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #1a1a2e;
  color: #f5f0e8;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Aurora Background */
#aurora-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

#aurora-canvas {
  width: 100%; height: 100%;
  display: block;
}

/* Ripple overlay */
#ripple-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 75, 0.3);
  animation: rippleExpand 1.5s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleExpand {
  0% { width: 0; height: 0; opacity: 1; transform: translate(-50%, -50%); }
  100% { width: 300px; height: 300px; opacity: 0; transform: translate(-50%, -50%); }
}

/* Header */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0));
  transition: background 0.4s ease;
}

#site-header.scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6c757d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: #e8b84b;
  transition: width 0.3s ease;
}

.nav-link:hover { color: #e8b84b; }
.nav-link:hover::after { width: 100%; }

/* Hero */
#hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-content {
  max-width: 800px;
}

.hero-botanical-circuit {
  margin-bottom: 2rem;
}

.hero-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  opacity: 0;
  animation: fadeInUp 1.2s ease 0.3s forwards;
}

.botanical-path, .botanical-leaf, .circuit-line {
  stroke-dashoffset: 1000;
  stroke-dasharray: 1000;
  animation: drawPath 3s ease forwards;
}

.circuit-line { animation-delay: 1s; }
.leaf-1 { animation-delay: 0.5s; }
.leaf-2 { animation-delay: 0.8s; }
.leaf-3 { animation-delay: 1.1s; }
.leaf-4 { animation-delay: 1.4s; }

.circuit-node {
  opacity: 0;
  animation: fadeIn 0.5s ease 2s forwards;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: #f5f0e8;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #6c757d;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1a1a2e;
  background: #e8b84b;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border: 1px solid #e8b84b;
  transition: all 0.4s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.hero-cta:hover {
  background: transparent;
  color: #e8b84b;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6c757d;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #e8b84b, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #e8b84b;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.2;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #f5f0e8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #6c757d;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-svg {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  display: block;
  animation: rotateSlowly 60s linear infinite;
}

@keyframes rotateSlowly {
  to { transform: rotate(360deg); }
}

/* Methodology */
.methodology-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.method-card {
  background: rgba(74, 144, 217, 0.05);
  border: 1px solid rgba(74, 144, 217, 0.1);
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, transparent, #e8b84b, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.method-card:hover {
  background: rgba(74, 144, 217, 0.08);
  border-color: rgba(232, 184, 75, 0.3);
  transform: translateY(-4px);
}

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

.card-icon {
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 1rem;
}

.card-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.7;
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(108, 117, 125, 0.3);
  transform: translateX(-50%);
}

.timeline-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, #e8b84b, #4a90d9);
  transform: translateX(-50%);
  transition: height 0.1s linear;
  filter: blur(1px);
  opacity: 0.6;
}

.timeline-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.timeline-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node:nth-child(odd) .node-content { margin-left: auto; }

.node-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #1a1a2e;
  border-radius: 50%;
  padding: 2px;
}

.node-content {
  width: 42%;
  padding: 1.5rem;
}

.node-right { margin-left: 55%; }
.node-left { margin-right: 55%; text-align: right; }

.node-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e8b84b;
  display: block;
  margin-bottom: 0.5rem;
}

.node-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 0.75rem;
}

.node-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.7;
}

/* Network */
.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.network-stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(74, 144, 217, 0.1);
  background: rgba(74, 144, 217, 0.03);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #e8b84b;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6c757d;
  margin-bottom: 1rem;
}

.stat-bar {
  width: 100%;
  height: 2px;
  background: rgba(108, 117, 125, 0.2);
  position: relative;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(to right, #4a90d9, #e8b84b);
  width: 0;
  transition: width 1.5s ease;
}

.network-visual {
  width: 100%;
  height: 400px;
  position: relative;
  border: 1px solid rgba(74, 144, 217, 0.1);
  background: rgba(26, 26, 46, 0.5);
}

#network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contact */
.contact-content {
  max-width: 700px;
}

.contact-lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #f5f0e8;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(108, 117, 125, 0.2);
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6c757d;
}

.contact-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #e8b84b;
}

/* Footer */
#site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(108, 117, 125, 0.2);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f5f0e8;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

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

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: #e8b84b; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(108, 117, 125, 0.1);
}

.footer-bottom span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .methodology-cards { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-line, .timeline-glow { left: 24px; }
  .node-marker { left: 24px; }
  .node-content { width: auto; margin-left: 70px !important; margin-right: 0 !important; text-align: left !important; }
  .main-nav { gap: 1rem; }
  .nav-link { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .section { padding: 5rem 1.5rem; }
  .network-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .contact-item { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}
