/* ==========================================================================
   Lumeko Apps Hub — Style
   apps.lumeko.app
   ========================================================================== */

/* --- Reset & Base --- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #0D1117;
  color: #E6EDF3;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Layout --- */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* --- Header --- */

.site-header {
  background-color: #161B22;
  border-bottom: 1px solid #30363D;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo-link:focus-visible {
  outline: 2px solid #54C5F8;
  outline-offset: 4px;
  border-radius: 4px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.header-tagline {
  font-size: 0.8125rem;
  color: #8B949E;
  letter-spacing: 0.02em;
}

/* --- Hero --- */

.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: #8B949E;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Apps Grid --- */

.apps {
  padding-bottom: 64px;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- App Card --- */

.app-card {
  background-color: #161B22;
  border: 1px solid #30363D;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card--orca {
  border-top: 3px solid #F5A623;
}

.app-card--pdf {
  border-top: 3px solid #54C5F8;
}

.app-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  background-color: #0D1117;
}

.app-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.app-card__description {
  font-size: 1rem;
  color: #C9D1D9;
  margin-bottom: 20px;
  line-height: 1.5;
}

.app-card__features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.app-card__features li {
  font-size: 0.9375rem;
  color: #B1BAC4;
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}

.app-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.app-card--orca .app-card__features li::before {
  color: #F5A623;
}

.app-card--pdf .app-card__features li::before {
  color: #54C5F8;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.btn--orca {
  background-color: #F5A623;
  color: #1A1A1A;
}

.btn--orca:hover {
  background-color: #E6991A;
}

.btn--pdf {
  background-color: #54C5F8;
  color: #0D1117;
}

.btn--pdf:hover {
  background-color: #3BB8F0;
}

.btn__play-icon {
  flex-shrink: 0;
}

/* --- Footer --- */

.site-footer {
  background-color: #161B22;
  border-top: 1px solid #30363D;
  text-align: center;
  padding: 24px 0;
}

.site-footer p {
  font-size: 0.875rem;
  color: #8B949E;
}

/* --- Animations --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hover effects (pointer devices only) --- */

@media (hover: hover) {
  .app-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
  }

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive: Tablet+ --- */

@media (min-width: 640px) {
  .hero {
    padding: 72px 0 48px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .app-card {
    padding: 36px 32px;
  }
}

/* --- Responsive: Desktop --- */

@media (min-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .app-card__icon {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 56px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .apps-grid {
    gap: 32px;
  }
}
