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

html {
  background-color: var(--bg-gradient-end);
  overflow-x: hidden;
}

/* Variables */
:root {
  /* Common transitions */
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;

  /* Light mode (default) */
  --bg-gradient-start: #fff9f5;
  --bg-gradient-end: #ffffff;
  --text-color: #111;
  --text-secondary: #666;
  --header-bg: rgba(255, 255, 255, 0.8);
  --border-color: #eee;
  --button-bg: #111;
  --button-text: #fff;
  --button-hover: #333;
  --accent-color: #2b5d92;
  --footer-text: #aaa;
  --primary-button-bg: #0066ff;
  --primary-button-hover: #0055dd;
  --primary-button-shadow: rgba(0, 102, 255, 0.2);

  --appname-color: #333;
  --logo-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* When dark class is explicitly applied */
:root.dark {
  --bg-gradient-start: #1a1a1a;
  --bg-gradient-end: #222222;
  --text-color: #eee;
  --text-secondary: #bbb;
  --header-bg: rgba(28, 28, 28, 0.85);
  --border-color: #333;
  --button-bg: #eee;
  --button-text: #111;
  --button-hover: #ddd;
  --accent-color: #ffb3a7;

  --appname-color: #ffb3a7;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 75px;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0;
}

.header-container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.site-header.has-back-button .header-container {
  padding-left: 60px;
}

/* Logo styles */
.logo-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover .app-name {
  text-decoration: underline;
}

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.app-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--appname-color);
}

/* Apps grid */
.apps-grid {
  margin: 3rem 0;
}

.apps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem;
  margin-top: 2rem;
}

.app-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  margin-bottom: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.05);
}

.app-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Theme toggle */
.toggle-theme {
  display: flex;
  touch-action: manipulation;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  opacity: 0.8;
  transition: var(--transition-default);
}

.toggle-theme:hover {
  opacity: 1;
}

.toggle-theme img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.toggle-theme:hover img {
  filter: brightness(1.5);
}

.toggle-theme:active img {
  transform: rotate(360deg);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 768px;
  margin: 4rem auto 2rem;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--footer-text);
  border-top: 1px solid var(--border-color);
  opacity: 0.85;
}

.footer-right a {
  color: inherit;
  margin-left: 1rem;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .apps-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-right a {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 65px;
  }

  .site-header.has-back-button .header-container {
    padding-left: 48px;
  }

  .header-container {
    padding: 0.5rem 1rem;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }
}

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

html {
  background-color: var(--bg-gradient-end);
  overflow-x: hidden;
}

/* Variables */
:root {
  /* Common transitions */
  transition: background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;

  /* Light mode (default) */
  --bg-gradient-start: #fff9f5;
  --bg-gradient-end: #ffffff;
  --text-color: #111;
  --text-secondary: #666;
  --header-bg: rgba(255, 255, 255, 0.8);
  --border-color: #eee;
  --button-bg: #111;
  --button-text: #fff;
  --button-hover: #333;
  --accent-color: #2b5d92;
  --footer-text: #aaa;
  --primary-button-bg: #0066ff;
  --primary-button-hover: #0055dd;
  --primary-button-shadow: rgba(0, 102, 255, 0.2);

  --appname-color: #333;
  --logo-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --badge-text: #ffffff;
  --feature-bg: rgba(255, 255, 255, 0.6);
  --feature-border: rgba(0, 0, 0, 0.08);
  --badge-bg: #f0f0f0;
  --badge-color: #333;
}

/* When dark class is explicitly applied */
:root.dark {
  --bg-gradient-start: #1a1a1a;
  --bg-gradient-end: #222222;
  --text-color: #eee;
  --text-secondary: #bbb;
  --header-bg: rgba(28, 28, 28, 0.85);
  --border-color: #333;
  --button-bg: #eee;
  --button-text: #111;
  --button-hover: #ddd;
  --accent-color: #ffb3a7;

  --appname-color: #ffb3a7;
  --badge-text: #111111;
  --feature-bg: rgba(255, 255, 255, 0.05);
  --feature-border: rgba(255, 255, 255, 0.1);
  --badge-bg: #333;
  --badge-color: #eee;
}

/* When light class is explicitly applied */
:root.light {
  --bg-gradient-start: #fff9f5;
  --bg-gradient-end: #ffffff;
  --text-color: #111;
  --text-secondary: #666;
  --header-bg: rgba(255, 255, 255, 0.8);
  --border-color: #eee;
  --button-bg: #111;
  --button-text: #fff;
  --button-hover: #333;
  --accent-color: #2b5d92;
  --footer-text: #aaa;
  --primary-button-bg: #0066ff;
  --primary-button-hover: #0055dd;
  --primary-button-shadow: rgba(0, 102, 255, 0.2);

  --appname-color: #333;
  --badge-text: #ffffff;
  --feature-bg: rgba(255, 255, 255, 0.6);
  --feature-border: rgba(0, 0, 0, 0.08);
  --badge-bg: #f0f0f0;
  --badge-color: #333;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 75px;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  margin-top: 1.5rem;
}

/* Hero Section */
.hero-section {
  padding: 1.5rem;
}

.hero-section .container {
  margin-top: 0;
}

/* Hero Promo Section */
/* .hero-promo { */
/* padding: 2rem 0 4rem 0; */
/* background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
} */

.promo-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.hero-promo-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-promo-image:hover {
  transform: translateY(-4px);
}

/* Feature Showcase */
.feature-showcase {
  padding: 4rem 0 1rem 0;
}

.feature-section {
  margin-bottom: 6rem;
}

.feature-section:last-child {
  margin-bottom: 2rem;
}

.feature-section .container {
  text-align: center;
}

.feature-section.reverse {
  direction: ltr;
}

.feature-content {
  text-align: left;
  /* max-width: 600px; */
  margin: 0 auto 3rem auto;
}

.feature-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid var(--feature-border);
}

.feature-section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.feature-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-button-bg);
  font-weight: bold;
}

.feature-image {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.showcase-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

/* Image expand hint */
.image-expand-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.7;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.image-expand-hint:hover {
  opacity: 1;
}

/* Video Demo Section */
.video-demo-section {
  padding: 2rem 0 0 0;
  text-align: center;
}

.video-demo-section h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.video-disclaimer {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Additional Features Grid */
.additional-features {
  padding: 4rem 0;
}

.additional-features h2 {
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  background: var(--feature-bg);
  border: 1px solid var(--feature-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  border-radius: 24px;
  margin: 2rem 1rem 4rem 1rem;
  border: 1px solid var(--feature-border);
}

.cta-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-button.large {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.cta-subtext {
  margin-top: 1rem;
}

.cta-subtext small {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .feature-section {
    padding: 0 2rem;
  }

  .feature-image {
    max-width: 800px;
  }
}

@media (max-width: 968px) {
  .feature-image {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .feature-section {
    padding: 0 1.5rem;
    margin-bottom: 5rem;
  }

  .feature-content {
    margin-bottom: 2rem;
  }

  .feature-image {
    max-width: 85vw;
  }

  .feature-section h2 {
    font-size: 1.75rem;
  }

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

  /* .hero-promo {
    padding: 1rem 0 2rem 0;
  } */

  .cta-content h2 {
    font-size: 1.875rem;
  }

  .final-cta {
    margin: 2rem 0.5rem 4rem 0.5rem;
    padding: 3rem 1rem 4rem 1rem;
  }
}

@media (max-width: 480px) {
  .feature-section {
    padding: 0 1rem;
    margin-bottom: 4rem;
  }

  .feature-image {
    max-width: 95vw;
  }

  .showcase-image {
    border-radius: 12px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .hero-promo-image {
    border-radius: 12px;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* For Safari support */
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0;
}

.header-container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

/* Logo styles */
.logo-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-link:hover .app-name {
  text-decoration: underline;
}

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.app-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--appname-color);
}

/* Back to main site corner button */
.back-to-main-corner {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  opacity: 0.7;
}

.back-to-main-corner:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transform: scale(1.05);
  color: var(--text-color);
}

.back-to-main-corner .back-arrow {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.app-logo {
  width: 172px;
  height: 172px;
  /* border-radius: 20px; */
  margin-top: 1rem;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  /* box-shadow: var(--logo-shadow); */
}

/* Theme toggle */
.toggle-theme {
  display: flex;
  touch-action: manipulation;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  opacity: 0.8;
  transition: var(--transition-default);
}

.toggle-theme:hover {
  opacity: 1;
}

.toggle-theme img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.toggle-theme:hover img {
  filter: brightness(1.5);
}

.toggle-theme:active img {
  transform: rotate(360deg);
}

/* Typography */
.title {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.intro-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Links */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Video */
.video-wrapper {
  /* margin: 1rem auto 2rem; */
  margin: 1rem auto;
  width: 100%;
}

video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-default);
  cursor: pointer;
}

.button:hover {
  background-color: var(--button-hover);
  text-decoration: none;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition-default);
}

.cta-button:hover {
  background-color: var(--button-hover);
  text-decoration: none;
}

.cta-button.primary {
  padding: 0.7rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  background-color: var(--primary-button-bg);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-button-shadow);
  margin-bottom: 0.2rem;
}

.cta-button.primary:hover {
  background-color: var(--primary-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-button-shadow);
  text-decoration: none;
}

.cta-button .price {
  margin-left: 0.5rem;
  opacity: 0.9;
}

.payment-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: -0.5rem;
  /* margin-bottom: 1rem; */
  display: block;
  line-height: 1.5;
}

.discount-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
}

.new-price {
  font-size: 1.5rem;
  color: #22c55e;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(34, 197, 94, 0.2);
}

.old-price {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  opacity: 0.6;
  font-weight: 500;
}

.discount-text {
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  }

  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  }
}

/* Purchase options */
.purchase-options {
  margin: 1.25rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.secondary-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.separator {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Features */
.features {
  margin: 3.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.feature {
  padding: 1.75rem;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.feature:hover .feature-icon {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

.feature h3 {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 768px;
  margin: 4rem auto 2rem;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--footer-text);
  border-top: 1px solid var(--border-color);
  opacity: 0.85;
}

.footer-right a {
  color: inherit;
  /* text-decoration: none; */
  margin-left: 1rem;
}

/* Legal and content pages */
.content-page {
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  padding: 0 1.5rem;
}

.secondary-page {
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  padding: 0 1.5rem;
  margin-top: 1.5rem;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

/* Contact page */
.contact-page {
  text-align: center;
}

.contact-tips {
  text-align: left;
  max-width: 450px;
  margin: 1.5rem auto;
  padding-left: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cat-container {
  margin-top: 2rem;
}

.cat-image {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cat-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.cat-container small {
  display: block;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 800px) {
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-right a {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 65px;
  }

  .site-header.has-back-button .header-container {
    padding-left: 48px;
  }

  .header-container {
    padding: 0.5rem 1rem;
  }

  /* Responsive back button */
  .back-to-main-corner {
    top: 0.5rem;
    left: 0.75rem;
    width: 28px;
    height: 28px;
  }

  .back-to-main-corner .back-arrow {
    font-size: 14px;
  }

  .app-logo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
  }

  .title {
    margin-top: 0.5rem;
  }

  .feature {
    padding: 1.25rem;
  }

  .cta-button.primary {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .secondary-options {
    font-size: 0.9rem;
  }

  .price-row {
    gap: 0.5rem;
  }

  .new-price {
    font-size: 1.3rem;
  }

  .old-price {
    font-size: 1rem;
  }

  .discount-text {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    letter-spacing: 0.6px;
  }
}

/* Changelog Page Specific Styles */
.changelog-container {
  text-align: left;
  /* margin-top: 3rem; */
  /* margin-bottom: 4rem; */
}

.changelog-entry {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.version-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.release-date {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.changes-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: var(--text-color);
}

.changes-list li {
  margin-bottom: 0.5rem;
}

.changelog-note {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 3rem;
}

/* Coming Soon banner – shared base styles */
.coming-soon-banner {
  background-color: var(--accent-color);
  color: var(--button-text);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  position: relative;
  /* hide in dev */
  display: none !important;
}

/* Static text for larger screens (desktop/tablet) */
.coming-soon-banner p {
  margin: 0;
  white-space: normal;
  display: block;
}

/* Animated marquee on small screens */
@media (max-width: 500px) {
  .coming-soon-banner {
    overflow: hidden;
  }

  .coming-soon-banner::before,
  .coming-soon-banner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2rem;
    height: 100%;
    z-index: 2;
  }

  .coming-soon-banner::before {
    left: 0;
    background: linear-gradient(to right, var(--accent-color), transparent);
  }

  .coming-soon-banner::after {
    right: 0;
    background: linear-gradient(to left, var(--accent-color), transparent);
  }

  .coming-soon-banner p {
    white-space: nowrap;
    display: inline-block;
    animation: scroll-text 13s linear infinite;
    padding-left: 100%;
    box-sizing: content-box;
  }

  @keyframes scroll-text {
    0% {
      transform: translateX(0%);
    }

    100% {
      transform: translateX(-100%);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-logo {
    transition: none;
  }
  
  .discount-text {
    animation: none;
  }
}

/* FAQ Styles */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-answer {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding-right: 2rem;
  transform-origin: top;
  transform: translateY(-8px);
  transition: height 0.2s ease-out,
    opacity 0.15s ease-out,
    transform 0.2s ease-out;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  height: auto;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 1rem;
}

/* Known Issues Collapsible Styles */
.known-issues-toggle {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.known-issues-button {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.known-issues-button:hover {
  color: var(--text-color);
}

.known-issues-icon {
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.known-issues-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transform-origin: top;
  transform: translateY(-8px);
  transition: height 0.2s ease-out,
    opacity 0.15s ease-out,
    transform 0.2s ease-out;
}

.known-issues-toggle.active .known-issues-icon {
  transform: rotate(45deg);
}

.known-issues-toggle.active .known-issues-content {
  height: auto;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 0.5rem;
}

.known-issues-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0;
}

.known-issues-list li {
  margin-bottom: 0.5rem;
}

/* What's New Banner */
.whats-new-banner {
  background: var(--bg-gradient-start);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
  color: var(--text-color);
  padding: 0.5rem 0;
  text-align: center;
  position: relative;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.whats-new-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0;
  flex-wrap: wrap;
}

.new-badge {
  background: var(--accent-color);
  color: var(--badge-text);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.new-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.new-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.new-link:hover {
  border-bottom-color: var(--accent-color);
}

@media (max-width: 480px) {
  .whats-new-banner .container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .whats-new-banner {
    padding: 0.4rem 0;
  }

  .new-text {
    font-size: 0.8rem;
  }
}

/* Gallery Modal Styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-image {
  max-width: 95%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-modal.active .gallery-image {
  transform: scale(1);
}

.gallery-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2.5rem;
  font-weight: 300;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-prev {
  left: 2rem;
}

.gallery-next {
  right: 2rem;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 500;
}

/* Make showcase images clickable */
.showcase-image {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.showcase-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
  .gallery-content {
    padding: 1rem;
  }

  .gallery-image {
    max-width: 98%;
    max-height: 85%;
  }

  .gallery-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .gallery-prev,
  .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-prev {
    left: 1rem;
  }

  .gallery-next {
    right: 1rem;
  }

  .gallery-counter {
    bottom: 1rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {

  .gallery-prev,
  .gallery-next {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .gallery-close {
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
}

/* Product Hunt Badge */
.product-hunt-badge {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-hunt-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.product-hunt-badge a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.product-hunt-badge img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.product-hunt-badge:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments for Product Hunt badge */
@media (max-width: 480px) {
  .product-hunt-badge img {
    height: 44px;
  }
}

.mac-app-store-button {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.mac-app-store-button img {
  height: 56px;
  transition: transform 0.2s ease-in-out;
}

.mac-app-store-button:hover img {
  transform: scale(1.05);
}