/* Arborae — Modern Landing
   Stack: HTML + CSS (Zero Build Step)
*/

:root {
  /* Brand Palette */
  --bg: #0b0f14;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  --text-main: #edf2f7;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #2ea043;
  --accent: #1f6feb;
  --violet: #8250df;

  --gradient-main: linear-gradient(135deg, var(--primary), var(--accent), var(--violet));
  --glass: blur(20px) saturate(180%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --radius: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Animated Background --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: float 12s infinite ease-in-out alternate;
  mix-blend-mode: screen;
  /* Helps colors pop more */
}

.orb-a {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -10%;
  left: -10%;
  animation-delay: -2s;
}

.orb-b {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.orb-c {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  top: 30%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(100px, -150px) scale(1.2);
  }

  66% {
    transform: translate(-50px, 100px) scale(0.8);
  }

  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.accent-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 20px;
  margin: 0 20px;
  z-index: 100;
}

.nav-inner {
  background: rgba(11, 15, 20, 0.6);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 24px;
}

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

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

.nav-cta {
  display: flex;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:not(.ghost) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn:not(.ghost):hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.ghost {
  color: var(--text-muted);
}

.btn.ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn.small {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.lead {
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.topics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.pill {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: monospace;
}

/* Glass Card */
.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.hero-visual {
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-visual:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* --- Banner Card (Hero Right) --- */
/* --- Banner Card (Hero Right) --- */
/* --- Banner Card (Hero Right) --- */
.banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  /* Transform handled by JS */
  transform: perspective(1000px);
  transition: transform 0.1s ease-out, border-color 0.3s ease;
  will-change: transform;
}

.banner-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.1s ease-out;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(11, 15, 20, 0.4) 0%,
      rgba(11, 15, 20, 0) 30%,
      rgba(11, 15, 20, 0.2) 60%,
      rgba(11, 15, 20, 0.8) 100%);
  z-index: 1;
}

.banner-content {
  position: absolute;
  inset: 0;
  padding: 28px;
  z-index: 2;
  transform: translateZ(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header: Logo & Title */
.banner-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.banner-header img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(46, 160, 67, 0.5));
}

.header-text {
  display: flex;
  flex-direction: column;
}

.mini-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(90deg, #fff, #c9d1d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.mini-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Central Visual: Fake Terminal/Activity */
.banner-visual {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transform: perspective(1000px) rotateX(10deg);
  margin: 10px 0;
}

.fake-terminal {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.7rem;
  color: #a3b3cc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.term-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.term-p {
  color: #f778ba;
}

/* prompt color */
.term-c {
  color: #fff;
}

/* command color */
.term-o {
  color: #7ee787;
  opacity: 0.8;
}

/* output success */
.term-w {
  color: #d2a8ff;
}

/* doing work */

/* Stats (Footer) */
.banner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.b-stat {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
}

.b-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.b-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.b-val {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}


/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 40px;
  max-width: 600px;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card:hover {
  background: var(--panel-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.badge.green {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
}

.badge.violet {
  background: rgba(130, 80, 223, 0.15);
  color: #a371f7;
}

.badge.blue {
  background: rgba(31, 111, 235, 0.15);
  color: #58a6ff;
}

/* Principles List */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.principle-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Call to Action */
.cta-box {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.1), rgba(130, 80, 223, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }

  .kicker {
    margin: 0 auto 20px;
  }

  .hero-actions {
    justify-content: center;
  }

  .topics {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  /* Hide 3D card on mobile for cleaner look */
  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .nav-inner {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  /* Simplified nav for mobile */
}