@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --viisi-bg: #f8efe2;
  --viisi-green: #33cc66;
  --viisi-green-dark: #2c8a5a;
  --viisi-red: #FB4655;
  --viisi-red2: #f87171;
  --viisi-red-dark: #dc2626;
  --viisi-text: #0a192e;
  --viisi-muted: #6b7280;
  --viisi-card: #fffaf3;
  --viisi-border: #f4d7bf;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 40px rgba(31, 41, 55, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--viisi-bg);
  color: var(--viisi-text);
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
}

.hover:hover {
  transform: rotate(5deg);
}


.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.25rem;
  background: var(--viisi-red);
  transform: rotate(3deg);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(249, 113, 113, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  color: var(--viisi-muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--viisi-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.1rem;
}

.btn:focus-visible {
  outline: 3px solid rgba(249, 113, 113, 0.35);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--viisi-text);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.appleDownload button {
  width:49%;
  height: 60px;
  background-image: url('../images/appleDownload.svg');;
  background-repeat: no-repeat;
  background-size:100%;
  border: none;
}

.btn-ghost {
  background:white;
  color: var(--viisi-text);
  border: 2px solid rgba(31, 41, 55, 0.1);
  border-radius:8px;
}
.btn-ghost.apple {
    padding: 0.42rem 0.6rem;
    font-size: 1.1rem;
    margin-top:-2px;
}

.hero {
  padding: 3rem 0 4rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.hero .challenge {
  font-size: 1.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(249, 113, 113, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--viisi-red);
  box-shadow: 0 10px 30px rgba(249, 113, 113, 0.15);
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  line-height: 1.05;
  margin: 1rem 0;
  font-weight: 800;
}

.hero h1 span {
  color: var(--viisi-green);
}

.hero h1 span:last-child {
  color: var(--viisi-red);
}

.hero p {
  color: var(--viisi-muted);
  font-size: 0.9rem;
  max-width: 520px;
}

.hero-logo {
  width: 110px;
  display: block;
  margin: 1.25rem 0 0.5rem;
  border-radius: 24px;
  padding: 0.75rem;
  background: white;
  border: 1px solid rgba(249, 113, 113, 0.2);
  box-shadow: 0 18px 40px rgba(249, 113, 113, 0.25);
}

.phone-shell .date {
  color:gray;
  font-size: .7rem;
  text-align: center;
  padding:0; margin:0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-cta.apple {
  flex-direction: row;
}

.phone-showcase {
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(-2deg);
}

.phone-floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 1rem;
  width: 165px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-floating-card strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.4rem;
}

.phone-floating-card p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--viisi-muted);
}

.card-streak {
  transform: rotate(1deg);
  top: 60px;
  right: 44px;
  z-index: 5;
}

.card-archive {
    transform: rotate(2deg);
  bottom: 93px;
  left: 40px;
  z-index: 5;
}

.pill {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-green {
  background: rgba(60, 179, 113, 0.15);
  color: var(--viisi-green-dark);
}

.pill-orange {
  background: rgba(248, 113, 113, 0.15);
  color: var(--viisi-red-dark);
}

.phone-toolbar {
  display: flex;
  gap: 0.5rem;
}

.phone-icon {
  color: var(--viisi-red);
  stroke: var(--viisi-red);
}

.glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(249, 113, 113, 0.35),
    transparent 70%
  );
  filter: blur(10px);
}

.phone-shell {
  position: relative;
  width: min(320px, 70vw);
  border-radius: 42px;
  background: #111827;
  padding: 16px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.4);
  height:600px;
}

.phone-notch {
  position: absolute;
  width: 140px;
  height: 22px;
  background: #111827;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.phone-inner {
  background: var(--viisi-bg);
  border-radius: 32px;
  overflow: hidden;
  padding: 1.2rem;
  min-height: 568px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin: 1.2rem 0;
}

.game-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #e5e7eb;
  font-size: 1.1rem;
  color: var(--viisi-text);
}

.game-cell.active {
  background: var(--viisi-green);
  border-color: var(--viisi-green);
  color: white;
}
.game-grid.shade {
  margin-top:10px;
 gap: 0.15rem;
}
.game-grid.shade .game-cell {
  background: var(--viisi-red2);
  box-shadow: inset 1px -5px 5px 0px var(--viisi-red-dark);
 color: white;
}

.letter-tiles {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.letter-tiles span {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--viisi-red);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 -4px rgba(0, 0, 0, 0.12);
}
.letter-tiles .black {
  background: gray;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.section-title p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--viisi-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);

  h3 {
    display: inline-block;
    margin:0;
    vertical-align: top;
  }

  .star {
    color: oklch(0.795 0.184 86.047);
  }
  .trophy {
    color: var(--viisi-green);
  }
  .calendar {
    color: var(--viisi-red2);
  }
}

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

.stats {
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  background: white;
  padding: 2.5rem;
  display: grid;
  gap: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat {
  border-left: 4px solid var(--viisi-green);
  padding-left: 1rem;
}

.stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--viisi-green);
}

.footer {
  background: var(--viisi-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.mobile-menu-button {
  display: none;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-nav-sheet {
  display: none;
}

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

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-nav-sheet[data-open="true"] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }

  .phone-floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .phone-inner  {
    min-height:520px;
  }
  .phone-shell {
    height:auto;
  }

  .hero-cta {
    flex-direction: column;
  }

  .stats {
    padding: 1.75rem;
  }

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

.policy-wrapper {
  padding: 3rem 0 4rem;
  display: flex;
  justify-content: center;
}

.policy-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 760px;
  width: 100%;
}

.policy-card h1,
.policy-card h2 {
  margin-top: 0;
  color: var(--viisi-text);
}

.policy-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.policy-card .subtitle {
  color: var(--viisi-muted);
  margin-bottom: 1.5rem;
}

.policy-card p {
  margin: 0.4rem 0 0.9rem;
}

.policy-card ul {
  padding-left: 1.25rem;
  margin: 0.4rem 0 1rem;
}

.policy-card li {
  margin-bottom: 0.3rem;
}

.policy-card a {
  color: var(--viisi-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.policy-card a:hover {
  text-decoration-thickness: 2px;
}

.policy-card .footer-note {
  font-size: 0.9rem;
  color: var(--viisi-muted);
  margin-top: 1.5rem;
}
