/* ============================================
   CocoDrone - GitHub Pages Site Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;

  --sand-50: #fefdf8;
  --sand-100: #fdf9ed;
  --sand-200: #f5edd6;
  --sand-300: #e8d9b4;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-500);
}

h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.3;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 10px 0;
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo:hover { color: var(--gray-900); }

.logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--green-700);
  color: white;
  border-color: var(--green-700);
}

.btn-primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--green-700);
  border-color: var(--green-700);
}

.btn-secondary:hover {
  background: var(--green-50);
  color: var(--green-600);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-300);
  padding: 10px 20px;
}

.btn-outline:hover {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-700);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 40%, #0a4a3a 100%);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(6, 78, 59, 0.3) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero .btn-primary {
  background: white;
  color: var(--green-800);
  border-color: white;
}

.hero .btn-primary:hover {
  background: var(--green-100);
  border-color: var(--green-100);
  color: var(--green-900);
}

.hero .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.hero .btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon { font-size: 1.5rem; }

.stat-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

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

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s ease;
}

.section-alt .card {
  background: var(--gray-50);
  border-color: var(--gray-100);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-contribute ul {
  list-style: none;
  margin: 16px 0 24px;
}

.card-contribute li {
  padding: 6px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.card-contribute li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 600;
}

.card-highlight {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border: none;
  color: white;
  text-align: center;
  padding: 48px;
}

.card-highlight h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-highlight p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.card-highlight code {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.card-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 78, 59, 0.3);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.card-highlight .btn-primary {
  background: white;
  color: var(--green-800);
  border-color: white;
}

.card-highlight .btn-primary:hover {
  background: var(--green-100);
  border-color: var(--green-100);
}

.card-highlight .btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}

.card-highlight .btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
}

.contribute-cta {
  margin-top: 40px;
}

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-700);
}

.link-arrow:hover { color: var(--green-500); }

/* --- Timeline --- */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
}

.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  padding-top: 2px;
}

.timeline-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--green-100);
  color: var(--green-800);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- About Manaty --- */
.about-manaty {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.about-manaty h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-manaty p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-brand .nav-logo { color: white; }

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.animate-in {
  transform: translateX(-20px);
}

.timeline-item.animate-in.visible {
  transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero h1 { font-size: 2.5rem; }
  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }

  .nav-links.open { right: 0; }

  .nav-toggle { display: flex; }

  .hero {
    padding: 130px 0 80px;
  }

  .hero h1 { font-size: 2rem; }

  .hero-subtitle { font-size: 1.05rem; }

  .hero-actions { flex-direction: column; }

  .hero-stats {
    gap: 20px;
    flex-direction: column;
  }

  .section { padding: 70px 0; }

  .card { padding: 28px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card-highlight { padding: 32px 24px; }

  .cta-actions { flex-direction: column; }
}
