body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
}

header {
  background: var(--color-header-bg);
  padding: 0.5rem 0;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  height: 32px;
  display: block;
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

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

.hero {
  padding: 5rem 0 5rem;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
  gap: 2rem;
}

.hero-left {
  flex: 1;
}

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

h2 {
  font-size: 3rem;
  margin: 0;
  color: var(--color-text-primary);
}

h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--color-text-primary);
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.009em;
}

.hero-left h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 1.2;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 28px;
  color: var(--color-text-secondary);
}

.hero-tagline {
  margin: 6rem 0 2.5rem;
}

.hero-tagline .tagline-color {
  color: var(--color-indigo);
}

.hero-tagline .gray {
  color: var(--color-text-secondary);
}

.hero-right {
  flex: 0 0 300px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-right p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: var(--color-text-primary);
  letter-spacing: -0.009em;
}

.featured-card {
  margin: 3rem 0 0;
  padding: 4rem;
  border-radius: 2rem;
  background: radial-gradient(ellipse 100% 100% at 50% 40px, var(--color-gradient-start), var(--color-gradient-end));
  color: var(--color-bg-primary);
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
}

.featured-card-content {
  flex: 1;
  text-align: center;
}

.featured-card-screenshots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-card-screenshots .featured-screenshot {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.featured-card .preview {
  background: rgba(255, 255, 255, 0.3);
  height: 180px;
  max-width: 800px;
  margin: 2rem auto 0;
}

.featured-card img.icon {
  width: 80px;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.featured-card h1 {
  margin: 0.5rem 0;
  color: var(--color-text-primary-inverted);
}

.featured-card p {
  font-size: 1.3rem;
  line-height: 1.5rem;
  max-width: 530px;
  margin: 1rem auto 0;
  color: var(--color-text-primary-inverted);
}

.apps-section {
  padding: 6rem 0;
  background: var(--color-bg-tertiary);
}

.apps-container {
  display: flex;
  flex-direction: column;
}

.apps-section h2 {
  margin: 0 0 3rem 0;
}

.app-card {
  background: var(--color-bg-primary);
  border-radius: 2rem;
  padding: 3rem;
  margin-bottom: 0rem;
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.app-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 400px;
  position: relative;
  flex-shrink: 2;
  flex-basis: 0;
  flex-grow: 1;
  gap: 2rem;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.app-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.description {
  line-height: 1.6;
  margin: 0;
}

.description + .description {
  margin-top: 1em;
}

.app-text .description {
  line-height: 1.6;
  margin: 0;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.app-store-button img {
  height: 50px;
  display: block;
}

/* Show/hide App Store badges based on color scheme */
.app-store-badge.dark-mode {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .app-store-badge.light-mode {
    display: none;
  }
  
  .app-store-badge.dark-mode {
    display: block;
  }
}

.learn-more {
  padding: 0 16px;
  border: 2px solid var(--color-border-indigo);
  border-radius: 9px;
  text-decoration: none;
  color: var(--color-indigo);
  font-size: 1.3em;
  font-weight: 600;
  height: 50px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  -webkit-mask-image: paint(smooth-corners);
  mask-image: paint(smooth-corners);
  --smooth-corners: 4;
  white-space: nowrap;
}

.learn-more:hover {
  background: #f0f0f0;
}

.app-image {
  flex-shrink: 1;
  display: flex;
  align-items: center;
  max-width: 100%;
  padding-left: 0;
  min-width: 0;
}

.app-image .images {
  height: auto;
  width: 100%;
  max-width: 100%;
  display: block;
}

@media (min-width: 1105px) {
}

footer {
  padding: 1rem 0;
  background: var(--color-footer-bg);
  color: var(--color-text-secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.footer-content p {
  margin: 0;
  font-size: 12px;
}

.footer-content a {
  color: var(--color-text-primary);
}

.section-grey-bg {
  background: var(--color-grey-0);
  padding: 10rem 0 4rem 0;
}

.section-white-bg:first-of-type {
  margin-top: 4rem;
}

.features-section h2 {
  margin: 0 0 3rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.feature-card {
  background: white;
  border-radius: 2rem;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-item p {
  margin: 0;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.whats-new-section {
  padding-bottom: 4rem;
}

.whats-new-section h2 {
  margin: 0 0 3rem 0;
}

.whats-new-section > p {
  margin-bottom: 3rem;
}

.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.whats-new-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whats-new-card {
  background: white;
  border-radius: 2rem;
  width: 100%;
  aspect-ratio: 1;
}

.whats-new-item p {
  margin: 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.app-card-purple-bg {
  background: #f5f3ff;
  padding: 2rem;
  border-radius: 16px;
}

@media (prefers-color-scheme: dark) {
  .app-card-purple-bg {
    background: #2a1f3d;
  }
}

.cta-section {
  margin-top: 4rem;
  text-align: center;
}

.cta-section .app-buttons {
  justify-content: center;
  margin-top: 2rem;
}
