/*
  PUMPEY – Modern shadcn-inspired design with fresh white + green theme
*/

:root {
  /* Colors - shadcn inspired */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

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

  --white: #ffffff;
  --black: #000000;

  /* Semantic colors */
  --primary: var(--green-600);
  --primary-foreground: var(--white);
  --secondary: var(--gray-100);
  --secondary-foreground: var(--gray-900);
  --muted: var(--gray-100);
  --muted-foreground: var(--gray-600);
  --accent: var(--green-50);
  --accent-foreground: var(--green-900);
  --destructive: #ef4444;
  --destructive-foreground: var(--white);
  --border: var(--gray-200);
  --input: var(--gray-200);
  --ring: var(--green-600);
  --background: var(--white);
  --foreground: var(--gray-900);
  --card: var(--white);
  --card-foreground: var(--gray-900);
  --popover: var(--white);
  --popover-foreground: var(--gray-900);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Consolas,
    'Liberation Mono', Menlo, monospace;

  /* Spacing */
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Animations */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px) saturate(180%);
  background: rgba(255, 255, 255, 0.95);
  z-index: 50;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 2rem;
  transition: var(--transition-colors);
}

.brand:hover {
  color: var(--primary);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.brand-icon img {
  width: 3.5rem;
  height: 3.5rem;
  filter: none;
}

.brand--sm {
  font-size: 1.3rem;
}

.brand--sm .brand-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.brand--sm .brand-icon img {
  width: 2rem;
  height: 2rem;
  filter: none;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-colors);
  position: relative;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--muted);
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--foreground);
  margin: 0.25rem 0;
  transition: var(--transition);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

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

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--muted);
  border-color: var(--border);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2316a34a' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  color: var(--foreground);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0 0 2rem 0;
  line-height: 1.7;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-quote {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.hero-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 3rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}

.hero-quote blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.6;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25rem;
  height: 25rem;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  animation: float 5s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  filter: drop-shadow(0 10px 25px rgba(22, 163, 74, 0.2));
  transition: var(--transition);
}

.hero-card:hover .hero-logo {
  transform: scale(1.05);
}

.hero-card-glow {
  position: absolute;
  top: -2rem;
  left: -2rem;
  right: -2rem;
  bottom: -2rem;
  background: radial-gradient(
    circle,
    rgba(22, 163, 74, 0.1) 0%,
    transparent 70%
  );
  border-radius: var(--radius-2xl);
  z-index: -1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-1rem) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card {
    animation: none;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

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

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 2rem 0;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.feature-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

.about-principles h3 {
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.principles-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.principle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.principles-list span {
  color: var(--foreground);
  font-weight: 500;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green-400) 100%);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--foreground);
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Roadmap Section */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.roadmap-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.roadmap-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.roadmap-dot {
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.roadmap-line {
  width: 2px;
  height: 4rem;
  background: var(--border);
  margin-top: 0.5rem;
}

.roadmap-item:last-child .roadmap-line {
  display: none;
}

.roadmap-content {
  flex: 1;
  padding-top: 0.25rem;
}

.roadmap-phase {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.roadmap-content h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--foreground);
}

.roadmap-content p {
  margin: 0 0 1rem 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.roadmap-status::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--green-600);
  border-radius: var(--radius-full);
}

/* CTA Section */
.cta-container {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--foreground);
}

.cta-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0 0 2rem 0;
  line-height: 1.7;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cta-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: var(--black);
  border-color: var(--black);
  transition: var(--transition);
}

.cta-action .btn:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--gray-50);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

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

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

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

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-colors);
}

.footer-nav a:hover {
  color: var(--foreground);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-quote {
    margin-top: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .roadmap-item {
    flex-direction: column;
    gap: 1rem;
  }

  .roadmap-marker {
    flex-direction: row;
    gap: 1rem;
  }

  .roadmap-line {
    width: 4rem;
    height: 2px;
    margin-top: 0;
  }
}
