:root {
  --color-primary: #eb4034;
  --color-primary-hover: #d73327;
  --color-primary-rgb: 235, 64, 52;
  --color-secondary: #8D261F;
  --color-secondary-hover: #731e18;
  --color-light-grey: #d2d7da;
  --color-dark-grey: #9ea3a7;
  --color-black: #262a2b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafb;
  --color-card-bg: #ffffff;
  --color-border: rgba(210, 215, 218, 0.5);
  --color-border-hover: rgba(141, 38, 31, 0.35);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(38, 42, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(38, 42, 43, 0.06);
  --shadow-lg: 0 16px 40px rgba(38, 42, 43, 0.08);
  --shadow-primary: 0 8px 25px rgba(235, 64, 52, 0.25);

  --container-max: 1160px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-black);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(235, 64, 52, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(141, 38, 31, 0.02) 0%, transparent 40%),
    var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(210, 215, 218, 0.5);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(38, 42, 43, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.brand-logo:hover svg {
  transform: rotate(15deg);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title span:first-child {
  font-weight: 800;
  color: var(--color-black);
}

.brand-title span:last-child {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.96rem;
  font-weight: 600;
  color: #4b5254;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 72px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-black);
  margin-bottom: 22px;
}

.hero-title-highlight {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.68;
  color: #4f5658;
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(235, 64, 52, 0.35);
  color: #ffffff;
}

/* Hero Media Frame */
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(210, 215, 218, 0.6);
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3.2;
}

.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-frame:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Apps Showcase Section
   ========================================================================== */
.apps-section {
  padding: 64px 0 84px;
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.app-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 44px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.app-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  align-items: flex-start;
}

.app-icon-wrap {
  position: relative;
}

.app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(38, 42, 43, 0.12);
  border: 1px solid rgba(210, 215, 218, 0.5);
  background: #ffffff;
}

.app-platform-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: #ffffff;
  border: 1px solid var(--color-light-grey);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: #3DDC84; /* Android green */
}

.app-content {
  display: flex;
  flex-direction: column;
}

.app-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.app-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-black);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(38, 42, 43, 0.12);
}

.play-store-btn:hover {
  background: #141718;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(38, 42, 43, 0.22);
  color: #ffffff;
}

.play-store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.play-store-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.play-store-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark-grey);
  font-weight: 500;
}

.play-store-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.app-category {
  font-size: 0.92rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 18px;
}

.app-description {
  font-size: 1.04rem;
  color: #42494b;
  line-height: 1.68;
  margin-bottom: 24px;
}

.app-description p + p {
  margin-top: 12px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.app-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  color: #3b4143;
  font-weight: 500;
}

.app-tag-pill svg {
  color: var(--color-primary);
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--color-dark-grey);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.photo-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-dark-grey);
}

.photo-credit a {
  color: #5b6264;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-light-grey);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.photo-credit a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

.copyright {
  color: var(--color-dark-grey);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-media-wrapper {
    order: -1;
    margin: 0 auto;
    max-width: 440px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 68px;
  }

  .hero-section {
    padding: 36px 0 48px;
  }

  .app-card {
    padding: 28px 20px;
  }

  .app-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
