/* Clema Landing - Base Styles */
:root {
  --page-bg: #A6B2F9;
  --text: #0B1221;
  --muted-text: rgba(11, 18, 33, 0.72);
  --card-bg: rgba(255, 255, 255, 0.72);
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.20);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.title-font {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Spacing helpers */
.space-top-xl { padding-top: 80px; }
.space-bottom-xl { padding-bottom: 80px; }

@media (min-width: 768px) {
  .space-top-xl { padding-top: 120px; }
  .space-bottom-xl { padding-bottom: 120px; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

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

.hero-title {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  text-wrap: balance;
}

.hero-title-2 {
  font-weight: 300;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
  text-wrap: balance;
}

.hero-cta { 
  display: flex; 
  gap: 16px; 
  align-items: center;
  justify-content: center;
}

.hero-cta-desktop {
  display: none;
}

.hero-cta-mobile {
  display: flex;
  margin-top: 24px;
}

.appstore-badge {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: default;
}

.badge-img { 
  height: 56px;
  width: auto;
  filter: drop-shadow(var(--shadow-sm)); 
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: min(420px, 85vw);
  height: auto;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero-content {
    text-align: left;
  }
  .hero-cta {
    justify-content: flex-start;
  }
  .hero-cta-desktop {
    display: flex;
  }
  .hero-cta-mobile {
    display: none;
  }
  .hero-title { font-size: 56px; }
  .hero-title-2 { font-size: 42px; }
}

/* Video Section */
.video-section {
  text-align: center;
}

.video-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 32px 0;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px;
  background: radial-gradient(ellipse 70% 70% at center, transparent 0%, var(--page-bg) 100%);
}

.demo-video {
  width: min(420px, 85vw);
  height: auto;
  border-radius: 28px;
  display: block;
}

@media (min-width: 960px) {
  .video-title { font-size: 44px; }
  .demo-video {
    width: min(500px, 90vw);
  }
}

/* Features */
.features {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  background: var(--card-bg);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.card-emoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 8px 0;
  font-weight: 500;
  font-size: 22px;
}

.card-body {
  margin: 0;
  color: var(--muted-text);
}

/* CTA */
.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 20px 0;
}

@media (min-width: 960px) {
  .cta-title { font-size: 44px; }
}

/* Fine-tuning spacing and layout on larger screens */
@media (min-width: 1200px) {
  .hero-title { font-size: 64px; }
  .hero-title-2 { font-size: 48px; }
}

/* Reduce overall section spacing on small screens */
@media (max-width: 359px) {
  .space-top-xl { padding-top: 64px; }
  .space-bottom-xl { padding-bottom: 64px; }
}

/* Footer */
.footer {
  padding: 32px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-link {
  color: rgba(11, 18, 33, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(11, 18, 33, 0.9);
}

.footer-separator {
  color: rgba(11, 18, 33, 0.3);
  font-size: 14px;
}


