/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-dark-bg: #060a14;
  --color-white: #ffffff;

  /* Index Page Specific Colors */
  --color-green: #7ed957;
  --color-yellow: #c8e600;
  --color-gray: #8a8a8a;
}

body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--color-dark-bg);
  color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Index Page Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* ============================================
   Privacy & Terms Pages Styles
   ============================================ */

.navbar .track-habit-badge {
  margin-bottom: 80px;
}

/* Privacy/Terms Page Container */
.page-container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 65px 32px 96px;
}

@media (max-width: 768px) {
  .page-container {
    padding-top: 40px;
  }

  .navbar .track-habit-badge {
    margin-bottom: 40px;
  }
}

/* Privacy/Terms Content Layout */
.page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.page-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #65636a;
  padding-bottom: 32px;
}

.page-section:last-child {
  border-bottom: none;
}

/* Privacy/Terms Typography */
.page-container h1 {
  font-size: 28px;
  font-weight: 300;
  width: 100%;
  margin-bottom: 12px;
  color: var(--color-white);
}

.page-container h2 {
  font-size: 28px;
  font-weight: 300;
  width: 100%;
  color: var(--color-white);
}

.page-container h3 {
  font-size: 28px;
  font-weight: 300;
  width: 100%;
  color: var(--color-white);
}

.page-container p {
  font-size: 20px;
  font-weight: 300;
  width: 100%;
  color: #aeadb2;
}

.intro-text {
  font-size: 20px;
  font-weight: 300;
  color: #aeadb2;
}

.intro-text .link {
  color: #4fd049;
  text-decoration: underline;
}

.meta-text {
  font-size: 20px;
  font-weight: 300;
  color: #aeadb2;
}

.page-container ul {
  list-style: disc;
  padding-left: 32px;
  padding-top: 12px;
  color: #aeadb2;
}

.page-container li {
  font-size: 20px;
  font-weight: 300;
  color: #aeadb2;
}

.page-container a[href^="mailto:"] {
  color: #aeadb2;
  text-decoration: none;
}

.bold {
  font-weight: 600;
}

/* ============================================
   Global Footer Styles
   ============================================ */

.footer {
  background-color: #060a14;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 32px 0;
  margin-top: 60px;
}

.footer .container,
.footer .page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  color: var(--color-gray);
  transition:
    color 0.3s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 20px;
  }

  .footer .container,
  .footer .page-container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .footer-nav {
    justify-content: center;
    gap: 20px;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* ============================================
   Index Page Styles
   ============================================ */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0 30px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title-small {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-left: 8px;
}

.hero-title-best {
  font-size: clamp(40px, 12vw, 160px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--color-white);
}

.hero-title-life {
  font-size: clamp(40px, 12vw, 160px);
  font-weight: 500;
  line-height: 0.9;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-yellow) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-with-badge {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-with-badge .track-habit-badge {
  margin-right: -60px;
  margin-top: 10px;
}

.hero-with-text {
  font-size: 36px;
  font-weight: 300;
  color: var(--color-white);
}

.track-habit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 32px;
  height: 32px;
}

.badge-icon img {
  width: 30px;
  height: 30px;
}

.badge-text {
  font-size: 28px;
  color: var(--color-white);
}

.hero-phone-container {
  margin: 60px 0 80px;
  position: relative;
  z-index: 1;
}

.download-section {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: auto;
  padding-top: 40px;
}

.download-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-yellow) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-block;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-btn img {
  height: 56px;
  width: auto;
}

/* Features Section */
.features-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 375px;
  height: 375px;
  background: linear-gradient(
    180deg,
    var(--Brand-Brand-Primary, #49bb30) 0%,
    var(--Brand-Brand-Secondary, #ebd000) 100%
  );
  border-radius: 50%;
  transform: translate(50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(200px);
}

.features-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

.features-image {
  position: relative;
}

.features-image img {
  width: 100%;
  height: auto;
}

.features-text {
  max-width: 540px;
}

.features-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 24px;
}

.features-description {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 56px;
  background:
    linear-gradient(#060a14, #060a14) padding-box,
    linear-gradient(180deg, var(--color-green) 0%, var(--color-yellow) 100%)
      border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 20px 0px rgba(126, 217, 87, 0.15);
}

.cta-button-text {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(
    180deg,
    var(--color-green) 0%,
    var(--color-yellow) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.arrow-icon {
  width: 18px;
  height: 15px;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* Index Page Responsive */
@media (max-width: 1024px) {
  .features-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .features-image {
    order: 1;
  }

  .features-text {
    order: 2;
    text-align: center;
    margin: 0 auto;
  }

  .cta-button {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-with-badge .track-habit-badge {
    padding: 8px 16px;
    margin-right: -20px;
  }

  .hero-with-badge .track-habit-badge .badge-icon {
    width: 24px;
    height: 24px;
  }

  .hero-with-badge .track-habit-badge .badge-text {
    font-size: 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-section {
    padding: 60px 0 30px;
    min-height: 80vh;
  }

  .hero-title-small {
    font-size: 14px;
    margin-left: 2px;
  }

  .hero-with-text {
    font-size: 28px;
  }

  .features-section {
    padding: 80px 0;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   FAQ Page Styles
   ============================================ */

.faq-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-green);
}

.faq-summary {
  list-style: none;
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--color-green);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: #aeadb2;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .faq-summary {
    font-size: 18px;
    padding: 20px;
  }

  .faq-answer {
    font-size: 16px;
    padding: 0 20px 20px;
  }
}

/* ============================================
   Contact Us Page Styles
   ============================================ */

.contact-section {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  /* border-color: var(--color-green); */
}

.contact-image-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  transition: transform 0.5s ease;
}

.contact-image-container:hover img {
  transform: scale(1.05);
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.5;
  }
  to {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.contact-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(126, 217, 87, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.contact-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--color-green);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-label {
  font-size: 16px;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.contact-email {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--color-green);
}

.contact-description {
  font-size: 20px;
  line-height: 1.6;
  color: #aeadb2;
  font-weight: 300;
  max-width: 800px;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-card {
    padding: 24px;
    align-items: center;
    text-align: center;
  }

  .contact-image-container {
    min-height: 280px;
  }

  .contact-icon-circle {
    width: 64px;
    height: 64px;
  }

  .contact-icon-circle svg {
    width: 24px;
    height: 24px;
  }
}
