/* Tiny Wins Landing Page - Styles */

/* Fonts */
@font-face {
  font-family: 'AG Book Rounded';
  src: url(assets/fonts/AGBookRounded-Regular.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AG Book Rounded';
  src: url(assets/fonts/AGBookRounded-Medium.otf) format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'AG Book Rounded';
  src: url(assets/fonts/AGBookRounded-Bold.otf) format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'AG Book Rounded', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A1A;
  background-color: #FBF9F3;
  background-image: url(assets/bg_moleskine2.svg);
  background-repeat: repeat;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  flex: 1;
  padding: 48px 24px 64px;
}

.hero__container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero__container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    padding-top: 24px;
  }
}

.hero__content {
  flex: 1;
}

@media (max-width: 1023px) {
  .hero__content {
    text-align: center;
  }

  .hero__header {
    display: flex;
    justify-content: center;
  }

  .logo {
    justify-content: center;
  }
}

.hero__header {
  margin-bottom: 40px;
}

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

.logo__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  display: block;
}

.logo__text {
  font-size: 26px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1;
}

.hero__headline {
  margin: 0 0 12px;
  font-size: clamp(40px, 8vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: #1A1A1A;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 40px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  color: #555555;
  min-height: 1.4em;
  line-height: 1.4;
}

.hero__subtitle-text {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__subtitle-text.hero__subtitle-text--out {
  opacity: 0;
  transform: translateY(-10px);
}

.hero__subtitle-text.hero__subtitle-text--in {
  opacity: 0;
  transform: translateY(10px);
}

.hero__subtitle-text.hero__subtitle-text--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__tagline {
  margin: 0 0 40px;
  font-size: clamp(40px, 8vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  color: #1A1A1A;
  letter-spacing: -0.02em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background-color: #000000;
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: default;
  transition: opacity 0.2s;
}

.cta-button:hover {
  opacity: 1;
}

.cta-button__apple {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cta-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.cta-button__main {
  line-height: 1.2;
}

.cta-button__soon {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1;
}

/* Phone Mockup */
.hero__phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
  background: #000000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .phone-mockup {
    width: 320px;
  }
}

.phone-mockup__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000000;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-mockup__screen {
  position: relative;
  background: #FBF9F3;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}

.phone-mockup__content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone-mockup__image,
.phone-mockup__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features Section */
.features {
  padding: 80px 24px 100px;
  background-color: #F9F5EF;
}

.features__container {
  max-width: 960px;
  margin: 0 auto;
}

.features__title {
  margin: 0 0 0;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.02em;
}

.features__subtitle {
  margin: 0 0 48px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  color: #555555;
  max-width: 560px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.feature-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card__phone {
  width: 100%;
  margin-bottom: 24px;
}

.feature-card__phone-frame {
  max-width: 200px;
  margin: 0 auto;
  background: #000000;
  border-radius: 24px;
  padding: 8px;
  overflow: hidden;
}

.feature-card__screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 9 / 19.5;
}

.feature-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

.feature-card__description {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #555555;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.footer__link {
  font-size: 16px;
  color: #555555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #1A1A1A;
}

.footer__separator {
  color: #CAC6C0;
  font-size: 14px;
}

.footer__copyright {
  margin-top: 12px;
  font-size: 14px;
  color: #888888;
}
