/* GATI Landing — mobile-first, Teko font, parallax hero */
@layer reset, base, layout, components, utilities;

/* Reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html:focus-within { scroll-behavior: smooth; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
  a { color: inherit; text-decoration: none; }
  button, input, select, textarea { font: inherit; }
}

/* Base */
@layer base {
  :root {
    --green-dark: #0a1f14;
    --gold: #FF9432;
  }
  html { font-size: 18px; }
  body {
    font-family: "Teko", sans-serif;
    background: var(--green-dark);
    color: #fff;
    min-height: 100svh;
  }
  .container {
    width: min(1140px, 92%);
    margin-inline: auto;
  }
  .accent { color: var(--gold); }
}

/* Layout */
@layer layout {
  .header { padding: 1rem 0 0.5rem; }
  img.logo { 
    width: 224px; 
    height: 116px;
    margin: auto; 
  }

  .hero {
    position: relative;
    padding: 2.2rem 0 3.2rem;
    background: url("../assets/img/hero-mobile.png") center/cover no-repeat fixed;
  }
  @media (min-width: 900px) {
    .hero { background-image: url("../assets/img/hero-web.png"); }
  }

  .header__images__container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, rgba(0,0,0,0.35));
    pointer-events: none;
  }

  .hero__content {
    position: relative;
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
  }

  .title {
    font-family: 'Protest Strike';
    font-style: normal;
    font-weight: 400;
    font-size: 42px;
    line-height: 77px;
    /* identical to box height */
    letter-spacing: 0.02em;
    text-transform: uppercase;
    -webkit-text-stroke: 3px transparent;
    background: linear-gradient(45deg, #CD6E06, #6C391F);
    -webkit-background-clip: text;
    text-align: center;
    color: #FFFFFF;
  }
  .subtitle {
    font-family: "Teko", sans-serif;
    opacity: .95;
    margin-bottom: .5rem;
    font-family: Teko;
    font-weight: 300;
    font-size: 18px;
    line-height: 100%;
    margin-top: 8px;
  }

  .content__container {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .store-row {
    display: flex; align-items: center; gap: .8rem;
    position: relative; z-index: 5;
    margin-top: 174px;
    align-self: center;
  }
  .app-icon { width: 60px; height: 60px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
  .store-badge img { width: clamp(160px, 45vw, 220px); height: auto; }

  .mock {
    margin-top: 1.8rem;
    perspective: 1400px;
    display: none;
  }
  .mock__img {
    width: min(760px, 96%);
    transform: rotateZ(-8deg) rotateX(2deg);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.5));
  }

  .cta {
    margin-top: 1.8rem;
    display: grid; gap: .6rem; justify-items: center;
    
  }
  .cta__shield { 
    width: clamp(160px, 40vw, 240px); 
    position: relative;
    top: -30px;
  }
  .cta__sub {
    font-size: 18px;
    opacity: .95;
    position: relative;
    top: -50px;
  }

  .footer {
    background: linear-gradient(180deg, #A94C00 0%, #431E00 2.1%);
    color: #fff;
    position: relative;
  }
  .footer__content {
    padding: 2rem 0 1.5rem;
    display: flex;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__brand {
    display: grid; gap: .8rem; justify-items: center;
  }
  .footer__logo { width: clamp(100px, 14vw, 160px); }
  .footer__chars, .mobile__image { width: clamp(140px, 28vw, 240px); filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
  .mobile__image {
    display: none;
  }
  .cta .mobile__image {
    display: block;
    width: 356px;
    height: 224px;
    position: relative;
    top: -10px;
  }
  .footer__links { display: flex; gap: 1.6rem; opacity: .9; }
  .footer__links a:hover { text-decoration: underline; }
  .copy { opacity: .9; }

  .footer__bar { height: 10px; background: #b27015; }
  .nav__links__container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }
  .footer__chars {
    position: absolute;
    width: 128px;
    height: 191px;
    right: 27px;
    bottom: 78px;
  }
  .content__left__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Desktop tweaks */
@layer utilities {
  @media (min-width: 1024px) {
    .hero__overlay {
      background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, rgba(0,0,0,0));
    }
    .content__container {
      margin-top: 100px;
      justify-content: space-between;
      flex-direction: row;
      align-items: flex-start;
    }
    .content__left__container {
      display: block;
    }
    .header__images__container {
      justify-content: space-between;
    }
    img.logo {
      width: 164px;
      height: 85px;
      margin: 0
    }
    img.mock__img {
      width: 184px;
      height: 85px;
    }
    .hero { padding: 16px 64px 74px; }
    .hero__content { gap: 1.2rem; }
    .mock { margin-top: 2.2rem; display: block; }
    .cta { margin-top: 2rem; display: none;}
    .footer__content {
      grid-template-columns: 1fr auto;
      align-items: stretch;
      text-align: left;
      display: flex;
      flex-direction: column;
    }
    .footer__brand { grid-auto-flow: column; align-items: center; gap: 1.4rem; align-self: flex-start; }
    .copy { justify-self: end; }
    img.mobile__image {
      width: 600px;
      height: 400px;
      position: relative;
      right: -50px;
      top: -50px;
      display: block;
    }
    .footer__chars {
      position: absolute;
      width: 176px;
      height: 262px;
      right: 164px;
      bottom: 56px;
    }
    .title {
      font-size: 64px;
      text-align: left;
    }
    .subtitle {
      font-size: 32px;
    }
    .store-row {
      margin-top: 32px;
    }
    .app-icon { width: 88px; height: 88px;}
    .footer__brand {
      justify-items: center;
    }
    .nav__links__container {
      flex-direction: row;
    }
  }
}
