/* 
  SPACING SYSTEM (px)
  2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

  FONT SIZE SYSTEM (px)
  10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* COLORS */
  --clr-green-500: hsl(171, 66%, 44%);
  --clr-blue-100: hsl(233, 100%, 69%);
  --clr-gray-700: hsl(210, 10%, 33%);
  --clr-gray-500: hsl(201, 11%, 66%);

  /* TYPOGRAPHY */
  --fw-400: 400;
  --fw-600: 600;
  --ff-bai: "Bai Jamjuree", sans-serif;
}

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

html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"],
ul,
ol {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
}

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

/* ============================================================
  BASE
  ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-bai);
  font-weight: var(--fw-400);
  color: var(--clr-gray-700);
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--fw-600);
}

p {
  color: var(--clr-gray-500);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-weight: var(--fw-600);
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Primary (iOS - Green) */
.btn--green {
  background-color: var(--clr-green-500);
  color: #fff;
  box-shadow: 0 10px 20px hsla(171, 66%, 44%, 0.3);
}

.btn--green:hover {
  background-color: hsl(171, 66%, 38%);
  transform: translateY(-2px);
}

/* Secondary (Mac - Blue) */
.btn--blue {
  background-color: var(--clr-blue-100);
  color: #fff;
  box-shadow: 0 10px 20px hsla(233, 100%, 69%, 0.3);
}

.btn--blue:hover {
  background-color: hsl(233, 100%, 63%);
  transform: translateY(-2px);
}

/* Optional: full width for mobile */
.btn--block {
  width: 100%;
  text-align: center;
}

a:focus,
button:focus {
  outline: 2px solid var(--clr-blue-100);
  outline-offset: 2px;
}

/* 
  HEADER
*/
.header {
  background-image: url(../images/bg-header-desktop.png);
  background-position: center;
  background-size: cover;
  padding: 4rem 0 8rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo {
  max-width: 90px;
  width: 100%;
  padding-bottom: 2rem;
}

.header__content {
  text-align: center;
}

.header__content h1 {
  font-weight: var(--fw-600);
  font-size: 2.2rem;
  line-height: 1.2;
}

.header__content p {
  max-width: 550px;
  padding-top: 0.5rem;
  margin: 0 auto;
  font-size: 1rem;
  padding-bottom: 1rem;
}

.header__btn {
  padding-top: 1.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* 
  HERO BANNER
*/
.hero-banner {
  text-align: center;
}

.hero-description {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  margin-top: 0.5rem;
}

.features-section {
  padding: 4rem 0;

  display: flex;
  align-items: center;
  gap: 2rem;
}

.features-image {
  width: 100%;
  max-width: 600px;
  margin-left: -20px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: var(--fw-600);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--clr-gray-500);

  max-width: 300px;
}

.feature-item {
  margin-bottom: 2rem;
}

.access-section {
  text-align: center;
  margin: 1rem 0;

  display: flex;
  align-items: center;
  flex-direction: column;
}

.access-content {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.access-description {
  width: 100%;
}

.access-image {
  width: 100%;
  max-width: 600px;
}

.workflow-header {
  text-align: center;
  margin-bottom: 2rem;
}

.workflow-title {
  font-size: 1.5rem;
}

.workflow-subtitle {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.workflow-features {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.workflow-card-title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.workflow-card-text {
  max-width: 32ch;
  font-size: 0.85rem;
  line-height: 1.6;
}

.logos-section {
  padding: 5rem 0;
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;

  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo-item {
  max-width: 120px;
  width: 100%;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-item:hover {
  opacity: 1;
}

.footer {
  background: #f5f6f8;
  padding: 1.5rem 8rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5rem auto 0;
}

.footer-logo {
  max-width: 60px;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  font-size: 1.4rem;
  color: var(--clr-gray-700);
  align-items: center;
}

.footer-social ion-icon {
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-social ion-icon:hover {
  color: var(--clr-green-500);
}

@media (max-width: 768px) {
  /* HEADER */
  .header {
    padding: 2rem 1.5rem;
  }

  .header__content p {
    font-size: 14px;
  }

  .header__content h1 {
    font-size: 1.6rem;
  }

  .header__btn {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 220px;
    padding: 0.75rem 1.5rem;
  }

  .hero-description {
    font-size: 0.75rem;
    padding: 0 1rem;
  }

  .features-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 2rem;
  }

  .features-list {
    display: flex;
    justify-content: center;
  }

  .features-items {
    padding: 0;
    text-align: center;
  }

  .feature-item {
    margin-bottom: 1.5rem;
  }

  .features-image {
    margin: 0;
  }

  .feature-description {
    max-width: 100%;
  }

  /* ACCESS SECTION */
  .access-content {
    padding: 0 1rem;
  }

  /* WORKFLOW */
  .workflow-features {
    flex-direction: column;
    gap: 3rem;
  }

  .logos-section {
    padding: 1.5rem;
  }

  /* LOGOS */
  .logos-container {
    justify-content: center;
    gap: 2rem;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-links-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-links {
    width: 100%;
  }

  .footer-list {
    padding: 0;
  }

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

@media (max-width: 232px) {
  .btn {
    width: 100%;
    max-width: 220px;
    padding: 0.75rem 1rem;
  }
}
