:root {
  --primary: #6bb6b0;
  --primary-light: #9fd9cc;
  --primary-dark: #4a9b96;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --background: #fafcfc;
  --accent: #ffd6c8;
  --dark-bg: #1a1a1a;
  --card-bg: #ffffff;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure all interactive elements are touch-friendly */
a,
button {
  -webkit-tap-highlight-color: rgba(107, 182, 176, 0.2);
  touch-action: manipulation;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.nav-cta {
  background-color: var(--primary-dark);
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 155, 150, 0.4);
  background-color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 60px 5% 100px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text-section {
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background-color: #f0f4f8;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--primary-dark);
}

.privacy-highlight {
  font-weight: 700;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(159, 217, 204, 0.3) 0%, rgba(107, 182, 176, 0.3) 100%);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.6;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  margin: 10px;
  max-width: 80%;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

/* Trial Badge */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  padding: 16px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(107, 182, 176, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
  border: 2px solid white;
}

.trial-icon {
  font-size: 28px;
  animation: bounce 2s ease-in-out infinite;
}

.trial-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trial-text strong {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.trial-text span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 400;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(107, 182, 176, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(107, 182, 176, 0.5);
    transform: scale(1.02);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  height: 56px;
  width: auto;
  max-width: 100%;
  transition: all 0.3s ease;
  display: block;
  object-fit: contain;
}

.store-badge:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.05);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(159, 217, 204, 0.3) 0%, rgba(255, 214, 200, 0.3) 100%);
  border-radius: 50% 40% 60% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
  0%,
  100% {
    border-radius: 50% 40% 60% 50%;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    border-radius: 40% 60% 50% 60%;
    transform: translate(-50%, -50%) rotate(5deg);
  }
}

/* Central Phone */
.hero-phone {
  position: relative;
  z-index: 3;
  width: 280px;
  height: auto;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  animation: phoneFloat 3s ease-in-out infinite;
}

.hero-phone img {
  width: 100%;
  display: block;
}

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

/* Floating Cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 2;
  animation: cardFloat 4s ease-in-out infinite;
}

.float-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.card-1 {
  top: 15%;
  right: -8%;
  width: 140px;
  background: linear-gradient(135deg, #9fd9cc 0%, #6bb6b0 100%);
  animation-delay: 0s;
}

.card-2 {
  top: 8%;
  left: -5%;
  width: 110px;
  background: linear-gradient(135deg, #9fd9cc 0%, #6bb6b0 100%);
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 20%;
  right: -8%;
  width: 160px;
  background: linear-gradient(135deg, #9fd9cc 0%, #6bb6b0 100%);
  animation-delay: 1s;
}

.card-4 {
  bottom: 15%;
  left: -8%;
  width: 130px;
  background: linear-gradient(135deg, #9fd9cc 0%, #6bb6b0 100%);
  animation-delay: 1.5s;
}

.card-4 img {
  border-radius: 12px;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Mini Stat Card */
.mini-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
}

.star-icon {
  width: 32px;
  height: 32px;
  color: #fcd34d;
  background: white;
  border-radius: 12px;
  padding: 6px;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars i {
  width: 18px;
  height: 18px;
  color: white;
}

.rating-stars i.filled {
  fill: white;
}

/* Store Buttons (for footer) */
.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.store-buttons img {
  height: 54px;
  width: auto;
  max-width: 100%;
  transition: transform 0.2s;
  cursor: pointer;
  object-fit: contain;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

/* Section Mascot */
.section-mascot {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  display: block;
}

.section-mascot.center {
  margin-left: auto;
  margin-right: auto;
}

/* Feature Section */
.feature-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-text h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.feature-text h2 .light {
  color: var(--text-secondary);
  font-weight: 400;
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.feature-phone {
  position: relative;
  text-align: center;
}

.feature-phone img {
  max-width: 50%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.cta-button {
  background-color: var(--primary-dark);
  color: white;
  padding: 14px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 155, 150, 0.4);
  background-color: var(--primary);
}

/* Dark Features Section */
.dark-section {
  background: linear-gradient(135deg, #f0f9f8 0%, #e8f5f3 100%);
  color: var(--text-primary);
  padding: 100px 5%;
  border-radius: 40px;
  margin: 0 20px;
}

.dark-section-content {
  max-width: 1400px;
  margin: 0 auto;
}

.dark-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.dark-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background-color: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(107, 182, 176, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(107, 182, 176, 0.15);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.feature-card-icon i {
  width: 28px;
  height: 28px;
}

.feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* Three Column Section */
.three-col-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.three-col-section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.three-col-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 60px;
}

.three-col-section h2 .light {
  color: var(--text-secondary);
  font-weight: 400;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.col-card {
  background-color: #f0f4f8;
  border-radius: 32px;
  padding: 40px;
  overflow: hidden;
}

.col-card img {
  width: 50%;
  max-width: 140px;
  height: auto;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 80px 5% 40px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 4px 0; /* Touch-friendly vertical spacing */
  min-height: 44px; /* WCAG 2.1 AA minimum touch target */
  line-height: 36px; /* Centers text within min-height */
}

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

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Privacy Page Styles */
.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 5% 100px;
}

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

.privacy-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.effective-date {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.privacy-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.privacy-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.privacy-content ul {
  margin: 16px 0 24px 24px;
  list-style-type: disc;
}

.privacy-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.privacy-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-content a {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: border-color 0.2s;
}

.privacy-content a:hover {
  border-bottom-color: var(--primary-dark);
}

/* Responsive */

/* Medium screens (tablets) - Better spacing for floating cards */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    padding: 0 80px;
  }

  .card-1 {
    right: -10%;
  }

  .card-3 {
    right: -8%;
  }

  /* Improve footer readability on tablets - 2 columns instead of 4 */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile screens - Cards overlay on phone */
@media (max-width: 768px) {
  nav {
    padding: 16px 5%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 40px 5% 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text-section {
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .trial-badge {
    padding: 14px 20px;
    gap: 10px;
  }

  .trial-icon {
    font-size: 24px;
  }

  .trial-text strong {
    font-size: 1rem;
  }

  .trial-text span {
    font-size: 0.8rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 14px;
  }

  .store-badge {
    height: 50px;
    width: auto;
  }

  .hero-visual {
    height: 500px;
  }

  .hero-phone {
    width: 220px;
  }

  .hero-blob {
    width: 400px;
    height: 400px;
  }

  .card-1 {
    width: 100px;
    right: 5%;
    top: 10%;
    z-index: 10;
  }

  .card-2 {
    width: 85px;
    left: 5%;
    top: 5%;
    z-index: 10;
  }

  .card-3 {
    width: 120px;
    right: 8%;
    bottom: 15%;
    z-index: 10;
  }

  .card-4 {
    width: 100px;
    left: 8%;
    bottom: 10%;
    z-index: 10;
  }

  .feature-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-content.reverse {
    direction: rtl;
  }

  .feature-content.reverse > * {
    direction: ltr;
  }

  .dark-section {
    margin: 0 10px;
    padding: 60px 5%;
    border-radius: 24px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .three-col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .col-card {
    padding: 30px;
  }

  .col-card img {
    width: 60%;
    max-width: 180px;
  }

  .feature-phone img {
    max-width: 70%;
  }

  .section-mascot {
    width: 60px;
    height: 60px;
  }

  .store-badge {
    height: 48px;
  }

  .store-buttons img {
    height: 48px;
  }

  .privacy-container {
    padding: 40px 5% 60px;
  }
}

/* Small mobile devices (phones in portrait) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .trial-badge {
    /* Keep horizontal layout to avoid height jump - changed from flex-direction: column */
    flex-direction: row;
    padding: 10px 14px; /* Reduced padding instead of changing layout */
    gap: 10px;
  }

  .trial-text strong {
    font-size: 0.95rem;
  }

  .trial-text span {
    font-size: 0.875rem; /* 14px minimum for mobile readability (was 12px) */
  }

  .hero-buttons {
    justify-content: center;
    gap: 12px;
  }

  .hero-buttons a {
    flex: 0 0 auto;
  }

  .store-badge {
    height: 52px; /* Increased from 48px for brand guideline compliance */
    width: auto;
    max-width: 180px; /* Increased from 160px for better legibility */
  }

  .col-card {
    padding: 24px;
  }

  .col-card h4 {
    font-size: 1.1rem;
  }

  .col-card p {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 24px;
  }

  .dark-section h2,
  .three-col-section h2 {
    font-size: 1.8rem;
  }

  .section-mascot {
    width: 50px;
    height: 50px;
  }

  nav {
    padding: 12px 4%;
  }

  .logo {
    font-size: 1rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    padding: 12px 20px; /* Ensures minimum 44px touch target (WCAG 2.1 AA) */
    font-size: 0.9rem; /* Increased from 0.85rem for better readability */
  }
}

/* Modern phones - iPhone 12/13 Pro, Pixel 5, etc. (481px-767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .hero h1 {
    font-size: 2.2rem; /* Slightly larger than small phones */
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .three-col-grid {
    grid-template-columns: 1fr; /* Force single column to avoid awkward 2-col layouts */
  }

  .store-badge {
    height: 54px; /* Slightly larger for better visibility on mid-size phones */
  }

  .hero-phone {
    width: 240px; /* Larger phone mockup for mid-range devices */
  }

  .trial-badge {
    padding: 14px 22px; /* More comfortable spacing */
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-visual {
    height: 400px;
  }

  .hero-phone {
    width: 180px;
  }

  .hero-blob {
    width: 350px;
    height: 350px;
  }

  .card-1,
  .card-2,
  .card-3,
  .card-4 {
    /* Scale down instead of hiding to preserve visual storytelling */
    transform: scale(0.6) translateY(0);
    opacity: 0.7;
  }
}

/* Screenshot images - hover effect only */
.col-card img,
.feature-phone img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  max-width: 100%;
  height: auto;
}

.col-card img:hover,
.feature-phone img:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(107, 182, 176, 0.4);
  opacity: 0.95;
}

.col-card img:active,
.feature-phone img:active {
  transform: scale(1.05);
}

/* Ultra-wide monitor optimization (2560px+) */
@media (min-width: 2560px) {
  .hero-content,
  .feature-content,
  .dark-section-content {
    max-width: 1600px; /* Prevent excessive stretching on ultra-wide displays */
    margin: 0 auto;
  }

  .hero-visual {
    max-width: 800px; /* Constrain hero visual to maintain proportions */
    margin: 0 auto;
  }

  /* Slightly larger floating cards for ultra-wide */
  .card-1,
  .card-3 {
    width: 160px;
  }

  .card-2,
  .card-4 {
    width: 150px;
  }
}

/* Accessibility: Reduced Motion Support */
/* Respects user's OS-level preference for reduced motion (vestibular disorders, motion sensitivity) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable floating animations for hero elements */
  .hero-phone,
  .float-card,
  .hero-blob,
  .trial-badge {
    animation: none !important;
  }
}
