:root {
  /* Light theme (default) */
  --primary: #4255AB;
  --primary-container: #5B6FC6;
  --on-primary: #FFFFFF;
  --surface: #FBF8FF;
  --surface-container: #EFEDF5;
  --on-surface: #1A1B21;
  --background: #FBF8FF;
  --error: #BA1A1A;
  --success: #28a745;
  --shadow: rgba(0, 0, 0, 0.1);
  --border: rgba(26, 27, 33, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme */
    --primary: #B9C3FF;
    --primary-container: #788BE5;
    --on-primary: #0D267E;
    --surface: #121318;
    --surface-container: #1F1F25;
    --on-surface: #E3E1E9;
    --background: #121318;
    --error: #FFB4AB;
    --success: #5cdb8a;
    --shadow: rgba(0, 0, 0, 0.3);
    --border: rgba(227, 225, 233, 0.1);
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--on-surface);
  background-color: var(--background);
  margin: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Screen Reader Only Text */
.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;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--surface);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
  backdrop-filter: blur(10px);
}

.nav-logo {
  height: 36px;
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  gap: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--on-surface);
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--on-surface);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--primary);
  background-color: var(--surface-container);
}

.nav-links a.active {
  color: var(--primary);
  background-color: var(--surface-container);
  font-weight: 600;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .hamburger {
    display: flex !important;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
    z-index: 999;
  }
  
  .nav-links.active {
    display: flex;
    transform: translateY(0);
  }
  
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    transform: none;
    box-shadow: none;
  }
}

/* Main Content */
.main-content {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* Hero Section */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
}

.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--on-surface);
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.logo-with-name {
  max-width: 280px;
  margin-bottom: 30px;
  height: auto;
}

/* Carousel */
.carousel-container {
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow);
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  height: 550px;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: var(--surface);
  position: relative;
}

.carousel-content {
  display: flex;
  align-items: center;
  max-width: 1000px;
  gap: 40px;
}

.carousel-image {
  flex: 1;
  text-align: center;
}

.carousel-image img {
  max-width: 100%;
  height: 450px;
  object-fit: contain;
  border-radius: 12px;
}

.carousel-text {
  flex: 1;
  text-align: left;
}

.carousel-text h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.carousel-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--on-surface);
  opacity: 0.8;
}

/* Carousel Pagination */
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 0 20px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--on-surface);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background-color: var(--primary);
  opacity: 1;
  transform: scale(1.2);
}

/* App Links */
.app-links {
  margin: 60px auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 400px;
}

.app-button {
  background-color: var(--surface-container);
  color: var(--on-surface);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
  min-width: 160px;
  justify-content: center;
}

.app-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  background-color: var(--primary);
  color: var(--on-primary);
}

.app-icon {
  margin-right: 10px;
  font-size: 24px;
}

/* Features Section */
.features-section {
  padding: 80px 20px;
  background-color: var(--background);
}

.features-title {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 60px;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.feature {
  padding: 40px 30px;
  background-color: var(--surface);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 600;
}

.feature p {
  color: var(--on-surface);
  opacity: 0.8;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--on-primary);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: var(--on-primary);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  background-color: var(--surface-container);
  padding: 40px 20px;
  text-align: center;
  color: var(--on-surface);
  opacity: 0.7;
}

/* Page Container for other pages */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
}

.card {
  background-color: var(--surface);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px var(--shadow);
}

.card h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.card h3 {
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.card p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.card ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.card li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Accordion for FAQ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--surface-container);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  user-select: none;
}

.accordion-header:hover {
  border-left: 8px solid var(--primary);
  padding-left: 16px;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-icon.active {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
  max-height: 500px;
  padding: 20px;
}

.accordion-content p {
  margin: 0;
  line-height: 1.6;
}

/* App Preview Section */
.app-preview-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.app-preview-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.app-preview-subtitle {
  font-size: 1.2rem;
  color: var(--on-surface);
  opacity: 0.8;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.app-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Screenshots Section */
.screenshots-section {
  position: relative;
}

.screenshots-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 24px 0;
  text-align: center;
}

.screenshots-container {
  background: var(--surface-container);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
}

.screenshot-carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.screenshot-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screenshot-slide.active {
  opacity: 1;
}

.screenshot-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.screenshot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 16px;
}

.screenshot-nav-btn {
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.screenshot-nav-btn:hover {
  background: var(--primary-container);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.screenshot-indicators {
  display: flex;
  gap: 8px;
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.screenshot-dot:hover {
  background: var(--primary-container);
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 32px;
}

.feature-category {
  background: var(--surface-container);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s ease;
}

.feature-category:hover {
  transform: translateY(-4px);
}

.feature-category.highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
}

.feature-category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--on-surface);
}

.feature-category.highlight .feature-category-title {
  color: var(--on-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--on-surface);
  opacity: 0.9;
}

.feature-category.highlight .feature-list li {
  color: var(--on-primary);
  opacity: 0.95;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
}

.feature-category.highlight .feature-list li:before {
  color: var(--on-primary);
}

.feature-description {
  color: var(--on-surface);
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.feature-category.highlight .feature-description {
  color: var(--on-primary);
  opacity: 0.95;
}

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

.feature-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--on-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* App Info Summary */
.app-info-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--surface-container);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  color: #FFD700;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-text {
  color: var(--on-surface);
  font-weight: 500;
}

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

.app-tag {
  background: var(--primary);
  color: var(--on-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .app-preview-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-preview-section {
    padding: 60px 20px;
  }
  
  .app-preview-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-carousel {
    height: 400px;
  }
  
  .app-info-summary {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .app-tags {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .app-preview-title {
    font-size: 1.8rem;
  }
  
  .screenshot-carousel {
    height: 350px;
  }
  
  .screenshots-container {
    padding: 16px;
  }
  
  .feature-category {
    padding: 20px;
  }
}
/* 
Goal Achievement Section */
.goal-achievement-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-container) 100%);
  text-align: center;
}

.goal-achievement-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

.goal-achievement-section > .container > p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.goal-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.goal-type {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-type:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}

.goal-type h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.goal-type p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Blog Styles */
.blog-posts {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.blog-post {
  padding: 25px;
  background: var(--surface-container);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
}

.blog-post h3 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.blog-post h3 a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.blog-post h3 a:hover {
  text-decoration: underline;
}

.blog-post p {
  margin: 0 0 15px 0;
  opacity: 0.8;
  line-height: 1.6;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .goal-achievement-section h2 {
    font-size: 2rem;
  }
  
  .goal-types {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .goal-type {
    padding: 20px;
  }
}