/* ─────────────────────────────────────────────────────────
   My Tasks: Lists & Schedules — Landing Page Styles
   ───────────────────────────────────────────────────────── */

/* ── Reset & Custom Props ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-mid: #1976d2;
  --primary-light: #e3f2fd;
  --accent: #42a5f5;
  --text: #111827;
  --text-sec: #5a6270;
  --bg: #ffffff;
  --bg-alt: #f4f8ff;
  --border: #dce8fb;
  --shadow-sm: 0 2px 12px rgba(21, 101, 192, 0.08);
  --shadow-md: 0 8px 32px rgba(21, 101, 192, 0.14);
  --shadow-lg: 0 20px 56px rgba(21, 101, 192, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

/* ── App Icon — consistent squircle everywhere ─────────── */
/* 22% border-radius matches Android/iOS app icon shape     */
.app-icon {
  border-radius: 22%;
  display: block;
  flex-shrink: 0;
}
.app-icon-pill {
  width: 32px;
  height: 32px;
}
.app-icon-sm {
  width: 38px;
  height: 38px;
  box-shadow: var(--shadow-sm);
}
.app-icon-lg {
  width: 108px;
  height: 108px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

/* ── Utility ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navbar ────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: box-shadow 0.25s;
}
.nav-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Language Picker ───────────────────────────────────── */
.lang-picker {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.4px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.lang-current:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.lang-current svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  list-style: none;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 300;
}
.lang-dropdown.open {
  display: block;
}
.lang-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.lang-opt:hover,
.lang-opt.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-sec);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s !important;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.28) !important;
}
.btn-nav:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(21, 101, 192, 0.38) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(
    145deg,
    #0d2b6b 0%,
    #1353b4 38%,
    #1976d2 68%,
    #2196f3 100%
  );
  padding: 140px 0 160px;
  overflow: hidden;
}

/* Subtle dot-grid overlay for depth */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  width: 800px;
  height: 800px;
  top: -280px;
  right: -180px;
  background: radial-gradient(
    circle,
    rgba(100, 181, 246, 0.18) 0%,
    transparent 65%
  );
}
.hero-glow-2 {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 65%
  );
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* App identity pill */
.hero-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-app-pill span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.hero-text h1 {
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -2px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 38px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stat {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.5px;
}
.hero-stat span {
  font-size: 11px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
  display: block;
}
.hero-stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Google Play Badge ─────────────────────────────────── */
.gplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: #000;
  color: #fff;
  padding: 11px 22px;
  border-radius: 11px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
}
.gplay-badge:hover {
  opacity: 0.88;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
.gplay-icon {
  width: 30px;
  height: 34px;
  flex-shrink: 0;
}
.gplay-text {
  display: flex;
  flex-direction: column;
}
.gplay-get {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1;
  margin-bottom: 3px;
}
.gplay-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.2px;
}

/* Large variant — CTA section */
.gplay-badge-lg {
  padding: 15px 30px;
  gap: 16px;
}
.gplay-badge-lg .gplay-icon {
  width: 38px;
  height: 43px;
}
.gplay-badge-lg .gplay-get {
  font-size: 12px;
  margin-bottom: 5px;
}
.gplay-badge-lg .gplay-name {
  font-size: 26px;
}

/* ── 3 floating screenshots — pody.fm style ─────────────── */
.hero-phones {
  position: relative;
  height: 640px;
  flex-shrink: 0;
}

.phone {
  position: absolute;
  display: block;
  animation: fp-center 7s ease-in-out infinite;
}

/* Center — upright, largest, front */
.phone-center {
  width: 700px;
  left: 100px; /* (520 - 290) / 2 */
  top: 0;
  z-index: 10;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
}

/* Left — perspective lean, heavy overlap behind center */
.phone-left {
  width: 700px;
  left: -50px; /* right edge 250px — center starts 115px — ~135px overlap */
  top: 0px;
  z-index: 5;
  opacity: 0.78;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.5));
}

/* Right — perspective lean, heavy overlap behind center */
.phone-right {
  width: 700px;
  right: -250px; /* left edge 270px — center ends 405px — ~135px overlap */
  top: 0px;
  z-index: 7;
  opacity: 0.86;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.5));
}

@keyframes fp-center {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes fp-left {
  0%,
  100% {
    transform: perspective(900px) rotateY(22deg) scale(0.86) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(22deg) scale(0.86) translateY(-15px);
  }
}
@keyframes fp-right {
  0%,
  100% {
    transform: perspective(900px) rotateY(-22deg) scale(0.86) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(-22deg) scale(0.86) translateY(-13px);
  }
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ── Section shared header ─────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 100px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -1.2px;
  line-height: 1.15;
}
.section-header p {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Features grid ─────────────────────────────────────── */
.features {
  padding: 120px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ic-bg, var(--primary-light));
  color: var(--ic-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
}

.feature-card h3 {
  position: relative;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  position: relative;
  color: var(--text-sec);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── Screenshots — infinite marquee ───────────────────── */
.screenshots-section {
  padding: 120px 0 80px;
  background: var(--bg-alt);
  overflow: hidden;
}

.marquee-area {
  position: relative;
  padding: 8px 0 0;
  overflow: hidden;
}
.marquee-row {
  overflow: hidden;
  margin-bottom: 20px;
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
.marquee-left {
  animation: mq-scroll-left 38s linear infinite;
}
@keyframes mq-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-area:hover .marquee-track,
.marquee-area:focus-within .marquee-track {
  animation-play-state: paused;
}

.mq-img {
  height: 500px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

.mq-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 2;
}
.mq-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}
.mq-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
  .phone {
    animation: none !important;
  }
}

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(145deg, #0d2b6b 0%, #1353b4 45%, #1976d2 100%);
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(100, 181, 246, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -1.2px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 44px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.cta-inner .gplay-badge {
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: #080f1e;
  padding: 56px 0 36px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-logo {
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.88);
}
.footer-copy {
  color: rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-phones {
    display: none;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-app-pill {
    display: inline-flex;
  }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 199;
    padding-bottom: 12px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links .btn-nav {
    margin: 12px 28px 4px !important;
    border-radius: 12px !important;
    text-align: center !important;
    width: calc(100% - 56px) !important;
    padding: 14px 24px !important;
  }
  .nav-hamburger {
    display: flex;
  }
  .lang-current span {
    display: none;
  } /* hide label text on mobile, show icon only */

  .hero {
    padding: 120px 0 80px;
  }
  .hero-text h1 {
    letter-spacing: -1.5px;
  }

  .mq-img {
    height: 260px;
    border-radius: 14px;
  }
  .mq-fade {
    width: 60px;
  }

  .section-header {
    margin-bottom: 48px;
  }
}
