/* A3E Ecosystem Inc. — a3eecosystem.com */
@keyframes headerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.4)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.25));
  }
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.2));
  }
  50% {
    transform: translateY(-8px) scale(1);
    filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 56px rgba(168, 85, 247, 0.3));
  }
}

@keyframes headerGlow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(168, 85, 247, 0.15);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.1);
  }
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes logoRing {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.4)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.2)); }
  33% { filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 48px rgba(34, 197, 94, 0.4)) drop-shadow(0 0 72px rgba(168, 85, 247, 0.25)); }
  66% { filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.55)) drop-shadow(0 0 44px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 66px rgba(34, 197, 94, 0.2)); }
}

@keyframes mottoLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: -200% center; }
 100% { background-position: 200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 32px rgba(168, 85, 247, 0.6), 0 0 56px rgba(34, 197, 94, 0.35); }
}

:root {
  --a3e-green: #22c55e;
  --a3e-green-dark: #16a34a;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --neon-purple: #a855f7;
  --neon-purple-bright: #c084fc;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-light: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --bg: #0f172a;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #0f172a 50%, #1e293b 75%, #0f172a 100%);
  --bg-size: 200% 200%;
  --white: #ffffff;
  --border: rgba(148, 163, 184, 0.2);
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-size: var(--bg-size);
  background-attachment: fixed;
  min-height: 100vh;
  animation: bgShift 12s ease infinite;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(168, 85, 247, 0.2);
  animation: headerSlideIn 0.6s ease-out, headerGlow 4s ease-in-out infinite;
  animation-fill-mode: both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-img {
  height: 72px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  animation: logoReveal 0.7s ease-out 0.2s both, logoRing 4s ease-in-out 1s infinite;
  transition: transform 0.3s ease;
}

.brand:hover .logo-img {
  transform: scale(1.05);
}

.brand-a3e {
  background: linear-gradient(90deg, var(--a3e-green), var(--emerald), var(--neon-purple-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleGradient 5s ease infinite;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color .25s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--a3e-green), var(--neon-purple-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.nav a:hover {
  color: var(--neon-purple-bright);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
}

.nav-toggle::before { top: 12px; }
.nav-toggle::after { top: 20px; }

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 3rem 0 5rem;
  text-align: center;
  background: transparent;
}

.hero-logo-wrap {
  display: inline-block;
  margin: 0 auto 2rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.1));
  background-size: 200% 200%;
  animation: logoReveal 0.9s ease-out both, pulseGlow 4s ease-in-out 1s infinite;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.2), 0 0 80px rgba(34, 197, 94, 0.1), inset 0 0 40px rgba(168, 85, 247, 0.05);
}

.hero-logo {
  display: block;
  height: clamp(200px, 32vw, 340px);
  width: auto;
  max-width: min(720px, 96vw);
  object-fit: contain;
  border-radius: var(--radius);
  animation: heroLogoFloat 5s ease-in-out 1s infinite;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--a3e-green) 0%, var(--emerald) 25%, var(--cyan) 50%, var(--neon-purple-bright) 75%, var(--a3e-green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: logoReveal 0.8s ease-out 0.3s both, titleGradient 6s ease infinite;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.hero h1 .brand-a3e {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, var(--a3e-green), var(--emerald));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleGradient 4s ease infinite;
}

.motto {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  animation: fadeInUp 0.7s ease-out 0.5s both;
}

.motto::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--a3e-green), transparent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  border-radius: 2px;
  animation: mottoLine 0.8s ease-out 1s forwards;
}

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  animation: fadeInUp 0.7s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeInUp 0.7s ease-out 0.8s both;
}

.hero-cta .btn {
  transition: transform .2s ease, box-shadow .3s ease;
}

.hero-cta .btn:hover {
  transform: translateY(-3px);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
  color: var(--white);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--neon-purple-bright), var(--neon-purple));
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.6), 0 0 48px rgba(34, 197, 94, 0.2), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--navy-mid), var(--navy-mid)), linear-gradient(135deg, var(--a3e-green), var(--neon-purple));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.btn-secondary:hover {
  background-image: linear-gradient(rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.15)), linear-gradient(135deg, var(--emerald), var(--neon-purple-bright));
  border-color: transparent;
  color: var(--neon-purple-bright);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section .container {
  animation: fadeInUp 0.6s ease-out both;
}

.service-card {
  animation: fadeInUp 0.5s ease-out both;
}

.service-grid .service-card:nth-child(1) { animation-delay: 0.05s; }
.service-grid .service-card:nth-child(2) { animation-delay: 0.1s; }
.service-grid .service-card:nth-child(3) { animation-delay: 0.15s; }
.service-grid .service-card:nth-child(4) { animation-delay: 0.2s; }
.service-grid .service-card:nth-child(5) { animation-delay: 0.25s; }
.service-grid .service-card:nth-child(6) { animation-delay: 0.3s; }
.service-grid .service-card:nth-child(7) { animation-delay: 0.35s; }
.service-grid .service-card:nth-child(8) { animation-delay: 0.4s; }
.service-grid .service-card:nth-child(9) { animation-delay: 0.45s; }
.service-grid .service-card:nth-child(10) { animation-delay: 0.5s; }

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-intro,
.lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.page-head {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.page-head h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--a3e-green), var(--neon-purple-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeInUp 0.5s ease-out both;
}

.breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--neon-purple-bright);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.content-page .lead {
  max-width: 72ch;
}

.content-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.content-list {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.5rem;
  max-width: 72ch;
}

.content-list li {
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.6;
}

.content-page .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-note a {
  color: var(--neon-purple-bright);
  text-decoration: none;
}

.section-note a:hover {
  text-decoration: underline;
}

.about p {
  max-width: 72ch;
}

.about .why-principles {
  max-width: 72ch;
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text);
}

.about .why-principles li {
  margin-bottom: 0.5rem;
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.service-card {
  background: rgba(30, 41, 59, 0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.service-card:hover {
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.2), 0 0 48px rgba(34, 197, 94, 0.1);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-4px);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card-link:hover {
  color: inherit;
}

.service-card-link .card-link-label {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-purple-bright);
}

.service-grid-tabs .service-card {
  margin-top: 0;
}

/* Ecosystem list */
.ecosystem-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  max-width: 72ch;
}

.ecosystem-list li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Contact */
.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-block a {
  color: var(--neon-purple-bright);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  animation: logoRing 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.site-footer:hover .footer-logo {
  transform: scale(1.05);
}

.footer-motto {
  width: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.footer-disclaimer {
  width: 100%;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer-disclaimer a {
  color: var(--neon-purple-bright);
  text-decoration: none;
}

.footer-disclaimer a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal / disclaimers page */
.legal-content .section-intro {
  margin-bottom: 1.5rem;
}

.legal-block {
  margin-bottom: 1.75rem;
}

.legal-block h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-block ul,
.legal-block p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.legal-block ul {
  padding-left: 1.25rem;
}

.legal-block li {
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.legal-updated a {
  color: var(--neon-purple-bright);
  text-decoration: none;
}

.legal-updated a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-motto { text-align: left; }
}
