:root {
  /* Colors */
  --bg-body: #fdfbff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3eff7;

  --background: var(--bg-body);
  --foreground: #020817; /* Zinc 950 */
  --muted: #f1f5f9; /* Slate 100 */
  --muted-foreground: #64748b; /* Slate 500 */
  --card: var(--bg-surface);
  --card-foreground: #020817;
  --popover: #ffffff;
  --popover-foreground: #020817;
  --border: #e2e8f0; /* Slate 200 */
  --input: #e2e8f0;
  
  /* Primary Brand Color */
  --primary: #714a8b; /* Purple */
  --primary-light: #a57bc2;
  --primary-dark: #4a2c5f;
  --primary-foreground: #ffffff;
  --primary-hover: #5a3b6f; /* Darker Purple */
  
  /* Secondary (Amber Gold) */
  --secondary: #ffce5c; 
  --secondary-foreground: #0f172a; /* Slate 900 */
  --secondary-hover: #e6b84d;

  /* Tertiary (Teal) */
  --tertiary: #20d6c7;
  --tertiary-hover: #1bbdb0;

  /* Radius */
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --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);
  
  /* Layout */
  --container-width: 1200px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem 0;
}

p:last-child {
  margin-bottom: 0;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  height: 4rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  /* gap: 0.5rem; Removed gap to use margin on logo as requested */
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-logo {
  /* margin-right: 0.5rem; Removed as text label is gone */
  vertical-align: middle;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

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

/* Hero */
.hero {
  padding: 6rem 0;
  background: radial-gradient(circle at top left, #efe6f7, transparent 70%);
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--bg-surface-alt);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

#hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-subtext {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  height: 2.75rem;
  padding: 0 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.button-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.button-outline {
  background-color: transparent;
  border-color: var(--input);
  background: var(--background);
  color: var(--foreground);
}

.button-outline:hover {
  background-color: var(--secondary);
}

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

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-muted .section-header h2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.section-muted .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
  border-radius: 2px;
}

.section-desc {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.section-muted {
  background-color: var(--bg-surface-alt);
  background-image: 
    radial-gradient(at 20% 30%, rgba(113, 74, 139, 0.04) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(32, 214, 199, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 206, 92, 0.03) 0px, transparent 50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-muted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(113, 74, 139, 0.015) 35px, rgba(113, 74, 139, 0.015) 70px);
  pointer-events: none;
}

/* Card */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.925rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Enhanced styling for coming soon cards */
.card-grid > .card {
  padding: 2rem 1.75rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-grid > .card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--foreground);
  line-height: 1.3;
  padding-right: 8rem;
  transition: color 0.3s ease;
}

.card-grid > .card:hover h3 {
  color: var(--primary);
}

.card-grid > .card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-top: auto;
}

.card-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  filter: grayscale(0.2);
  color: var(--primary);
  flex-shrink: 0;
}

.card-grid > .card:hover .card-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: grayscale(0);
  color: var(--tertiary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card-grid > .card {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, rgba(113, 74, 139, 0.15), rgba(32, 214, 199, 0.1)) 1;
}

.card-grid > .card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(113, 74, 139, 0.08), rgba(32, 214, 199, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.card-grid > .card:hover::before {
  opacity: 1;
}

.card-grid > .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(113, 74, 139, 0.1);
  z-index: 10;
}

/* Staggered animation delays for visual interest */
.card-grid > .card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.card-grid > .card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.card-grid > .card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.card-grid > .card:nth-child(4) {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.card-grid > .card:nth-child(5) {
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.card-grid > .card:nth-child(6) {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

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

.card-grid > .card:nth-child(3n+1)::before {
  background: linear-gradient(135deg, rgba(113, 74, 139, 0.08), rgba(113, 74, 139, 0.03));
}

.card-grid > .card:nth-child(3n+2)::before {
  background: linear-gradient(135deg, rgba(32, 214, 199, 0.08), rgba(32, 214, 199, 0.03));
}

.card-grid > .card:nth-child(3n+3)::before {
  background: linear-gradient(135deg, rgba(255, 206, 92, 0.1), rgba(255, 206, 92, 0.04));
}

.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(113, 74, 139, 0.95), rgba(32, 214, 199, 0.85));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 4px 12px rgba(113, 74, 139, 0.25);
  z-index: 5;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.card-grid > .card:hover .coming-soon-badge {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(113, 74, 139, 0.35);
}

/* Featured Card */
.featured-card {
  padding: 0;
  border: 1px solid rgba(113, 74, 139, 0.2);
  box-shadow: 0 8px 24px rgba(113, 74, 139, 0.15);
  background: linear-gradient(135deg, #4a2c5f 0%, #714a8b 50%, #5a3b6f 100%);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(32, 214, 199, 0.1) 0%, rgba(165, 123, 194, 0.1) 100%);
  pointer-events: none;
}

.featured-wrapper {
  position: relative;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.featured-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 0.875rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-logo {
  transform: scale(1.05) rotate(5deg);
}

.featured-header h3 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-content {
  flex: 1;
}

.featured-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.featured-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.featured-card .button-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd570 100%);
  color: var(--secondary-foreground);
  box-shadow: 0 4px 12px rgba(255, 206, 92, 0.4);
  font-weight: 600;
  padding: 0.75rem 2rem;
}

.featured-card .button-primary:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary) 100%);
  box-shadow: 0 6px 16px rgba(255, 206, 92, 0.5);
  transform: translateY(-2px);
}

.mission-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  background: transparent;
}

.mission-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #ffffff;
}

.footer-links a:hover {
  color: var(--tertiary);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 1rem;
  background: white;
  border: 1px solid black;
  clip: auto;
}

@media (max-width: 768px) {
  .featured-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    height: auto;
    padding: 1rem 0;
  }
  
  .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-header {
    height: auto;
    position: relative;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}
