/* Brand tokens from the yourr.name app (src/main/nuxt/app/assets/css/variables.css) */
:root {
  --color-primary: #1D5C96;
  --color-secondary: #7DB0DE;
  --color-tertiary: #12395D;
  --color1: #111111;
  --color2: #ffffff;
  --color3: #c9edff;
  --color4: #B7E5FB;
  --color5: #F3622E;
  --color6: #4B484B;
  --color7: #5C616C;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v8-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-v8-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Apparel';
  font-style: italic;
  font-weight: normal;
  font-display: swap;
  src: url('../fonts/Apparel-Regular-It.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color1);
  background-color: var(--color2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 {
  color: var(--color1);
  font-size: 50px;
  font-weight: 700;
  line-height: 120%;
}

h1 > span {
  color: var(--color5);
  font-family: Apparel, serif;
  font-style: italic;
  font-weight: normal;
}

h2 {
  color: var(--color1);
  font-size: 36px;
  font-weight: 700;
  line-height: 47px;
}

h2 > span {
  color: var(--color5);
  font-family: Apparel, serif;
  font-style: italic;
  font-weight: normal;
}

h3 {
  color: var(--color1);
  font-size: 24px;
  font-weight: 600;
}

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

a {
  color: var(--color1);
  text-decoration: none;
  transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color2);
  color: var(--color1);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 500;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

.section-wrapper > section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

/* Header */
header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color1);
  height: 72px;
  padding: 0 20px;
}

#header-main {
  display: flex;
  width: 100%;
  max-width: 1600px;
  align-items: center;
}

#header-main img {
  width: 173px;
  height: 32px;
}

/* Hero */
#hero-wrapper {
  background-color: var(--color3);
  flex-direction: column;
  align-items: center;
}

#hero-section {
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
}

#hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  padding-bottom: 72px;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 200px;
  background: var(--color2);
  color: var(--color1);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.launch-badge::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color5);
}

#hero-content p {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 640px;
}

.hero-art {
  display: block;
  line-height: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
}

.hero-art-globe {
  width: 150px;
  margin: 40px auto 0;
}

.hero-art-magnifier {
  display: none;
}

@keyframes hero-float {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -14px;
  }
}

.rounded-top-divider {
  width: 100%;
  line-height: 0;
}

.rounded-top-divider svg {
  width: 100%;
  height: 48px;
  display: block;
}

/* Teasers */
#teasers-section {
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  list-style: none;
}

.teaser-card h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-radius: 10px;
  border: 2px solid var(--color4);
  background: var(--color2);
}

.teaser-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color4);
}

.teaser-card p {
  color: var(--color6);
  font-size: 17px;
  line-height: 1.6;
}

/* Contact */
#contact-section {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 96px;
}

#contact-section p {
  margin-top: 16px;
  max-width: 560px;
  color: var(--color6);
}

.button-orange {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 19px 26px;
  border-radius: 200px;
  background: var(--color5);
  color: var(--color2);
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.button-orange:hover,
.button-orange:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 98, 46, 0.35);
}

.button-orange svg {
  flex-shrink: 0;
}

/* Footer */
footer {
  background: var(--color3);
}

.section-wrapper > section.footer-section {
  flex-direction: column;
  gap: 32px;
  padding: 56px 16px 24px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.footer-main img {
  width: 173px;
  height: 32px;
}

.footer-main p {
  font-size: 18px;
  line-height: 32px;
  opacity: 0.7;
}

.footer-main nav {
  display: flex;
  gap: 28px;
}

.footer-main nav a {
  font-size: 18px;
  opacity: 0.7;
}

.footer-main nav a:hover,
.footer-main nav a:focus-visible {
  opacity: 1;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 10px;
  background: #BBE2F5;
}

.footer-bar p {
  font-size: 16px;
  line-height: 20px;
  opacity: 0.7;
  text-align: center;
}

/* Stub pages */
#stub-section {
  flex-direction: column;
  padding-top: 72px;
  padding-bottom: 96px;
}

#stub-section .stub-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

#stub-section p {
  margin-top: 20px;
  color: var(--color6);
}

#stub-section a {
  color: var(--color-primary);
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  color: var(--color1);
}

/* Desktop */
@media (min-width: 1024px) {
  header {
    height: 86px;
  }

  #header-main img {
    width: 216px;
    height: 40px;
  }

  .section-wrapper > section {
    width: calc(100% - 180px);
    max-width: 1420px;
    padding: 0;
  }

  h1 {
    font-size: 70px;
  }

  h2 {
    font-size: 48px;
    line-height: 60px;
  }

  h3 {
    font-size: 28px;
  }

  #hero-section {
    padding-top: 96px;
  }

  #hero-content {
    padding-bottom: 110px;
  }

  #hero-content p {
    font-size: 20px;
  }

  .rounded-top-divider svg {
    height: 100px;
  }

  #teasers-section {
    padding-top: 56px;
    padding-bottom: 96px;
  }

  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .teaser-card {
    padding: 40px 32px;
  }

  .teaser-card h2 {
    font-size: 28px;
  }

  #contact-section {
    padding-bottom: 130px;
  }

  #contact-section p {
    font-size: 20px;
  }

  .section-wrapper > section.footer-section {
    padding: 80px 0 24px;
  }

  #hero-section {
    position: relative;
  }

  .footer-main nav {
    margin-left: auto;
    align-self: center;
  }

  .footer-main {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 20px;
  }
}

@media (min-width: 1440px) {
  .hero-art-globe {
    position: absolute;
    left: 24px;
    top: 130px;
    width: 200px;
    margin: 0;
    rotate: -8deg;
    animation: hero-float 5s ease-in-out infinite alternate;
  }

  .hero-art-magnifier {
    display: block;
    position: absolute;
    right: 8px;
    top: 270px;
    width: 230px;
    rotate: 10deg;
    animation: hero-float 6s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button-orange:hover,
  .button-orange:focus-visible {
    transform: none;
  }

  .hero-art-globe,
  .hero-art-magnifier {
    animation: none;
  }
}
