/* Tranquility Tasks - Landing Page Styles */
/* Zen-inspired design with calm, natural aesthetics */

:root {
  /* Color Palette - Soft Sage Greens */
  --primary: #7A8E68;
  --primary-dark: #627256;
  --primary-light: #92A67F;

  --success: #849F6E;
  --accent: #96A87D;

  --background: #F8FBF9;
  --background-secondary: #F0F5F2;
  --card: #FFFFFF;

  --text-primary: #2D3A2F;
  --text-secondary: #5A6B5E;
  --text-tertiary: #7A8A6F;
  --text-light: #9BAA8E;

  --border-light: #E8EFE5;
  --border-medium: #D3DFD0;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows - Subtle and soft */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
}

p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  padding: var(--space-lg) 0;
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
}

.logo-tagline {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* Hero Section */
.hero {
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.1;
  animation: gentle-pulse 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.1); opacity: 0.15; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.chibi-hero {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  height: 300px;
  margin: var(--space-xl) auto;
  animation: gentle-float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(122, 142, 104, 0.2));
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--card);
  color: var(--primary);
  border: 2px solid var(--border-medium);
}

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

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Features Section */
.features {
  padding: var(--space-2xl) 0;
  background: var(--card);
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--text-tertiary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--background);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 1rem;
  margin: 0;
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-secondary) 100%);
  position: relative;
  z-index: 10;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.step p {
  margin: 0 auto;
  font-size: 1rem;
}

/* Character Showcase */
.character-showcase {
  padding: var(--space-2xl) 0;
  background: var(--card);
  text-align: center;
  position: relative;
  z-index: 10;
}

.chibi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: var(--space-xl) auto 0;
}

.chibi-card {
  text-align: center;
}

.chibi-image {
  display: inline-block !important;
  width: auto !important;
  max-width: 100%;
  height: 140px;
  margin: 0 auto var(--space-sm);
  animation: gentle-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(122, 142, 104, 0.15));
}

.chibi-card:nth-child(2) .chibi-image { animation-delay: 0.5s; }
.chibi-card:nth-child(3) .chibi-image { animation-delay: 1s; }
.chibi-card:nth-child(4) .chibi-image { animation-delay: 1.5s; }

.chibi-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  background: var(--text-primary);
  color: var(--text-light);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .chibi-hero {
    height: 220px;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Loading animation for images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
